@atlaskit/editor-core 197.9.1 → 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 +21 -0
- package/dist/cjs/composable-editor/hooks/useMemoEditorProps.js +1 -2
- package/dist/cjs/create-editor/ReactEditorView.js +0 -18
- package/dist/cjs/ui/ContentStyles/panel.js +1 -1
- 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/ui/ContentStyles/panel.js +18 -4
- 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/ui/ContentStyles/panel.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +0 -2
- package/dist/types/create-editor/create-universal-preset.d.ts +3 -0
- package/dist/types/index.d.ts +118 -11
- package/dist/types/presets/default.d.ts +8 -8
- package/dist/types/presets/universal.d.ts +3 -0
- package/dist/types/presets/useUniversalPreset.d.ts +3 -0
- 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/create-editor/create-universal-preset.d.ts +3 -0
- package/dist/types-ts4.5/index.d.ts +118 -11
- package/dist/types-ts4.5/presets/default.d.ts +8 -8
- package/dist/types-ts4.5/presets/universal.d.ts +3 -0
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +3 -0
- package/dist/types-ts4.5/types/editor-props.d.ts +1 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
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
|
+
|
|
15
|
+
## 197.9.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#143310](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/143310)
|
|
20
|
+
[`f55df006dcd59`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f55df006dcd59) -
|
|
21
|
+
ED-24822 - Add padding to panels with no icon and unhide drag handle in first bodied node
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 197.9.1
|
|
4
25
|
|
|
5
26
|
### 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
|
|
|
@@ -13,5 +13,5 @@ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
|
13
13
|
var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
14
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation due to mixin usage
|
|
15
15
|
var panelStyles = exports.panelStyles = function panelStyles() {
|
|
16
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\t.", " {\n\t\t\tcursor: pointer;\n\n\t\t\t/* Danger when top level node */\n\t\t\t&.danger {\n\t\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t\t\tbackground-color: ", " !important;\n\n\t\t\t\t.", " {\n\t\t\t\t\tcolor: ", " !important;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcursor: text;\n\t\t}\n\n\t\t/* Danger when nested node */\n\t\t.danger .", " {\n\t\t\t&[data-panel-type] {\n\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t.", " {\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t", ";\n\t}\n\n\t.", ".", ":not(.danger) {\n\t\t", "\n\t}\n\n\t", ";\n\n\t/* Don't want extra padding for inline editor (nested) */\n\t", ";\n"])), _panel.PanelSharedCssClassName.prefix, _editorSharedStyles.akEditorSelectedBorderSize, _editorSharedStyles.akEditorDeleteBorder, "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")"), _panel.PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(_editorSharedStyles.akEditorDeleteIconColor, ")"), _panel.PanelSharedCssClassName.content, _panel.PanelSharedCssClassName.prefix, "var(--ds-blanket-danger, ".concat(_editorSharedStyles.akEditorDeleteBackgroundWithOpacity, ")"), _panel.PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(_editorSharedStyles.akEditorDeleteIconColor, ")"), (0, _panel.panelSharedStyles)(), _panel.PanelSharedCssClassName.prefix, _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow, _editorSharedStyles.SelectionStyle.Blanket]), (0, _experiments.editorExperiment)('nested-dnd', true) && ".ak-editor-content-area.appearance-full-page .ProseMirror .ak-editor-panel .".concat(_panel.PanelSharedCssClassName.icon, " {\n\t\t\tpadding-right: ", "var(--ds-space-150, 12px)", ";\n\t\t}"), (0, _experiments.editorExperiment)('nested-dnd', true) && ".ak-editor-content-area .ak-editor-content-area .ProseMirror .ak-editor-panel .".concat(_panel.PanelSharedCssClassName.icon, " {\n\t\tpadding-right: ", "var(--ds-space-100, 8px)", ";\n\t}"));
|
|
16
|
+
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\t.", " {\n\t\t\tcursor: pointer;\n\n\t\t\t/* Danger when top level node */\n\t\t\t&.danger {\n\t\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t\t\tbackground-color: ", " !important;\n\n\t\t\t\t.", " {\n\t\t\t\t\tcolor: ", " !important;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcursor: text;\n\t\t}\n\n\t\t/* Danger when nested node */\n\t\t.danger .", " {\n\t\t\t&[data-panel-type] {\n\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t.", " {\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t", ";\n\t}\n\n\t.", ".", ":not(.danger) {\n\t\t", "\n\t}\n\n\t", ";\n\n\t/* Don't want extra padding for inline editor (nested) */\n\t", ";\n"])), _panel.PanelSharedCssClassName.prefix, _editorSharedStyles.akEditorSelectedBorderSize, _editorSharedStyles.akEditorDeleteBorder, "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")"), _panel.PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(_editorSharedStyles.akEditorDeleteIconColor, ")"), _panel.PanelSharedCssClassName.content, _panel.PanelSharedCssClassName.prefix, "var(--ds-blanket-danger, ".concat(_editorSharedStyles.akEditorDeleteBackgroundWithOpacity, ")"), _panel.PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(_editorSharedStyles.akEditorDeleteIconColor, ")"), (0, _panel.panelSharedStyles)(), _panel.PanelSharedCssClassName.prefix, _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow, _editorSharedStyles.SelectionStyle.Blanket]), (0, _experiments.editorExperiment)('nested-dnd', true) && ".ak-editor-content-area.appearance-full-page .ProseMirror {\n\t\t.ak-editor-panel .".concat(_panel.PanelSharedCssClassName.icon, " {\n\t\t\tpadding-right: ", "var(--ds-space-150, 12px)", ";\n\t\t}\n\n\t\t.ak-editor-panel.").concat(_panel.PanelSharedCssClassName.noIcon, " {\n\t\t\tpadding-left: ", "var(--ds-space-250, 20px)", ";\n\t\t\tpadding-right: ", "var(--ds-space-250, 20px)", ";\n\t\t}\n\t}"), (0, _experiments.editorExperiment)('nested-dnd', true) && ".ak-editor-content-area .ak-editor-content-area .ProseMirror {\n\t\t.ak-editor-panel .".concat(_panel.PanelSharedCssClassName.icon, " {\n\t\t\tpadding-right: ", "var(--ds-space-100, 8px)", ";\n\t\t}\n\t\t.ak-editor-panel.").concat(_panel.PanelSharedCssClassName.noIcon, " {\n\t\t\tpadding-right: ", "var(--ds-space-150, 12px)", ";\n\t\t\tpadding-left: ", "var(--ds-space-150, 12px)", ";\n\n\t\t}\n\t}"));
|
|
17
17
|
};
|
|
@@ -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';
|
|
@@ -42,12 +42,26 @@ export const panelStyles = () => css`
|
|
|
42
42
|
${getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket])}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
${editorExperiment('nested-dnd', true) && `.ak-editor-content-area.appearance-full-page .ProseMirror
|
|
45
|
+
${editorExperiment('nested-dnd', true) && `.ak-editor-content-area.appearance-full-page .ProseMirror {
|
|
46
|
+
.ak-editor-panel .${PanelSharedCssClassName.icon} {
|
|
46
47
|
padding-right: ${"var(--ds-space-150, 12px)"};
|
|
47
|
-
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.ak-editor-panel.${PanelSharedCssClassName.noIcon} {
|
|
51
|
+
padding-left: ${"var(--ds-space-250, 20px)"};
|
|
52
|
+
padding-right: ${"var(--ds-space-250, 20px)"};
|
|
53
|
+
}
|
|
54
|
+
}`};
|
|
48
55
|
|
|
49
56
|
/* Don't want extra padding for inline editor (nested) */
|
|
50
|
-
${editorExperiment('nested-dnd', true) && `.ak-editor-content-area .ak-editor-content-area .ProseMirror
|
|
51
|
-
|
|
57
|
+
${editorExperiment('nested-dnd', true) && `.ak-editor-content-area .ak-editor-content-area .ProseMirror {
|
|
58
|
+
.ak-editor-panel .${PanelSharedCssClassName.icon} {
|
|
59
|
+
padding-right: ${"var(--ds-space-100, 8px)"};
|
|
60
|
+
}
|
|
61
|
+
.ak-editor-panel.${PanelSharedCssClassName.noIcon} {
|
|
62
|
+
padding-right: ${"var(--ds-space-150, 12px)"};
|
|
63
|
+
padding-left: ${"var(--ds-space-150, 12px)"};
|
|
64
|
+
|
|
65
|
+
}
|
|
52
66
|
}`};
|
|
53
67
|
`;
|
|
@@ -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';
|
|
@@ -7,5 +7,5 @@ import { akEditorDeleteBackground, akEditorDeleteBackgroundWithOpacity, akEditor
|
|
|
7
7
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation due to mixin usage
|
|
9
9
|
export var panelStyles = function panelStyles() {
|
|
10
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t.", " {\n\t\t\tcursor: pointer;\n\n\t\t\t/* Danger when top level node */\n\t\t\t&.danger {\n\t\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t\t\tbackground-color: ", " !important;\n\n\t\t\t\t.", " {\n\t\t\t\t\tcolor: ", " !important;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcursor: text;\n\t\t}\n\n\t\t/* Danger when nested node */\n\t\t.danger .", " {\n\t\t\t&[data-panel-type] {\n\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t.", " {\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t", ";\n\t}\n\n\t.", ".", ":not(.danger) {\n\t\t", "\n\t}\n\n\t", ";\n\n\t/* Don't want extra padding for inline editor (nested) */\n\t", ";\n"])), PanelSharedCssClassName.prefix, akEditorSelectedBorderSize, akEditorDeleteBorder, "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), PanelSharedCssClassName.content, PanelSharedCssClassName.prefix, "var(--ds-blanket-danger, ".concat(akEditorDeleteBackgroundWithOpacity, ")"), PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), panelSharedStyles(), PanelSharedCssClassName.prefix, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), editorExperiment('nested-dnd', true) && ".ak-editor-content-area.appearance-full-page .ProseMirror .ak-editor-panel .".concat(PanelSharedCssClassName.icon, " {\n\t\t\tpadding-right: ", "var(--ds-space-150, 12px)", ";\n\t\t}"), editorExperiment('nested-dnd', true) && ".ak-editor-content-area .ak-editor-content-area .ProseMirror .ak-editor-panel .".concat(PanelSharedCssClassName.icon, " {\n\t\tpadding-right: ", "var(--ds-space-100, 8px)", ";\n\t}"));
|
|
10
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t.", " {\n\t\t\tcursor: pointer;\n\n\t\t\t/* Danger when top level node */\n\t\t\t&.danger {\n\t\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t\t\tbackground-color: ", " !important;\n\n\t\t\t\t.", " {\n\t\t\t\t\tcolor: ", " !important;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcursor: text;\n\t\t}\n\n\t\t/* Danger when nested node */\n\t\t.danger .", " {\n\t\t\t&[data-panel-type] {\n\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t.", " {\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t", ";\n\t}\n\n\t.", ".", ":not(.danger) {\n\t\t", "\n\t}\n\n\t", ";\n\n\t/* Don't want extra padding for inline editor (nested) */\n\t", ";\n"])), PanelSharedCssClassName.prefix, akEditorSelectedBorderSize, akEditorDeleteBorder, "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), PanelSharedCssClassName.content, PanelSharedCssClassName.prefix, "var(--ds-blanket-danger, ".concat(akEditorDeleteBackgroundWithOpacity, ")"), PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), panelSharedStyles(), PanelSharedCssClassName.prefix, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), editorExperiment('nested-dnd', true) && ".ak-editor-content-area.appearance-full-page .ProseMirror {\n\t\t.ak-editor-panel .".concat(PanelSharedCssClassName.icon, " {\n\t\t\tpadding-right: ", "var(--ds-space-150, 12px)", ";\n\t\t}\n\n\t\t.ak-editor-panel.").concat(PanelSharedCssClassName.noIcon, " {\n\t\t\tpadding-left: ", "var(--ds-space-250, 20px)", ";\n\t\t\tpadding-right: ", "var(--ds-space-250, 20px)", ";\n\t\t}\n\t}"), editorExperiment('nested-dnd', true) && ".ak-editor-content-area .ak-editor-content-area .ProseMirror {\n\t\t.ak-editor-panel .".concat(PanelSharedCssClassName.icon, " {\n\t\t\tpadding-right: ", "var(--ds-space-100, 8px)", ";\n\t\t}\n\t\t.ak-editor-panel.").concat(PanelSharedCssClassName.noIcon, " {\n\t\t\tpadding-right: ", "var(--ds-space-150, 12px)", ";\n\t\t\tpadding-left: ", "var(--ds-space-150, 12px)", ";\n\n\t\t}\n\t}"));
|
|
11
11
|
};
|
|
@@ -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;
|
|
@@ -3411,6 +3411,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
3411
3411
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3412
3412
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
3413
3413
|
sharedState: import("@atlaskit/editor-plugin-media-insert").MediaInsertPluginState;
|
|
3414
|
+
commands: {
|
|
3415
|
+
showMediaInsertPopup: import("@atlaskit/editor-common/types").EditorCommand;
|
|
3416
|
+
};
|
|
3414
3417
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
3415
3418
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
3416
3419
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
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.
|
|
@@ -702,7 +702,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
702
702
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
703
703
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
704
704
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
705
|
-
sharedState: import("@atlaskit/editor-
|
|
705
|
+
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
706
706
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
707
707
|
pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
|
|
708
708
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
@@ -811,7 +811,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
811
811
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"unsupportedContent", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholder", {
|
|
812
812
|
pluginConfiguration: PlaceholderPluginOptions | undefined;
|
|
813
813
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
814
|
-
sharedState: import("@atlaskit/editor-
|
|
814
|
+
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
815
815
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
|
|
816
816
|
sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
|
|
817
817
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
@@ -1503,7 +1503,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1503
1503
|
}, import("@atlaskit/editor-plugins/context-identifier").PluginConfiguration | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
|
|
1504
1504
|
sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
|
|
1505
1505
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
1506
|
-
sharedState: import("@atlaskit/editor-
|
|
1506
|
+
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
1507
1507
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clipboard", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"paste", {
|
|
1508
1508
|
pluginConfiguration: PastePluginOptions;
|
|
1509
1509
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -2204,7 +2204,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
2204
2204
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
2205
2205
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
2206
2206
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
2207
|
-
sharedState: import("@atlaskit/editor-
|
|
2207
|
+
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
2208
2208
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
2209
2209
|
pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
|
|
2210
2210
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
@@ -3198,7 +3198,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3198
3198
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
3199
3199
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
3200
3200
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
3201
|
-
sharedState: import("@atlaskit/editor-
|
|
3201
|
+
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
3202
3202
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
3203
3203
|
pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
|
|
3204
3204
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
@@ -3307,7 +3307,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3307
3307
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"unsupportedContent", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholder", {
|
|
3308
3308
|
pluginConfiguration: PlaceholderPluginOptions | undefined;
|
|
3309
3309
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
3310
|
-
sharedState: import("@atlaskit/editor-
|
|
3310
|
+
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
3311
3311
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
|
|
3312
3312
|
sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
|
|
3313
3313
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
@@ -3999,7 +3999,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3999
3999
|
}, import("@atlaskit/editor-plugins/context-identifier").PluginConfiguration | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
|
|
4000
4000
|
sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
|
|
4001
4001
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
4002
|
-
sharedState: import("@atlaskit/editor-
|
|
4002
|
+
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
4003
4003
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clipboard", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"paste", {
|
|
4004
4004
|
pluginConfiguration: PastePluginOptions;
|
|
4005
4005
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -4700,7 +4700,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
4700
4700
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
4701
4701
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
4702
4702
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
4703
|
-
sharedState: import("@atlaskit/editor-
|
|
4703
|
+
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
4704
4704
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
4705
4705
|
pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
|
|
4706
4706
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
@@ -3462,6 +3462,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
3462
3462
|
sharedState: FeatureFlags;
|
|
3463
3463
|
}, FeatureFlags>>];
|
|
3464
3464
|
sharedState: import("@atlaskit/editor-plugins/media-insert").MediaInsertPluginState;
|
|
3465
|
+
commands: {
|
|
3466
|
+
showMediaInsertPopup: import("@atlaskit/editor-common/types").EditorCommand;
|
|
3467
|
+
};
|
|
3465
3468
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
3466
3469
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
3467
3470
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -3411,6 +3411,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
3411
3411
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3412
3412
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
3413
3413
|
sharedState: import("@atlaskit/editor-plugin-media-insert").MediaInsertPluginState;
|
|
3414
|
+
commands: {
|
|
3415
|
+
showMediaInsertPopup: import("@atlaskit/editor-common/types").EditorCommand;
|
|
3416
|
+
};
|
|
3414
3417
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
3415
3418
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
3416
3419
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -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;
|
|
@@ -4186,6 +4186,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
4186
4186
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
4187
4187
|
];
|
|
4188
4188
|
sharedState: import("@atlaskit/editor-plugin-media-insert").MediaInsertPluginState;
|
|
4189
|
+
commands: {
|
|
4190
|
+
showMediaInsertPopup: import("@atlaskit/editor-common/types").EditorCommand;
|
|
4191
|
+
};
|
|
4189
4192
|
}, undefined> | undefined,
|
|
4190
4193
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
4191
4194
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
@@ -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.
|
|
@@ -869,7 +869,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
869
869
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
870
870
|
}, undefined>,
|
|
871
871
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
872
|
-
sharedState: import("@atlaskit/editor-
|
|
872
|
+
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
873
873
|
}, undefined>,
|
|
874
874
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
875
875
|
pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
|
|
@@ -1004,7 +1004,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1004
1004
|
pluginConfiguration: PlaceholderPluginOptions | undefined;
|
|
1005
1005
|
dependencies: [
|
|
1006
1006
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
1007
|
-
sharedState: import("@atlaskit/editor-
|
|
1007
|
+
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
1008
1008
|
}, undefined>,
|
|
1009
1009
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
|
|
1010
1010
|
sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
|
|
@@ -1829,7 +1829,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1829
1829
|
sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
|
|
1830
1830
|
}, undefined>,
|
|
1831
1831
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
1832
|
-
sharedState: import("@atlaskit/editor-
|
|
1832
|
+
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
1833
1833
|
}, undefined>,
|
|
1834
1834
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clipboard", {}, undefined>,
|
|
1835
1835
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"paste", {
|
|
@@ -2678,7 +2678,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
2678
2678
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
2679
2679
|
}, undefined>,
|
|
2680
2680
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
2681
|
-
sharedState: import("@atlaskit/editor-
|
|
2681
|
+
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
2682
2682
|
}, undefined>,
|
|
2683
2683
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
2684
2684
|
pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
|
|
@@ -3907,7 +3907,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3907
3907
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
3908
3908
|
}, undefined>,
|
|
3909
3909
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
3910
|
-
sharedState: import("@atlaskit/editor-
|
|
3910
|
+
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
3911
3911
|
}, undefined>,
|
|
3912
3912
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
3913
3913
|
pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
|
|
@@ -4042,7 +4042,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
4042
4042
|
pluginConfiguration: PlaceholderPluginOptions | undefined;
|
|
4043
4043
|
dependencies: [
|
|
4044
4044
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
4045
|
-
sharedState: import("@atlaskit/editor-
|
|
4045
|
+
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
4046
4046
|
}, undefined>,
|
|
4047
4047
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
|
|
4048
4048
|
sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
|
|
@@ -4867,7 +4867,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
4867
4867
|
sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
|
|
4868
4868
|
}, undefined>,
|
|
4869
4869
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
4870
|
-
sharedState: import("@atlaskit/editor-
|
|
4870
|
+
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
4871
4871
|
}, undefined>,
|
|
4872
4872
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clipboard", {}, undefined>,
|
|
4873
4873
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"paste", {
|
|
@@ -5716,7 +5716,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
5716
5716
|
sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
|
|
5717
5717
|
}, undefined>,
|
|
5718
5718
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
5719
|
-
sharedState: import("@atlaskit/editor-
|
|
5719
|
+
sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
|
|
5720
5720
|
}, undefined>,
|
|
5721
5721
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
5722
5722
|
pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
|
|
@@ -4237,6 +4237,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
4237
4237
|
}, FeatureFlags>>
|
|
4238
4238
|
];
|
|
4239
4239
|
sharedState: import("@atlaskit/editor-plugins/media-insert").MediaInsertPluginState;
|
|
4240
|
+
commands: {
|
|
4241
|
+
showMediaInsertPopup: import("@atlaskit/editor-common/types").EditorCommand;
|
|
4242
|
+
};
|
|
4240
4243
|
}, undefined> | undefined,
|
|
4241
4244
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
4242
4245
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
@@ -4186,6 +4186,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
4186
4186
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
4187
4187
|
];
|
|
4188
4188
|
sharedState: import("@atlaskit/editor-plugin-media-insert").MediaInsertPluginState;
|
|
4189
|
+
commands: {
|
|
4190
|
+
showMediaInsertPopup: import("@atlaskit/editor-common/types").EditorCommand;
|
|
4191
|
+
};
|
|
4189
4192
|
}, undefined> | undefined,
|
|
4190
4193
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
4191
4194
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
@@ -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",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
57
57
|
"@atlaskit/task-decision": "^17.10.0",
|
|
58
58
|
"@atlaskit/tmp-editor-statsig": "*",
|
|
59
|
-
"@atlaskit/tokens": "^1.
|
|
59
|
+
"@atlaskit/tokens": "^1.61.0",
|
|
60
60
|
"@atlaskit/tooltip": "^18.7.0",
|
|
61
61
|
"@atlaskit/width-detector": "^4.3.0",
|
|
62
62
|
"@babel/runtime": "^7.0.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",
|