@atlaskit/editor-core 197.9.2 → 197.9.3
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 +12 -0
- package/dist/cjs/composable-editor/hooks/useMemoEditorProps.js +1 -2
- package/dist/cjs/create-editor/ReactEditorView.js +0 -18
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/hooks/useMemoEditorProps.js +1 -2
- package/dist/es2019/create-editor/ReactEditorView.js +1 -20
- package/dist/es2019/index.js +66 -7
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/hooks/useMemoEditorProps.js +1 -2
- package/dist/esm/create-editor/ReactEditorView.js +1 -19
- package/dist/esm/index.js +66 -7
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +0 -2
- package/dist/types/index.d.ts +118 -11
- package/dist/types/types/editor-props.d.ts +1 -0
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +0 -2
- package/dist/types-ts4.5/index.d.ts +118 -11
- package/dist/types-ts4.5/types/editor-props.d.ts +1 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 197.9.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#143693](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/143693)
|
|
8
|
+
[`46b2a48c6b4bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/46b2a48c6b4bf) -
|
|
9
|
+
Remove tracking for editor transactions
|
|
10
|
+
- [#143799](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/143799)
|
|
11
|
+
[`bf053258fe95f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bf053258fe95f) -
|
|
12
|
+
Mark most unnecessary exports as deprecated as they will be removed in a future version.
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 197.9.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -43,7 +43,6 @@ var useMemoEditorProps = exports.useMemoEditorProps = function useMemoEditorProp
|
|
|
43
43
|
inputSamplingLimit: passedProps.inputSamplingLimit,
|
|
44
44
|
extensionProviders: passedProps.extensionProviders,
|
|
45
45
|
UNSAFE_useAnalyticsContext: passedProps.UNSAFE_useAnalyticsContext,
|
|
46
|
-
trackValidTransactions: passedProps.trackValidTransactions,
|
|
47
46
|
useStickyToolbar: passedProps.useStickyToolbar,
|
|
48
47
|
featureFlags: passedProps.featureFlags,
|
|
49
48
|
onSave: passedProps.onSave,
|
|
@@ -119,7 +118,7 @@ var useMemoEditorProps = exports.useMemoEditorProps = function useMemoEditorProp
|
|
|
119
118
|
};
|
|
120
119
|
var nextProps = _objectSpread(_objectSpread({}, defaultProps), allProps);
|
|
121
120
|
return nextProps;
|
|
122
|
-
}, [passedProps.preset, passedProps.appearance, passedProps.contentComponents, passedProps.primaryToolbarIconBefore, passedProps.secondaryToolbarComponents, passedProps.persistScrollGutter, passedProps.quickInsert, passedProps.shouldFocus, passedProps.disabled, passedProps.contextPanel, passedProps.errorReporterHandler, passedProps.contentTransformerProvider, passedProps.maxHeight, passedProps.minHeight, passedProps.placeholder, passedProps.placeholderBracketHint, passedProps.defaultValue, passedProps.assistiveLabel, passedProps.assistiveDescribedBy, passedProps.popupsMountPoint, passedProps.popupsBoundariesElement, passedProps.popupsScrollableElement, passedProps.editorActions, passedProps.onEditorReady, passedProps.onDestroy, passedProps.onChange, passedProps.onCancel, passedProps.inputSamplingLimit, passedProps.extensionProviders, passedProps.UNSAFE_useAnalyticsContext, passedProps.
|
|
121
|
+
}, [passedProps.preset, passedProps.appearance, passedProps.contentComponents, passedProps.primaryToolbarIconBefore, passedProps.secondaryToolbarComponents, passedProps.persistScrollGutter, passedProps.quickInsert, passedProps.shouldFocus, passedProps.disabled, passedProps.contextPanel, passedProps.errorReporterHandler, passedProps.contentTransformerProvider, passedProps.maxHeight, passedProps.minHeight, passedProps.placeholder, passedProps.placeholderBracketHint, passedProps.defaultValue, passedProps.assistiveLabel, passedProps.assistiveDescribedBy, passedProps.popupsMountPoint, passedProps.popupsBoundariesElement, passedProps.popupsScrollableElement, passedProps.editorActions, passedProps.onEditorReady, passedProps.onDestroy, passedProps.onChange, passedProps.onCancel, passedProps.inputSamplingLimit, passedProps.extensionProviders, passedProps.UNSAFE_useAnalyticsContext, passedProps.useStickyToolbar, passedProps.featureFlags, passedProps.onSave, passedProps.performanceTracking, passedProps.sanitizePrivateContent, passedProps.media, passedProps.collabEdit, passedProps.primaryToolbarComponents, passedProps.allowUndoRedoButtons, passedProps.linking, passedProps.hideAvatarGroup, passedProps.activityProvider, passedProps.searchProvider, passedProps.annotationProviders, passedProps.collabEditProvider, passedProps.presenceProvider, passedProps.emojiProvider, passedProps.taskDecisionProvider, passedProps.legacyImageUploadProvider, passedProps.mentionProvider, passedProps.autoformattingProvider, passedProps.macroProvider, passedProps.contextIdentifierProvider, passedProps.allowExpand, passedProps.allowNestedTasks, passedProps.allowBlockType, passedProps.allowTasksAndDecisions, passedProps.allowBreakout, passedProps.allowRule, passedProps.allowHelpDialog, passedProps.allowJiraIssue, passedProps.allowPanel, passedProps.allowExtension, passedProps.allowConfluenceInlineComment, passedProps.allowTemplatePlaceholders, passedProps.allowDate, passedProps.allowLayouts, passedProps.allowStatus, passedProps.allowTextAlignment, passedProps.allowIndentation, passedProps.showIndentationButtons, passedProps.allowNewInsertionBehaviour, passedProps.allowFindReplace, passedProps.UNSAFE_allowBorderMark, passedProps.allowBorderMark, passedProps.allowFragmentMark, passedProps.autoScrollIntoView, passedProps.elementBrowser, passedProps.maxContentSize, passedProps.saveOnEnter, passedProps.feedbackInfo, passedProps.mention, passedProps.mentionInsertDisplayName, passedProps.uploadErrorHandler, passedProps.waitForMediaUpload, passedProps.extensionHandlers, passedProps.allowTextColor, passedProps.allowTables, passedProps.insertMenuItems, passedProps.UNSAFE_cards, passedProps.smartLinks, passedProps.allowAnalyticsGASV3, passedProps.codeBlock, passedProps.textFormatting, passedProps.dangerouslyAppendPlugins, passedProps.__livePage, passedProps.AppearanceComponent]);
|
|
123
122
|
return memodProps;
|
|
124
123
|
};
|
|
125
124
|
var _default = exports.default = useMemoEditorProps;
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = exports.ReactEditorView = void 0;
|
|
8
|
-
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
10
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
@@ -271,21 +270,6 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
|
|
|
271
270
|
trackinEnabled && (0, _performanceMeasures.stopMeasure)("\uD83E\uDD89 ".concat(entry.pluginName, "::onEditorViewStateUpdated"));
|
|
272
271
|
});
|
|
273
272
|
});
|
|
274
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "trackValidTransactions", function () {
|
|
275
|
-
var editorProps = _this.props.editorProps;
|
|
276
|
-
if (!_this.isTransactionTrackingExplicitlyDisabled() && editorProps !== null && editorProps !== void 0 && editorProps.trackValidTransactions) {
|
|
277
|
-
_this.validTransactionCount++;
|
|
278
|
-
var samplingRate = (0, _typeof2.default)(editorProps.trackValidTransactions) === 'object' && editorProps.trackValidTransactions.samplingRate || _consts.DEFAULT_SAMPLING_RATE_VALID_TRANSACTIONS;
|
|
279
|
-
if (_this.validTransactionCount >= samplingRate) {
|
|
280
|
-
_this.dispatchAnalyticsEvent({
|
|
281
|
-
action: _analytics.ACTION.DISPATCHED_VALID_TRANSACTION,
|
|
282
|
-
actionSubject: _analytics.ACTION_SUBJECT.EDITOR,
|
|
283
|
-
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
284
|
-
});
|
|
285
|
-
_this.validTransactionCount = 0;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
});
|
|
289
273
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "dispatchTransaction", function (unsafeTransaction) {
|
|
290
274
|
if (!_this.view) {
|
|
291
275
|
return;
|
|
@@ -317,7 +301,6 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
|
|
|
317
301
|
var _this$experienceStore2;
|
|
318
302
|
(_this$experienceStore2 = _this.experienceStore) === null || _this$experienceStore2 === void 0 || _this$experienceStore2.mark(_ufo.EditorExperience.interaction, 'stateApply', startTime + duration);
|
|
319
303
|
});
|
|
320
|
-
_this.trackValidTransactions();
|
|
321
304
|
if (editorState === oldEditorState) {
|
|
322
305
|
return;
|
|
323
306
|
}
|
|
@@ -581,7 +564,6 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
|
|
|
581
564
|
}).withTransactionTracker(function () {
|
|
582
565
|
return _this.transactionTracker;
|
|
583
566
|
});
|
|
584
|
-
_this.validTransactionCount = 0;
|
|
585
567
|
_this.featureFlags = (0, _featureFlagsFromProps.createFeatureFlagsFromProps)(_this.props.editorProps);
|
|
586
568
|
var featureFlagsEnabled = _this.featureFlags ? (0, _normalizeFeatureFlags.getEnabledFeatureFlagKeys)(_this.featureFlags) : [];
|
|
587
569
|
|
|
@@ -33,7 +33,6 @@ export const useMemoEditorProps = passedProps => {
|
|
|
33
33
|
inputSamplingLimit: passedProps.inputSamplingLimit,
|
|
34
34
|
extensionProviders: passedProps.extensionProviders,
|
|
35
35
|
UNSAFE_useAnalyticsContext: passedProps.UNSAFE_useAnalyticsContext,
|
|
36
|
-
trackValidTransactions: passedProps.trackValidTransactions,
|
|
37
36
|
useStickyToolbar: passedProps.useStickyToolbar,
|
|
38
37
|
featureFlags: passedProps.featureFlags,
|
|
39
38
|
onSave: passedProps.onSave,
|
|
@@ -112,7 +111,7 @@ export const useMemoEditorProps = passedProps => {
|
|
|
112
111
|
...allProps
|
|
113
112
|
};
|
|
114
113
|
return nextProps;
|
|
115
|
-
}, [passedProps.preset, passedProps.appearance, passedProps.contentComponents, passedProps.primaryToolbarIconBefore, passedProps.secondaryToolbarComponents, passedProps.persistScrollGutter, passedProps.quickInsert, passedProps.shouldFocus, passedProps.disabled, passedProps.contextPanel, passedProps.errorReporterHandler, passedProps.contentTransformerProvider, passedProps.maxHeight, passedProps.minHeight, passedProps.placeholder, passedProps.placeholderBracketHint, passedProps.defaultValue, passedProps.assistiveLabel, passedProps.assistiveDescribedBy, passedProps.popupsMountPoint, passedProps.popupsBoundariesElement, passedProps.popupsScrollableElement, passedProps.editorActions, passedProps.onEditorReady, passedProps.onDestroy, passedProps.onChange, passedProps.onCancel, passedProps.inputSamplingLimit, passedProps.extensionProviders, passedProps.UNSAFE_useAnalyticsContext, passedProps.
|
|
114
|
+
}, [passedProps.preset, passedProps.appearance, passedProps.contentComponents, passedProps.primaryToolbarIconBefore, passedProps.secondaryToolbarComponents, passedProps.persistScrollGutter, passedProps.quickInsert, passedProps.shouldFocus, passedProps.disabled, passedProps.contextPanel, passedProps.errorReporterHandler, passedProps.contentTransformerProvider, passedProps.maxHeight, passedProps.minHeight, passedProps.placeholder, passedProps.placeholderBracketHint, passedProps.defaultValue, passedProps.assistiveLabel, passedProps.assistiveDescribedBy, passedProps.popupsMountPoint, passedProps.popupsBoundariesElement, passedProps.popupsScrollableElement, passedProps.editorActions, passedProps.onEditorReady, passedProps.onDestroy, passedProps.onChange, passedProps.onCancel, passedProps.inputSamplingLimit, passedProps.extensionProviders, passedProps.UNSAFE_useAnalyticsContext, passedProps.useStickyToolbar, passedProps.featureFlags, passedProps.onSave, passedProps.performanceTracking, passedProps.sanitizePrivateContent, passedProps.media, passedProps.collabEdit, passedProps.primaryToolbarComponents, passedProps.allowUndoRedoButtons, passedProps.linking, passedProps.hideAvatarGroup, passedProps.activityProvider, passedProps.searchProvider, passedProps.annotationProviders, passedProps.collabEditProvider, passedProps.presenceProvider, passedProps.emojiProvider, passedProps.taskDecisionProvider, passedProps.legacyImageUploadProvider, passedProps.mentionProvider, passedProps.autoformattingProvider, passedProps.macroProvider, passedProps.contextIdentifierProvider, passedProps.allowExpand, passedProps.allowNestedTasks, passedProps.allowBlockType, passedProps.allowTasksAndDecisions, passedProps.allowBreakout, passedProps.allowRule, passedProps.allowHelpDialog, passedProps.allowJiraIssue, passedProps.allowPanel, passedProps.allowExtension, passedProps.allowConfluenceInlineComment, passedProps.allowTemplatePlaceholders, passedProps.allowDate, passedProps.allowLayouts, passedProps.allowStatus, passedProps.allowTextAlignment, passedProps.allowIndentation, passedProps.showIndentationButtons, passedProps.allowNewInsertionBehaviour, passedProps.allowFindReplace, passedProps.UNSAFE_allowBorderMark, passedProps.allowBorderMark, passedProps.allowFragmentMark, passedProps.autoScrollIntoView, passedProps.elementBrowser, passedProps.maxContentSize, passedProps.saveOnEnter, passedProps.feedbackInfo, passedProps.mention, passedProps.mentionInsertDisplayName, passedProps.uploadErrorHandler, passedProps.waitForMediaUpload, passedProps.extensionHandlers, passedProps.allowTextColor, passedProps.allowTables, passedProps.insertMenuItems, passedProps.UNSAFE_cards, passedProps.smartLinks, passedProps.allowAnalyticsGASV3, passedProps.codeBlock, passedProps.textFormatting, passedProps.dangerouslyAppendPlugins, passedProps.__livePage, passedProps.AppearanceComponent]);
|
|
116
115
|
return memodProps;
|
|
117
116
|
};
|
|
118
117
|
export default useMemoEditorProps;
|
|
@@ -28,7 +28,7 @@ import { PluginPerformanceObserver } from '../utils/performance/plugin-performan
|
|
|
28
28
|
import { freezeUnsafeTransactionProperties } from '../utils/performance/safer-transactions';
|
|
29
29
|
import { EVENT_NAME_DISPATCH_TRANSACTION, EVENT_NAME_ON_CHANGE, EVENT_NAME_STATE_APPLY, EVENT_NAME_UPDATE_STATE, EVENT_NAME_VIEW_STATE_UPDATED, TransactionTracker } from '../utils/performance/track-transactions';
|
|
30
30
|
import { validateNodes, validNode } from '../utils/validateNodes';
|
|
31
|
-
import {
|
|
31
|
+
import { PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD, PROSEMIRROR_RENDERED_NORMAL_SEVERITY_THRESHOLD } from './consts';
|
|
32
32
|
import { createErrorReporter, createPMPlugins, processPluginsList } from './create-editor';
|
|
33
33
|
import createPluginsList from './create-plugins-list';
|
|
34
34
|
import { createSchema } from './create-schema';
|
|
@@ -271,23 +271,6 @@ export class ReactEditorView extends React.Component {
|
|
|
271
271
|
trackinEnabled && stopMeasure(`🦉 ${entry.pluginName}::onEditorViewStateUpdated`);
|
|
272
272
|
});
|
|
273
273
|
});
|
|
274
|
-
_defineProperty(this, "trackValidTransactions", () => {
|
|
275
|
-
const {
|
|
276
|
-
editorProps
|
|
277
|
-
} = this.props;
|
|
278
|
-
if (!this.isTransactionTrackingExplicitlyDisabled() && editorProps !== null && editorProps !== void 0 && editorProps.trackValidTransactions) {
|
|
279
|
-
this.validTransactionCount++;
|
|
280
|
-
const samplingRate = typeof editorProps.trackValidTransactions === 'object' && editorProps.trackValidTransactions.samplingRate || DEFAULT_SAMPLING_RATE_VALID_TRANSACTIONS;
|
|
281
|
-
if (this.validTransactionCount >= samplingRate) {
|
|
282
|
-
this.dispatchAnalyticsEvent({
|
|
283
|
-
action: ACTION.DISPATCHED_VALID_TRANSACTION,
|
|
284
|
-
actionSubject: ACTION_SUBJECT.EDITOR,
|
|
285
|
-
eventType: EVENT_TYPE.OPERATIONAL
|
|
286
|
-
});
|
|
287
|
-
this.validTransactionCount = 0;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
274
|
_defineProperty(this, "dispatchTransaction", unsafeTransaction => {
|
|
292
275
|
if (!this.view) {
|
|
293
276
|
return;
|
|
@@ -321,7 +304,6 @@ export class ReactEditorView extends React.Component {
|
|
|
321
304
|
var _this$experienceStore2;
|
|
322
305
|
(_this$experienceStore2 = this.experienceStore) === null || _this$experienceStore2 === void 0 ? void 0 : _this$experienceStore2.mark(EditorExperience.interaction, 'stateApply', startTime + duration);
|
|
323
306
|
});
|
|
324
|
-
this.trackValidTransactions();
|
|
325
307
|
if (editorState === oldEditorState) {
|
|
326
308
|
return;
|
|
327
309
|
}
|
|
@@ -570,7 +552,6 @@ export class ReactEditorView extends React.Component {
|
|
|
570
552
|
this.errorReporter = createErrorReporter(props.editorProps.errorReporterHandler);
|
|
571
553
|
this.transactionTracker = new TransactionTracker();
|
|
572
554
|
this.pluginPerformanceObserver = new PluginPerformanceObserver(report => this.onPluginObservation(report)).withPlugins(() => this.getPluginNames()).withNodeCounts(() => this.countNodes()).withOptions(() => this.transactionTracking).withTransactionTracker(() => this.transactionTracker);
|
|
573
|
-
this.validTransactionCount = 0;
|
|
574
555
|
this.featureFlags = createFeatureFlagsFromProps(this.props.editorProps);
|
|
575
556
|
const featureFlagsEnabled = this.featureFlags ? getEnabledFeatureFlagKeys(this.featureFlags) : [];
|
|
576
557
|
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
// Used in products integration code
|
|
2
2
|
export { name, version } from './version-wrapper';
|
|
3
3
|
export { default as Editor } from './editor';
|
|
4
|
-
export {
|
|
4
|
+
export {
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
8
|
+
* Please use the export from `@atlaskit/editor-core/editor-context`.
|
|
9
|
+
*/
|
|
10
|
+
default as EditorContext } from './ui/EditorContext';
|
|
5
11
|
export { default as WithEditorActions } from './ui/WithEditorActions';
|
|
6
12
|
export { default as WithHelpTrigger } from './ui/WithHelpTrigger';
|
|
7
13
|
export { default as CollapsedEditor } from './ui/CollapsedEditor';
|
|
@@ -20,16 +26,39 @@ export {
|
|
|
20
26
|
* DO NOT USE THIS WILL BE REMOVED SOON. This was intended for internal usage only
|
|
21
27
|
*/
|
|
22
28
|
ContextPanel } from './ui/ContextPanel';
|
|
23
|
-
export {
|
|
24
|
-
|
|
25
|
-
|
|
29
|
+
export {
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated
|
|
32
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
33
|
+
* Please use the export from `@atlaskit/emoji/resource`.
|
|
34
|
+
*/
|
|
35
|
+
EmojiResource } from '@atlaskit/emoji/resource';
|
|
36
|
+
export {
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated
|
|
39
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
40
|
+
* Please use the export from `@atlaskit/mention/resource`.
|
|
41
|
+
*/
|
|
42
|
+
MentionResource } from '@atlaskit/mention/resource';
|
|
43
|
+
export {
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated
|
|
46
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
47
|
+
* Please use the export from `@atlaskit/mention/team-resource`.
|
|
48
|
+
*/
|
|
49
|
+
TeamMentionResource } from '@atlaskit/mention/team-resource';
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated
|
|
52
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
53
|
+
* Please use the export from `@atlaskit/editor-common/annotation`.
|
|
54
|
+
*/
|
|
55
|
+
export {
|
|
26
56
|
/**
|
|
27
57
|
* @deprecated
|
|
28
58
|
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
29
|
-
* This is here while we work to extract the annotation plugin.
|
|
30
59
|
* Please use the export from `@atlaskit/editor-common/annotation`.
|
|
31
60
|
*/
|
|
32
|
-
|
|
61
|
+
AnnotationUpdateEmitter } from '@atlaskit/editor-common/annotation';
|
|
33
62
|
|
|
34
63
|
/**
|
|
35
64
|
* @deprecated
|
|
@@ -40,7 +69,37 @@ export { AnnotationUpdateEmitter } from '@atlaskit/editor-common/annotation';
|
|
|
40
69
|
|
|
41
70
|
// Used in mobile bridge
|
|
42
71
|
|
|
43
|
-
export {
|
|
72
|
+
export {
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated
|
|
75
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
76
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
77
|
+
*/
|
|
78
|
+
INPUT_METHOD,
|
|
79
|
+
/**
|
|
80
|
+
* @deprecated
|
|
81
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
82
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
83
|
+
*/
|
|
84
|
+
ACTION,
|
|
85
|
+
/**
|
|
86
|
+
* @deprecated
|
|
87
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
88
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
89
|
+
*/
|
|
90
|
+
ACTION_SUBJECT,
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated
|
|
93
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
94
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
95
|
+
*/
|
|
96
|
+
ACTION_SUBJECT_ID,
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated
|
|
99
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
100
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
101
|
+
*/
|
|
102
|
+
EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
44
103
|
// Used in editor-test-helpers and mobile bridge
|
|
45
104
|
export { getNodesCount, measurements } from './utils';
|
|
46
105
|
export { setTextSelection } from '@atlaskit/editor-common/utils';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "197.9.
|
|
2
|
+
export const version = "197.9.3";
|
|
@@ -36,7 +36,6 @@ export var useMemoEditorProps = function useMemoEditorProps(passedProps) {
|
|
|
36
36
|
inputSamplingLimit: passedProps.inputSamplingLimit,
|
|
37
37
|
extensionProviders: passedProps.extensionProviders,
|
|
38
38
|
UNSAFE_useAnalyticsContext: passedProps.UNSAFE_useAnalyticsContext,
|
|
39
|
-
trackValidTransactions: passedProps.trackValidTransactions,
|
|
40
39
|
useStickyToolbar: passedProps.useStickyToolbar,
|
|
41
40
|
featureFlags: passedProps.featureFlags,
|
|
42
41
|
onSave: passedProps.onSave,
|
|
@@ -112,7 +111,7 @@ export var useMemoEditorProps = function useMemoEditorProps(passedProps) {
|
|
|
112
111
|
};
|
|
113
112
|
var nextProps = _objectSpread(_objectSpread({}, defaultProps), allProps);
|
|
114
113
|
return nextProps;
|
|
115
|
-
}, [passedProps.preset, passedProps.appearance, passedProps.contentComponents, passedProps.primaryToolbarIconBefore, passedProps.secondaryToolbarComponents, passedProps.persistScrollGutter, passedProps.quickInsert, passedProps.shouldFocus, passedProps.disabled, passedProps.contextPanel, passedProps.errorReporterHandler, passedProps.contentTransformerProvider, passedProps.maxHeight, passedProps.minHeight, passedProps.placeholder, passedProps.placeholderBracketHint, passedProps.defaultValue, passedProps.assistiveLabel, passedProps.assistiveDescribedBy, passedProps.popupsMountPoint, passedProps.popupsBoundariesElement, passedProps.popupsScrollableElement, passedProps.editorActions, passedProps.onEditorReady, passedProps.onDestroy, passedProps.onChange, passedProps.onCancel, passedProps.inputSamplingLimit, passedProps.extensionProviders, passedProps.UNSAFE_useAnalyticsContext, passedProps.
|
|
114
|
+
}, [passedProps.preset, passedProps.appearance, passedProps.contentComponents, passedProps.primaryToolbarIconBefore, passedProps.secondaryToolbarComponents, passedProps.persistScrollGutter, passedProps.quickInsert, passedProps.shouldFocus, passedProps.disabled, passedProps.contextPanel, passedProps.errorReporterHandler, passedProps.contentTransformerProvider, passedProps.maxHeight, passedProps.minHeight, passedProps.placeholder, passedProps.placeholderBracketHint, passedProps.defaultValue, passedProps.assistiveLabel, passedProps.assistiveDescribedBy, passedProps.popupsMountPoint, passedProps.popupsBoundariesElement, passedProps.popupsScrollableElement, passedProps.editorActions, passedProps.onEditorReady, passedProps.onDestroy, passedProps.onChange, passedProps.onCancel, passedProps.inputSamplingLimit, passedProps.extensionProviders, passedProps.UNSAFE_useAnalyticsContext, passedProps.useStickyToolbar, passedProps.featureFlags, passedProps.onSave, passedProps.performanceTracking, passedProps.sanitizePrivateContent, passedProps.media, passedProps.collabEdit, passedProps.primaryToolbarComponents, passedProps.allowUndoRedoButtons, passedProps.linking, passedProps.hideAvatarGroup, passedProps.activityProvider, passedProps.searchProvider, passedProps.annotationProviders, passedProps.collabEditProvider, passedProps.presenceProvider, passedProps.emojiProvider, passedProps.taskDecisionProvider, passedProps.legacyImageUploadProvider, passedProps.mentionProvider, passedProps.autoformattingProvider, passedProps.macroProvider, passedProps.contextIdentifierProvider, passedProps.allowExpand, passedProps.allowNestedTasks, passedProps.allowBlockType, passedProps.allowTasksAndDecisions, passedProps.allowBreakout, passedProps.allowRule, passedProps.allowHelpDialog, passedProps.allowJiraIssue, passedProps.allowPanel, passedProps.allowExtension, passedProps.allowConfluenceInlineComment, passedProps.allowTemplatePlaceholders, passedProps.allowDate, passedProps.allowLayouts, passedProps.allowStatus, passedProps.allowTextAlignment, passedProps.allowIndentation, passedProps.showIndentationButtons, passedProps.allowNewInsertionBehaviour, passedProps.allowFindReplace, passedProps.UNSAFE_allowBorderMark, passedProps.allowBorderMark, passedProps.allowFragmentMark, passedProps.autoScrollIntoView, passedProps.elementBrowser, passedProps.maxContentSize, passedProps.saveOnEnter, passedProps.feedbackInfo, passedProps.mention, passedProps.mentionInsertDisplayName, passedProps.uploadErrorHandler, passedProps.waitForMediaUpload, passedProps.extensionHandlers, passedProps.allowTextColor, passedProps.allowTables, passedProps.insertMenuItems, passedProps.UNSAFE_cards, passedProps.smartLinks, passedProps.allowAnalyticsGASV3, passedProps.codeBlock, passedProps.textFormatting, passedProps.dangerouslyAppendPlugins, passedProps.__livePage, passedProps.AppearanceComponent]);
|
|
116
115
|
return memodProps;
|
|
117
116
|
};
|
|
118
117
|
export default useMemoEditorProps;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
3
|
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
@@ -39,7 +38,7 @@ import { PluginPerformanceObserver } from '../utils/performance/plugin-performan
|
|
|
39
38
|
import { freezeUnsafeTransactionProperties } from '../utils/performance/safer-transactions';
|
|
40
39
|
import { EVENT_NAME_DISPATCH_TRANSACTION, EVENT_NAME_ON_CHANGE, EVENT_NAME_STATE_APPLY, EVENT_NAME_UPDATE_STATE, EVENT_NAME_VIEW_STATE_UPDATED, TransactionTracker } from '../utils/performance/track-transactions';
|
|
41
40
|
import { validateNodes, validNode } from '../utils/validateNodes';
|
|
42
|
-
import {
|
|
41
|
+
import { PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD, PROSEMIRROR_RENDERED_NORMAL_SEVERITY_THRESHOLD } from './consts';
|
|
43
42
|
import { createErrorReporter, createPMPlugins, processPluginsList } from './create-editor';
|
|
44
43
|
import createPluginsList from './create-plugins-list';
|
|
45
44
|
import { createSchema } from './create-schema';
|
|
@@ -264,21 +263,6 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
264
263
|
trackinEnabled && stopMeasure("\uD83E\uDD89 ".concat(entry.pluginName, "::onEditorViewStateUpdated"));
|
|
265
264
|
});
|
|
266
265
|
});
|
|
267
|
-
_defineProperty(_assertThisInitialized(_this), "trackValidTransactions", function () {
|
|
268
|
-
var editorProps = _this.props.editorProps;
|
|
269
|
-
if (!_this.isTransactionTrackingExplicitlyDisabled() && editorProps !== null && editorProps !== void 0 && editorProps.trackValidTransactions) {
|
|
270
|
-
_this.validTransactionCount++;
|
|
271
|
-
var samplingRate = _typeof(editorProps.trackValidTransactions) === 'object' && editorProps.trackValidTransactions.samplingRate || DEFAULT_SAMPLING_RATE_VALID_TRANSACTIONS;
|
|
272
|
-
if (_this.validTransactionCount >= samplingRate) {
|
|
273
|
-
_this.dispatchAnalyticsEvent({
|
|
274
|
-
action: ACTION.DISPATCHED_VALID_TRANSACTION,
|
|
275
|
-
actionSubject: ACTION_SUBJECT.EDITOR,
|
|
276
|
-
eventType: EVENT_TYPE.OPERATIONAL
|
|
277
|
-
});
|
|
278
|
-
_this.validTransactionCount = 0;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
});
|
|
282
266
|
_defineProperty(_assertThisInitialized(_this), "dispatchTransaction", function (unsafeTransaction) {
|
|
283
267
|
if (!_this.view) {
|
|
284
268
|
return;
|
|
@@ -310,7 +294,6 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
310
294
|
var _this$experienceStore2;
|
|
311
295
|
(_this$experienceStore2 = _this.experienceStore) === null || _this$experienceStore2 === void 0 || _this$experienceStore2.mark(EditorExperience.interaction, 'stateApply', startTime + duration);
|
|
312
296
|
});
|
|
313
|
-
_this.trackValidTransactions();
|
|
314
297
|
if (editorState === oldEditorState) {
|
|
315
298
|
return;
|
|
316
299
|
}
|
|
@@ -574,7 +557,6 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
574
557
|
}).withTransactionTracker(function () {
|
|
575
558
|
return _this.transactionTracker;
|
|
576
559
|
});
|
|
577
|
-
_this.validTransactionCount = 0;
|
|
578
560
|
_this.featureFlags = createFeatureFlagsFromProps(_this.props.editorProps);
|
|
579
561
|
var featureFlagsEnabled = _this.featureFlags ? getEnabledFeatureFlagKeys(_this.featureFlags) : [];
|
|
580
562
|
|
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
// Used in products integration code
|
|
2
2
|
export { name, version } from './version-wrapper';
|
|
3
3
|
export { default as Editor } from './editor';
|
|
4
|
-
export {
|
|
4
|
+
export {
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
8
|
+
* Please use the export from `@atlaskit/editor-core/editor-context`.
|
|
9
|
+
*/
|
|
10
|
+
default as EditorContext } from './ui/EditorContext';
|
|
5
11
|
export { default as WithEditorActions } from './ui/WithEditorActions';
|
|
6
12
|
export { default as WithHelpTrigger } from './ui/WithHelpTrigger';
|
|
7
13
|
export { default as CollapsedEditor } from './ui/CollapsedEditor';
|
|
@@ -20,16 +26,39 @@ export {
|
|
|
20
26
|
* DO NOT USE THIS WILL BE REMOVED SOON. This was intended for internal usage only
|
|
21
27
|
*/
|
|
22
28
|
ContextPanel } from './ui/ContextPanel';
|
|
23
|
-
export {
|
|
24
|
-
|
|
25
|
-
|
|
29
|
+
export {
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated
|
|
32
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
33
|
+
* Please use the export from `@atlaskit/emoji/resource`.
|
|
34
|
+
*/
|
|
35
|
+
EmojiResource } from '@atlaskit/emoji/resource';
|
|
36
|
+
export {
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated
|
|
39
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
40
|
+
* Please use the export from `@atlaskit/mention/resource`.
|
|
41
|
+
*/
|
|
42
|
+
MentionResource } from '@atlaskit/mention/resource';
|
|
43
|
+
export {
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated
|
|
46
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
47
|
+
* Please use the export from `@atlaskit/mention/team-resource`.
|
|
48
|
+
*/
|
|
49
|
+
TeamMentionResource } from '@atlaskit/mention/team-resource';
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated
|
|
52
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
53
|
+
* Please use the export from `@atlaskit/editor-common/annotation`.
|
|
54
|
+
*/
|
|
55
|
+
export {
|
|
26
56
|
/**
|
|
27
57
|
* @deprecated
|
|
28
58
|
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
29
|
-
* This is here while we work to extract the annotation plugin.
|
|
30
59
|
* Please use the export from `@atlaskit/editor-common/annotation`.
|
|
31
60
|
*/
|
|
32
|
-
|
|
61
|
+
AnnotationUpdateEmitter } from '@atlaskit/editor-common/annotation';
|
|
33
62
|
|
|
34
63
|
/**
|
|
35
64
|
* @deprecated
|
|
@@ -40,7 +69,37 @@ export { AnnotationUpdateEmitter } from '@atlaskit/editor-common/annotation';
|
|
|
40
69
|
|
|
41
70
|
// Used in mobile bridge
|
|
42
71
|
|
|
43
|
-
export {
|
|
72
|
+
export {
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated
|
|
75
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
76
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
77
|
+
*/
|
|
78
|
+
INPUT_METHOD,
|
|
79
|
+
/**
|
|
80
|
+
* @deprecated
|
|
81
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
82
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
83
|
+
*/
|
|
84
|
+
ACTION,
|
|
85
|
+
/**
|
|
86
|
+
* @deprecated
|
|
87
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
88
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
89
|
+
*/
|
|
90
|
+
ACTION_SUBJECT,
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated
|
|
93
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
94
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
95
|
+
*/
|
|
96
|
+
ACTION_SUBJECT_ID,
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated
|
|
99
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
100
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
101
|
+
*/
|
|
102
|
+
EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
44
103
|
// Used in editor-test-helpers and mobile bridge
|
|
45
104
|
export { getNodesCount, measurements } from './utils';
|
|
46
105
|
export { setTextSelection } from '@atlaskit/editor-common/utils';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "197.9.
|
|
2
|
+
export var version = "197.9.3";
|
|
@@ -71,7 +71,6 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
|
|
|
71
71
|
dispatch: Dispatch;
|
|
72
72
|
proseMirrorRenderedSeverity?: SEVERITY;
|
|
73
73
|
transactionTracker: TransactionTracker;
|
|
74
|
-
validTransactionCount: number;
|
|
75
74
|
experienceStore?: ExperienceStore;
|
|
76
75
|
editorRef: React.RefObject<HTMLDivElement>;
|
|
77
76
|
static contextTypes: {
|
|
@@ -109,7 +108,6 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
|
|
|
109
108
|
getPlugins(preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>): EditorPlugin[];
|
|
110
109
|
createEditorState: (options: CreateEditorStateOptions) => EditorState;
|
|
111
110
|
private onEditorViewStateUpdated;
|
|
112
|
-
private trackValidTransactions;
|
|
113
111
|
private dispatchTransaction;
|
|
114
112
|
getDirectEditorProps: (state?: EditorState) => DirectEditorProps;
|
|
115
113
|
private createEditorView;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export { name, version } from './version-wrapper';
|
|
2
2
|
export { default as Editor } from './editor';
|
|
3
|
-
export {
|
|
3
|
+
export {
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
7
|
+
* Please use the export from `@atlaskit/editor-core/editor-context`.
|
|
8
|
+
*/
|
|
9
|
+
default as EditorContext, } from './ui/EditorContext';
|
|
4
10
|
export { default as WithEditorActions } from './ui/WithEditorActions';
|
|
5
11
|
export { default as WithHelpTrigger } from './ui/WithHelpTrigger';
|
|
6
12
|
export { default as CollapsedEditor } from './ui/CollapsedEditor';
|
|
@@ -19,18 +25,59 @@ export {
|
|
|
19
25
|
* DO NOT USE THIS WILL BE REMOVED SOON. This was intended for internal usage only
|
|
20
26
|
*/
|
|
21
27
|
ContextPanel, } from './ui/ContextPanel';
|
|
22
|
-
export {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
export {
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated
|
|
31
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
32
|
+
* Please use the export from `@atlaskit/emoji/resource`.
|
|
33
|
+
*/
|
|
34
|
+
EmojiResource, } from '@atlaskit/emoji/resource';
|
|
35
|
+
export {
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated
|
|
38
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
39
|
+
* Please use the export from `@atlaskit/mention/resource`.
|
|
40
|
+
*/
|
|
41
|
+
MentionResource, } from '@atlaskit/mention/resource';
|
|
42
|
+
export type {
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated
|
|
45
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
46
|
+
* Please use the export from `@atlaskit/mention/resource`.
|
|
47
|
+
*/
|
|
48
|
+
MentionProvider,
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated
|
|
51
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
52
|
+
* Please use the export from `@atlaskit/mention/resource`.
|
|
53
|
+
*/
|
|
54
|
+
PresenceProvider, } from '@atlaskit/mention/resource';
|
|
55
|
+
export {
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated
|
|
58
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
59
|
+
* Please use the export from `@atlaskit/mention/team-resource`.
|
|
60
|
+
*/
|
|
61
|
+
TeamMentionResource, } from '@atlaskit/mention/team-resource';
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated
|
|
64
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
65
|
+
* Please use the export from `@atlaskit/editor-common/annotation`.
|
|
66
|
+
*/
|
|
67
|
+
export {
|
|
26
68
|
/**
|
|
27
69
|
* @deprecated
|
|
28
70
|
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
29
|
-
* This is here while we work to extract the annotation plugin.
|
|
30
71
|
* Please use the export from `@atlaskit/editor-common/annotation`.
|
|
31
72
|
*/
|
|
32
|
-
|
|
33
|
-
export type {
|
|
73
|
+
AnnotationUpdateEmitter, } from '@atlaskit/editor-common/annotation';
|
|
74
|
+
export type {
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated
|
|
77
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
78
|
+
* Please use the export from `@atlaskit/editor-common/annotation`.
|
|
79
|
+
*/
|
|
80
|
+
UpdateEvent, } from '@atlaskit/editor-common/annotation';
|
|
34
81
|
/**
|
|
35
82
|
* @deprecated
|
|
36
83
|
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
@@ -38,14 +85,74 @@ export type { UpdateEvent } from '@atlaskit/editor-common/annotation';
|
|
|
38
85
|
* Please use the export from `@atlaskit/editor-plugins/annotation`.
|
|
39
86
|
*/
|
|
40
87
|
export type { AnnotationProviders, InlineCommentAnnotationProvider, InlineCommentCreateComponentProps, InlineCommentViewComponentProps, AnnotationInfo, AnnotationState, AnnotationTypeProvider, InlineCommentState, } from '@atlaskit/editor-plugins/annotation';
|
|
41
|
-
export type {
|
|
42
|
-
|
|
88
|
+
export type {
|
|
89
|
+
/**
|
|
90
|
+
* @deprecated
|
|
91
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
92
|
+
* Please use the export from `@atlaskit/editor-common/provider-factory`.
|
|
93
|
+
*/
|
|
94
|
+
TypeAheadItem, } from '@atlaskit/editor-common/provider-factory';
|
|
95
|
+
export {
|
|
96
|
+
/**
|
|
97
|
+
* @deprecated
|
|
98
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
99
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
100
|
+
*/
|
|
101
|
+
INPUT_METHOD,
|
|
102
|
+
/**
|
|
103
|
+
* @deprecated
|
|
104
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
105
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
106
|
+
*/
|
|
107
|
+
ACTION,
|
|
108
|
+
/**
|
|
109
|
+
* @deprecated
|
|
110
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
111
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
112
|
+
*/
|
|
113
|
+
ACTION_SUBJECT,
|
|
114
|
+
/**
|
|
115
|
+
* @deprecated
|
|
116
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
117
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
118
|
+
*/
|
|
119
|
+
ACTION_SUBJECT_ID,
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated
|
|
122
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
123
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
124
|
+
*/
|
|
125
|
+
EVENT_TYPE, } from '@atlaskit/editor-common/analytics';
|
|
43
126
|
export type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
44
127
|
export { getNodesCount, measurements } from './utils';
|
|
45
128
|
export { setTextSelection } from '@atlaskit/editor-common/utils';
|
|
46
129
|
export type { Command, EditorPlugin, EditorProps, EditorInstance, CommandDispatch } from './types';
|
|
47
130
|
export { default as EditorActions } from './actions';
|
|
48
|
-
export type {
|
|
131
|
+
export type {
|
|
132
|
+
/**
|
|
133
|
+
* @deprecated
|
|
134
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
135
|
+
* Please use the export from `@atlaskit/editor-common/provider-factory`.
|
|
136
|
+
*/
|
|
137
|
+
MacroProvider,
|
|
138
|
+
/**
|
|
139
|
+
* @deprecated
|
|
140
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
141
|
+
* Please use the export from `@atlaskit/editor-common/provider-factory`.
|
|
142
|
+
*/
|
|
143
|
+
MacroAttributes,
|
|
144
|
+
/**
|
|
145
|
+
* @deprecated
|
|
146
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
147
|
+
* Please use the export from `@atlaskit/editor-common/provider-factory`.
|
|
148
|
+
*/
|
|
149
|
+
ExtensionType,
|
|
150
|
+
/**
|
|
151
|
+
* @deprecated
|
|
152
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
153
|
+
* Please use the export from `@atlaskit/editor-common/provider-factory`.
|
|
154
|
+
*/
|
|
155
|
+
CardProvider, } from '@atlaskit/editor-common/provider-factory';
|
|
49
156
|
/**
|
|
50
157
|
* @deprecated
|
|
51
158
|
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
@@ -82,6 +82,7 @@ interface EditorBaseProps {
|
|
|
82
82
|
/**
|
|
83
83
|
* @default undefined
|
|
84
84
|
* @description Enables valid transaction events to be tracked in analytics (at a sampled rate)
|
|
85
|
+
* @deprecated Tracking is no longer supported for performance reasons
|
|
85
86
|
*/
|
|
86
87
|
trackValidTransactions?: {
|
|
87
88
|
samplingRate: number;
|
|
@@ -71,7 +71,6 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
|
|
|
71
71
|
dispatch: Dispatch;
|
|
72
72
|
proseMirrorRenderedSeverity?: SEVERITY;
|
|
73
73
|
transactionTracker: TransactionTracker;
|
|
74
|
-
validTransactionCount: number;
|
|
75
74
|
experienceStore?: ExperienceStore;
|
|
76
75
|
editorRef: React.RefObject<HTMLDivElement>;
|
|
77
76
|
static contextTypes: {
|
|
@@ -109,7 +108,6 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
|
|
|
109
108
|
getPlugins(preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>): EditorPlugin[];
|
|
110
109
|
createEditorState: (options: CreateEditorStateOptions) => EditorState;
|
|
111
110
|
private onEditorViewStateUpdated;
|
|
112
|
-
private trackValidTransactions;
|
|
113
111
|
private dispatchTransaction;
|
|
114
112
|
getDirectEditorProps: (state?: EditorState) => DirectEditorProps;
|
|
115
113
|
private createEditorView;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export { name, version } from './version-wrapper';
|
|
2
2
|
export { default as Editor } from './editor';
|
|
3
|
-
export {
|
|
3
|
+
export {
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
7
|
+
* Please use the export from `@atlaskit/editor-core/editor-context`.
|
|
8
|
+
*/
|
|
9
|
+
default as EditorContext, } from './ui/EditorContext';
|
|
4
10
|
export { default as WithEditorActions } from './ui/WithEditorActions';
|
|
5
11
|
export { default as WithHelpTrigger } from './ui/WithHelpTrigger';
|
|
6
12
|
export { default as CollapsedEditor } from './ui/CollapsedEditor';
|
|
@@ -19,18 +25,59 @@ export {
|
|
|
19
25
|
* DO NOT USE THIS WILL BE REMOVED SOON. This was intended for internal usage only
|
|
20
26
|
*/
|
|
21
27
|
ContextPanel, } from './ui/ContextPanel';
|
|
22
|
-
export {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
export {
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated
|
|
31
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
32
|
+
* Please use the export from `@atlaskit/emoji/resource`.
|
|
33
|
+
*/
|
|
34
|
+
EmojiResource, } from '@atlaskit/emoji/resource';
|
|
35
|
+
export {
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated
|
|
38
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
39
|
+
* Please use the export from `@atlaskit/mention/resource`.
|
|
40
|
+
*/
|
|
41
|
+
MentionResource, } from '@atlaskit/mention/resource';
|
|
42
|
+
export type {
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated
|
|
45
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
46
|
+
* Please use the export from `@atlaskit/mention/resource`.
|
|
47
|
+
*/
|
|
48
|
+
MentionProvider,
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated
|
|
51
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
52
|
+
* Please use the export from `@atlaskit/mention/resource`.
|
|
53
|
+
*/
|
|
54
|
+
PresenceProvider, } from '@atlaskit/mention/resource';
|
|
55
|
+
export {
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated
|
|
58
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
59
|
+
* Please use the export from `@atlaskit/mention/team-resource`.
|
|
60
|
+
*/
|
|
61
|
+
TeamMentionResource, } from '@atlaskit/mention/team-resource';
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated
|
|
64
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
65
|
+
* Please use the export from `@atlaskit/editor-common/annotation`.
|
|
66
|
+
*/
|
|
67
|
+
export {
|
|
26
68
|
/**
|
|
27
69
|
* @deprecated
|
|
28
70
|
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
29
|
-
* This is here while we work to extract the annotation plugin.
|
|
30
71
|
* Please use the export from `@atlaskit/editor-common/annotation`.
|
|
31
72
|
*/
|
|
32
|
-
|
|
33
|
-
export type {
|
|
73
|
+
AnnotationUpdateEmitter, } from '@atlaskit/editor-common/annotation';
|
|
74
|
+
export type {
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated
|
|
77
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
78
|
+
* Please use the export from `@atlaskit/editor-common/annotation`.
|
|
79
|
+
*/
|
|
80
|
+
UpdateEvent, } from '@atlaskit/editor-common/annotation';
|
|
34
81
|
/**
|
|
35
82
|
* @deprecated
|
|
36
83
|
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
@@ -38,14 +85,74 @@ export type { UpdateEvent } from '@atlaskit/editor-common/annotation';
|
|
|
38
85
|
* Please use the export from `@atlaskit/editor-plugins/annotation`.
|
|
39
86
|
*/
|
|
40
87
|
export type { AnnotationProviders, InlineCommentAnnotationProvider, InlineCommentCreateComponentProps, InlineCommentViewComponentProps, AnnotationInfo, AnnotationState, AnnotationTypeProvider, InlineCommentState, } from '@atlaskit/editor-plugins/annotation';
|
|
41
|
-
export type {
|
|
42
|
-
|
|
88
|
+
export type {
|
|
89
|
+
/**
|
|
90
|
+
* @deprecated
|
|
91
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
92
|
+
* Please use the export from `@atlaskit/editor-common/provider-factory`.
|
|
93
|
+
*/
|
|
94
|
+
TypeAheadItem, } from '@atlaskit/editor-common/provider-factory';
|
|
95
|
+
export {
|
|
96
|
+
/**
|
|
97
|
+
* @deprecated
|
|
98
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
99
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
100
|
+
*/
|
|
101
|
+
INPUT_METHOD,
|
|
102
|
+
/**
|
|
103
|
+
* @deprecated
|
|
104
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
105
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
106
|
+
*/
|
|
107
|
+
ACTION,
|
|
108
|
+
/**
|
|
109
|
+
* @deprecated
|
|
110
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
111
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
112
|
+
*/
|
|
113
|
+
ACTION_SUBJECT,
|
|
114
|
+
/**
|
|
115
|
+
* @deprecated
|
|
116
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
117
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
118
|
+
*/
|
|
119
|
+
ACTION_SUBJECT_ID,
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated
|
|
122
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
123
|
+
* Please use the export from `@atlaskit/editor-common/analytics`.
|
|
124
|
+
*/
|
|
125
|
+
EVENT_TYPE, } from '@atlaskit/editor-common/analytics';
|
|
43
126
|
export type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
44
127
|
export { getNodesCount, measurements } from './utils';
|
|
45
128
|
export { setTextSelection } from '@atlaskit/editor-common/utils';
|
|
46
129
|
export type { Command, EditorPlugin, EditorProps, EditorInstance, CommandDispatch } from './types';
|
|
47
130
|
export { default as EditorActions } from './actions';
|
|
48
|
-
export type {
|
|
131
|
+
export type {
|
|
132
|
+
/**
|
|
133
|
+
* @deprecated
|
|
134
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
135
|
+
* Please use the export from `@atlaskit/editor-common/provider-factory`.
|
|
136
|
+
*/
|
|
137
|
+
MacroProvider,
|
|
138
|
+
/**
|
|
139
|
+
* @deprecated
|
|
140
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
141
|
+
* Please use the export from `@atlaskit/editor-common/provider-factory`.
|
|
142
|
+
*/
|
|
143
|
+
MacroAttributes,
|
|
144
|
+
/**
|
|
145
|
+
* @deprecated
|
|
146
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
147
|
+
* Please use the export from `@atlaskit/editor-common/provider-factory`.
|
|
148
|
+
*/
|
|
149
|
+
ExtensionType,
|
|
150
|
+
/**
|
|
151
|
+
* @deprecated
|
|
152
|
+
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
153
|
+
* Please use the export from `@atlaskit/editor-common/provider-factory`.
|
|
154
|
+
*/
|
|
155
|
+
CardProvider, } from '@atlaskit/editor-common/provider-factory';
|
|
49
156
|
/**
|
|
50
157
|
* @deprecated
|
|
51
158
|
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
@@ -82,6 +82,7 @@ interface EditorBaseProps {
|
|
|
82
82
|
/**
|
|
83
83
|
* @default undefined
|
|
84
84
|
* @description Enables valid transaction events to be tracked in analytics (at a sampled rate)
|
|
85
|
+
* @deprecated Tracking is no longer supported for performance reasons
|
|
85
86
|
*/
|
|
86
87
|
trackValidTransactions?: {
|
|
87
88
|
samplingRate: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "197.9.
|
|
3
|
+
"version": "197.9.3",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
44
44
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
45
45
|
"@atlaskit/button": "^20.1.0",
|
|
46
|
-
"@atlaskit/editor-common": "^
|
|
46
|
+
"@atlaskit/editor-common": "^91.0.0",
|
|
47
47
|
"@atlaskit/editor-json-transformer": "^8.18.0",
|
|
48
|
-
"@atlaskit/editor-plugin-quick-insert": "1.4.
|
|
48
|
+
"@atlaskit/editor-plugin-quick-insert": "1.4.2",
|
|
49
49
|
"@atlaskit/editor-plugins": "^5.3.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
@@ -79,20 +79,20 @@
|
|
|
79
79
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@af/editor-examples-helpers": "0.3.
|
|
82
|
+
"@af/editor-examples-helpers": "0.3.12",
|
|
83
83
|
"@af/editor-libra": "*",
|
|
84
84
|
"@af/visual-regression": "*",
|
|
85
85
|
"@atlaskit/adf-utils": "^19.8.0",
|
|
86
86
|
"@atlaskit/analytics-listeners": "^8.11.0",
|
|
87
|
-
"@atlaskit/collab-provider": "9.40.
|
|
88
|
-
"@atlaskit/editor-plugin-annotation": "1.19.
|
|
87
|
+
"@atlaskit/collab-provider": "9.40.6",
|
|
88
|
+
"@atlaskit/editor-plugin-annotation": "1.19.8",
|
|
89
89
|
"@atlaskit/editor-plugin-card": "^3.0.0",
|
|
90
90
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
91
91
|
"@atlaskit/editor-plugin-list": "^3.8.0",
|
|
92
92
|
"@atlaskit/editor-plugin-paste": "^1.12.0",
|
|
93
93
|
"@atlaskit/editor-test-helpers": "*",
|
|
94
94
|
"@atlaskit/link-provider": "^1.16.0",
|
|
95
|
-
"@atlaskit/logo": "^14.
|
|
95
|
+
"@atlaskit/logo": "^14.3.0",
|
|
96
96
|
"@atlaskit/media-core": "^34.3.0",
|
|
97
97
|
"@atlaskit/media-integration-test-helpers": "^3.1.0",
|
|
98
98
|
"@atlaskit/media-test-helpers": "^34.4.0",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"@atlaskit/visual-regression": "*",
|
|
107
107
|
"@atlassian/adf-schema-json": "^1.22.0",
|
|
108
108
|
"@atlassian/feature-flags-test-utils": "*",
|
|
109
|
-
"@atlassian/search-provider": "2.4.
|
|
109
|
+
"@atlassian/search-provider": "2.4.139",
|
|
110
110
|
"@emotion/jest": "^11.8.0",
|
|
111
111
|
"@storybook/addon-knobs": "^5.3.18",
|
|
112
112
|
"@testing-library/react": "^12.1.5",
|