@atlaskit/editor-core 189.1.2 → 189.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/cjs/create-editor/ErrorBoundary.js +2 -3
- package/dist/cjs/plugins/analytics/index.js +1 -160
- package/dist/cjs/plugins/annotation/commands/index.js +1 -1
- package/dist/cjs/plugins/annotation/pm-plugins/inline-comment.js +2 -2
- package/dist/cjs/plugins/annotation/pm-plugins/keymap.js +1 -1
- package/dist/cjs/plugins/annotation/ui/InlineCommentView.js +3 -5
- package/dist/cjs/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +1 -1
- package/dist/cjs/plugins/collab-edit/utils.js +4 -4
- package/dist/cjs/plugins/extension/actions.js +3 -2
- package/dist/cjs/plugins/extension/extension-api.js +6 -5
- package/dist/cjs/plugins/find-replace/FindReplaceToolbarButtonWithState.js +1 -1
- package/dist/cjs/plugins/find-replace/commands-with-analytics.js +23 -22
- package/dist/cjs/plugins/find-replace/keymap.js +1 -1
- package/dist/cjs/plugins/find-replace/ui/Find.js +6 -6
- package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +3 -3
- package/dist/cjs/plugins/find-replace/ui/Replace.js +6 -6
- package/dist/cjs/plugins/indentation/commands/index.js +24 -16
- package/dist/cjs/plugins/indentation/commands/utils.js +4 -3
- package/dist/cjs/plugins/indentation/index.js +4 -2
- package/dist/cjs/plugins/indentation/pm-plugins/keymap.js +4 -4
- package/dist/cjs/plugins/insert-block/index.js +1 -1
- package/dist/cjs/plugins/layout/actions.js +6 -7
- package/dist/cjs/plugins/macro/actions.js +3 -2
- package/dist/cjs/plugins/paste/pm-plugins/main.js +2 -5
- package/dist/cjs/plugins/toolbar-lists-indentation/ui/onItemActivated.js +9 -7
- package/dist/cjs/plugins/undo-redo/enums.js +3 -3
- package/dist/cjs/ui/ConfigPanel/FormErrorBoundary.js +3 -4
- package/dist/cjs/ui/ErrorBoundary/index.js +1 -1
- package/dist/cjs/ui/ToolbarFeedback/index.js +1 -1
- package/dist/cjs/ui/WithHelpTrigger/index.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ErrorBoundary.js +1 -2
- package/dist/es2019/plugins/analytics/index.js +0 -3
- package/dist/es2019/plugins/annotation/commands/index.js +1 -1
- package/dist/es2019/plugins/annotation/pm-plugins/inline-comment.js +1 -1
- package/dist/es2019/plugins/annotation/pm-plugins/keymap.js +1 -1
- package/dist/es2019/plugins/annotation/ui/InlineCommentView.js +3 -3
- package/dist/es2019/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +1 -1
- package/dist/es2019/plugins/collab-edit/utils.js +1 -1
- package/dist/es2019/plugins/extension/actions.js +2 -1
- package/dist/es2019/plugins/extension/extension-api.js +2 -1
- package/dist/es2019/plugins/find-replace/FindReplaceToolbarButtonWithState.js +1 -1
- package/dist/es2019/plugins/find-replace/commands-with-analytics.js +2 -1
- package/dist/es2019/plugins/find-replace/keymap.js +1 -1
- package/dist/es2019/plugins/find-replace/ui/Find.js +1 -1
- package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +1 -1
- package/dist/es2019/plugins/find-replace/ui/Replace.js +1 -1
- package/dist/es2019/plugins/indentation/commands/index.js +10 -6
- package/dist/es2019/plugins/indentation/commands/utils.js +4 -3
- package/dist/es2019/plugins/indentation/index.js +7 -2
- package/dist/es2019/plugins/indentation/pm-plugins/keymap.js +4 -4
- package/dist/es2019/plugins/insert-block/index.js +1 -1
- package/dist/es2019/plugins/layout/actions.js +1 -2
- package/dist/es2019/plugins/macro/actions.js +2 -1
- package/dist/es2019/plugins/paste/pm-plugins/main.js +2 -4
- package/dist/es2019/plugins/toolbar-lists-indentation/ui/onItemActivated.js +9 -7
- package/dist/es2019/plugins/undo-redo/enums.js +1 -1
- package/dist/es2019/ui/ConfigPanel/FormErrorBoundary.js +1 -2
- package/dist/es2019/ui/ErrorBoundary/index.js +1 -1
- package/dist/es2019/ui/ToolbarFeedback/index.js +1 -1
- package/dist/es2019/ui/WithHelpTrigger/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ErrorBoundary.js +1 -2
- package/dist/esm/plugins/analytics/index.js +0 -3
- package/dist/esm/plugins/annotation/commands/index.js +1 -1
- package/dist/esm/plugins/annotation/pm-plugins/inline-comment.js +1 -1
- package/dist/esm/plugins/annotation/pm-plugins/keymap.js +1 -1
- package/dist/esm/plugins/annotation/ui/InlineCommentView.js +3 -3
- package/dist/esm/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +1 -1
- package/dist/esm/plugins/collab-edit/utils.js +1 -1
- package/dist/esm/plugins/extension/actions.js +2 -1
- package/dist/esm/plugins/extension/extension-api.js +2 -1
- package/dist/esm/plugins/find-replace/FindReplaceToolbarButtonWithState.js +1 -1
- package/dist/esm/plugins/find-replace/commands-with-analytics.js +2 -1
- package/dist/esm/plugins/find-replace/keymap.js +1 -1
- package/dist/esm/plugins/find-replace/ui/Find.js +1 -1
- package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +1 -1
- package/dist/esm/plugins/find-replace/ui/Replace.js +1 -1
- package/dist/esm/plugins/indentation/commands/index.js +24 -16
- package/dist/esm/plugins/indentation/commands/utils.js +4 -3
- package/dist/esm/plugins/indentation/index.js +4 -2
- package/dist/esm/plugins/indentation/pm-plugins/keymap.js +4 -4
- package/dist/esm/plugins/insert-block/index.js +1 -1
- package/dist/esm/plugins/layout/actions.js +1 -2
- package/dist/esm/plugins/macro/actions.js +2 -1
- package/dist/esm/plugins/paste/pm-plugins/main.js +2 -4
- package/dist/esm/plugins/toolbar-lists-indentation/ui/onItemActivated.js +9 -7
- package/dist/esm/plugins/undo-redo/enums.js +1 -1
- package/dist/esm/ui/ConfigPanel/FormErrorBoundary.js +1 -2
- package/dist/esm/ui/ErrorBoundary/index.js +1 -1
- package/dist/esm/ui/ToolbarFeedback/index.js +1 -1
- package/dist/esm/ui/WithHelpTrigger/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/plugins/analytics/index.d.ts +0 -5
- package/dist/types/plugins/annotation/commands/index.d.ts +2 -3
- package/dist/types/plugins/annotation/commands/transform.d.ts +1 -2
- package/dist/types/plugins/annotation/ui/InlineCommentView.d.ts +1 -1
- package/dist/types/plugins/annotation/utils.d.ts +1 -1
- package/dist/types/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +1 -1
- package/dist/types/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +1 -1
- package/dist/types/plugins/find-replace/commands-with-analytics.d.ts +1 -1
- package/dist/types/plugins/find-replace/ui/Find.d.ts +1 -1
- package/dist/types/plugins/find-replace/ui/FindReplace.d.ts +2 -2
- package/dist/types/plugins/find-replace/ui/FindReplaceToolbarButton.d.ts +1 -1
- package/dist/types/plugins/find-replace/ui/Replace.d.ts +3 -2
- package/dist/types/plugins/indentation/commands/index.d.ts +3 -2
- package/dist/types/plugins/indentation/commands/utils.d.ts +3 -2
- package/dist/types/plugins/indentation/index.d.ts +5 -2
- package/dist/types/plugins/indentation/pm-plugins/keymap.d.ts +2 -1
- package/dist/types/plugins/macro/actions.d.ts +1 -1
- package/dist/types/plugins/paste/util/index.d.ts +1 -2
- package/dist/types/presets/default.d.ts +20 -0
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +3 -3
- package/dist/types/ui/ErrorBoundary/index.d.ts +2 -3
- package/dist/types/ui/Toolbar/toolbar-types.d.ts +2 -2
- package/dist/types-ts4.5/plugins/analytics/index.d.ts +0 -5
- package/dist/types-ts4.5/plugins/annotation/commands/index.d.ts +2 -3
- package/dist/types-ts4.5/plugins/annotation/commands/transform.d.ts +1 -2
- package/dist/types-ts4.5/plugins/annotation/ui/InlineCommentView.d.ts +1 -1
- package/dist/types-ts4.5/plugins/annotation/utils.d.ts +1 -1
- package/dist/types-ts4.5/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +1 -1
- package/dist/types-ts4.5/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +1 -1
- package/dist/types-ts4.5/plugins/find-replace/commands-with-analytics.d.ts +1 -1
- package/dist/types-ts4.5/plugins/find-replace/ui/Find.d.ts +1 -1
- package/dist/types-ts4.5/plugins/find-replace/ui/FindReplace.d.ts +2 -2
- package/dist/types-ts4.5/plugins/find-replace/ui/FindReplaceToolbarButton.d.ts +1 -1
- package/dist/types-ts4.5/plugins/find-replace/ui/Replace.d.ts +3 -2
- package/dist/types-ts4.5/plugins/indentation/commands/index.d.ts +3 -2
- package/dist/types-ts4.5/plugins/indentation/commands/utils.d.ts +3 -2
- package/dist/types-ts4.5/plugins/indentation/index.d.ts +7 -2
- package/dist/types-ts4.5/plugins/indentation/pm-plugins/keymap.d.ts +2 -1
- package/dist/types-ts4.5/plugins/macro/actions.d.ts +1 -1
- package/dist/types-ts4.5/plugins/paste/util/index.d.ts +1 -2
- package/dist/types-ts4.5/presets/default.d.ts +20 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +3 -3
- package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +2 -3
- package/dist/types-ts4.5/ui/Toolbar/toolbar-types.d.ts +2 -2
- package/package.json +3 -3
|
@@ -15,8 +15,6 @@ import { escapeLinks, htmlContainsSingleFile, isPastedFromWord, isPastedFromExce
|
|
|
15
15
|
import { transformSliceNestedExpandToExpand, transformSliceToJoinAdjacentCodeBlocks, transformSingleLineCodeBlockToCodeMark, transformSliceToDecisionList } from '@atlaskit/editor-common/transforms';
|
|
16
16
|
import { handleMacroAutoConvert, handleMention, handleParagraphBlockMarks } from '../handlers';
|
|
17
17
|
import { createPasteMeasurePayload, getContentNodeTypes, handlePasteAsPlainTextWithAnalytics, handlePasteIntoTaskAndDecisionWithAnalytics, handleCodeBlockWithAnalytics, handleMediaSingleWithAnalytics, handlePastePreservingMarksWithAnalytics, handleMarkdownWithAnalytics, handleRichTextWithAnalytics, handleExpandWithAnalytics, handleSelectedTableWithAnalytics, handlePasteLinkOnSelectedTextWithAnalytics, sendPasteAnalyticsEvent, handlePasteIntoCaptionWithAnalytics, handlePastePanelOrDecisionIntoListWithAnalytics, handlePasteNonNestableBlockNodesIntoListWithAnalytics } from './analytics';
|
|
18
|
-
// TODO: ED-20519 It requires full analytics extraction to use the plugin injection API
|
|
19
|
-
import { analyticsPluginKey } from '../../analytics';
|
|
20
18
|
import { isInsideBlockQuote, insideTable, measurements } from '../../../utils';
|
|
21
19
|
import { upgradeTextToLists, splitParagraphs } from '../commands';
|
|
22
20
|
// TODO: ED-20519 It requires annotation extraction to use the plugin injection API
|
|
@@ -102,7 +100,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
|
|
|
102
100
|
}
|
|
103
101
|
},
|
|
104
102
|
handlePaste: function handlePaste(view, rawEvent, slice) {
|
|
105
|
-
var _text, _analyticsPlugin$perf, _schema$nodes, _schema$nodes2, _schema$nodes3, _pluginInjectionApi$m;
|
|
103
|
+
var _text, _pluginInjectionApi$a2, _analyticsPlugin$perf, _schema$nodes, _schema$nodes2, _schema$nodes3, _pluginInjectionApi$m;
|
|
106
104
|
var event = rawEvent;
|
|
107
105
|
if (!event.clipboardData) {
|
|
108
106
|
return false;
|
|
@@ -148,7 +146,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
|
|
|
148
146
|
event.stopPropagation();
|
|
149
147
|
}
|
|
150
148
|
var state = view.state;
|
|
151
|
-
var analyticsPlugin =
|
|
149
|
+
var analyticsPlugin = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a2 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a2 === void 0 || (_pluginInjectionApi$a2 = _pluginInjectionApi$a2.sharedState) === null || _pluginInjectionApi$a2 === void 0 ? void 0 : _pluginInjectionApi$a2.currentState();
|
|
152
150
|
var pasteTrackingEnabled = analyticsPlugin === null || analyticsPlugin === void 0 || (_analyticsPlugin$perf = analyticsPlugin.performanceTracking) === null || _analyticsPlugin$perf === void 0 || (_analyticsPlugin$perf = _analyticsPlugin$perf.pasteTracking) === null || _analyticsPlugin$perf === void 0 ? void 0 : _analyticsPlugin$perf.enabled;
|
|
153
151
|
if (pasteTrackingEnabled) {
|
|
154
152
|
var content = getContentNodeTypes(slice.content);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getIndentCommand as indentParagraphOrHeading, getOutdentCommand as outdentParagraphOrHeading } from '../../indentation/commands';
|
|
2
2
|
import { getIndentCommand as indentTaskList, getUnindentCommand as outdentTaskList } from '../../tasks-and-decisions/pm-plugins/keymaps';
|
|
3
|
-
import { INPUT_METHOD } from '
|
|
3
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { pluginKey as indentationButtonsPluginKey } from '../pm-plugins/indentation-buttons';
|
|
5
5
|
export var onItemActivated = function onItemActivated(pluginInjectionApi) {
|
|
6
6
|
return function (_ref) {
|
|
@@ -18,14 +18,15 @@ export var onItemActivated = function onItemActivated(pluginInjectionApi) {
|
|
|
18
18
|
var _indentationButtonsPl;
|
|
19
19
|
var node = (_indentationButtonsPl = indentationButtonsPluginKey.getState(editorView.state)) === null || _indentationButtonsPl === void 0 ? void 0 : _indentationButtonsPl.node;
|
|
20
20
|
if (node === 'paragraph_heading') {
|
|
21
|
-
|
|
21
|
+
var _pluginInjectionApi$a;
|
|
22
|
+
indentParagraphOrHeading(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions)(INPUT_METHOD.TOOLBAR)(editorView.state, editorView.dispatch);
|
|
22
23
|
}
|
|
23
24
|
if (node === 'list') {
|
|
24
25
|
pluginInjectionApi === null || pluginInjectionApi === void 0 || pluginInjectionApi.core.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.list.commands.indentList(INPUT_METHOD.TOOLBAR));
|
|
25
26
|
}
|
|
26
27
|
if (node === 'taskList') {
|
|
27
|
-
var _pluginInjectionApi$
|
|
28
|
-
indentTaskList(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$
|
|
28
|
+
var _pluginInjectionApi$a2;
|
|
29
|
+
indentTaskList(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a2 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a2 === void 0 ? void 0 : _pluginInjectionApi$a2.actions)(INPUT_METHOD.TOOLBAR)(editorView.state, editorView.dispatch);
|
|
29
30
|
}
|
|
30
31
|
break;
|
|
31
32
|
}
|
|
@@ -34,14 +35,15 @@ export var onItemActivated = function onItemActivated(pluginInjectionApi) {
|
|
|
34
35
|
var _indentationButtonsPl2;
|
|
35
36
|
var _node = (_indentationButtonsPl2 = indentationButtonsPluginKey.getState(editorView.state)) === null || _indentationButtonsPl2 === void 0 ? void 0 : _indentationButtonsPl2.node;
|
|
36
37
|
if (_node === 'paragraph_heading') {
|
|
37
|
-
|
|
38
|
+
var _pluginInjectionApi$a3;
|
|
39
|
+
outdentParagraphOrHeading(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a3 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a3 === void 0 ? void 0 : _pluginInjectionApi$a3.actions)(INPUT_METHOD.TOOLBAR)(editorView.state, editorView.dispatch);
|
|
38
40
|
}
|
|
39
41
|
if (_node === 'list') {
|
|
40
42
|
pluginInjectionApi === null || pluginInjectionApi === void 0 || pluginInjectionApi.core.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.list.commands.outdentList(INPUT_METHOD.TOOLBAR));
|
|
41
43
|
}
|
|
42
44
|
if (_node === 'taskList') {
|
|
43
|
-
var _pluginInjectionApi$
|
|
44
|
-
outdentTaskList(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$
|
|
45
|
+
var _pluginInjectionApi$a4;
|
|
46
|
+
outdentTaskList(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a4 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a4 === void 0 ? void 0 : _pluginInjectionApi$a4.actions)(INPUT_METHOD.TOOLBAR)(editorView.state, editorView.dispatch);
|
|
45
47
|
}
|
|
46
48
|
break;
|
|
47
49
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { INPUT_METHOD } from '
|
|
1
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
export var InputSource = function (InputSource) {
|
|
3
3
|
InputSource[InputSource["TOOLBAR"] = INPUT_METHOD.TOOLBAR] = "TOOLBAR";
|
|
4
4
|
InputSource[InputSource["KEYBOARD"] = INPUT_METHOD.KEYBOARD] = "KEYBOARD";
|
|
@@ -13,8 +13,7 @@ import React from 'react';
|
|
|
13
13
|
import { injectIntl } from 'react-intl-next';
|
|
14
14
|
import SectionMessage from '@atlaskit/section-message';
|
|
15
15
|
import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
16
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '
|
|
17
|
-
import { editorAnalyticsChannel } from '../../plugins/analytics/consts';
|
|
16
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, editorAnalyticsChannel } from '@atlaskit/editor-common/analytics';
|
|
18
17
|
import { messages } from './messages';
|
|
19
18
|
var FormErrorBoundaryInner = /*#__PURE__*/function (_React$Component) {
|
|
20
19
|
_inherits(FormErrorBoundaryInner, _React$Component);
|
|
@@ -9,7 +9,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
9
9
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
12
|
-
import { ACTION, EVENT_TYPE } from '
|
|
12
|
+
import { ACTION, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
13
13
|
export var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
14
14
|
_inherits(ErrorBoundary, _React$Component);
|
|
15
15
|
var _super = _createSuper(ErrorBoundary);
|
|
@@ -24,7 +24,7 @@ import Button from '@atlaskit/button/custom-theme-button';
|
|
|
24
24
|
import ToolbarButton from '../ToolbarButton';
|
|
25
25
|
import withOuterListeners from '../with-outer-listeners';
|
|
26
26
|
import { wrapper, buttonContent, confirmationPopup, confirmationText, confirmationHeader, confirmationImg } from './styles';
|
|
27
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '
|
|
27
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
28
28
|
import { createDispatch } from '../../event-dispatcher';
|
|
29
29
|
import { openFeedbackDialog } from '../../plugins/feedback-dialog';
|
|
30
30
|
import deprecationWarnings from '../../utils/deprecation-warnings';
|
|
@@ -9,7 +9,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
9
9
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PropTypes from 'prop-types';
|
|
12
|
-
import { ACTION, ACTION_SUBJECT, INPUT_METHOD, EVENT_TYPE, ACTION_SUBJECT_ID } from '
|
|
12
|
+
import { ACTION, ACTION_SUBJECT, INPUT_METHOD, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
13
13
|
import { createDispatch } from '../../event-dispatcher';
|
|
14
14
|
import { analyticsEventKey } from '../../plugins/analytics/consts';
|
|
15
15
|
import { deprecatedOpenHelpCommand } from '@atlaskit/editor-plugin-help-dialog';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import analyticsPlugin from './plugin';
|
|
2
|
-
export { ACTION_SUBJECT_ID, ACTION_SUBJECT, ACTION, BROWSER_FREEZE_INTERACTION_TYPE, EVENT_TYPE, FULL_WIDTH_MODE, INDENT_DIRECTION, INDENT_TYPE, INPUT_METHOD, LINK_REPRESENTATION, LINK_RESOURCE, LINK_STATUS, MODE, PasteContents, PasteSources, PasteTypes, PLATFORMS, PUNC, SYMBOL, TABLE_ACTION, TABLE_BREAKOUT, TRIGGER_METHOD, USER_CONTEXT, DELETE_DIRECTION, fireAnalyticsEvent, getAnalyticsEventsFromTransaction, } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
export type { AnalyticsDispatch, AnalyticsEventPayload, AnalyticsEventPayloadWithChannel, CommonListAnalyticsAttributes, CreateLinkInlineDialogActionType, CreateLinkInlineDialogEventPayload, ErrorEventPayload, ErrorEventAttributes, FormatEventPayload, GeneralEventPayload, InputMethodInsertLink, InputMethodInsertMedia, InsertEventPayload, MediaAltTextActionType, MediaEventPayload, MediaLinkAEP, PASTE_ACTION_SUBJECT_ID, PasteContent, PasteEventPayload, PasteSource, PasteType, SubstituteEventPayload, TableEventPayload, FireAnalyticsCallback, FireAnalyticsEvent, } from '@atlaskit/editor-common/analytics';
|
|
4
2
|
export { withAnalytics, addAnalytics } from './utils';
|
|
5
|
-
export declare const analyticsPluginKey: import("prosemirror-state").PluginKey<any>;
|
|
6
3
|
export default analyticsPlugin;
|
|
7
|
-
export type { HigherOrderCommand } from '../../types/command';
|
|
8
|
-
export type { DispatchAnalyticsEvent } from './types/dispatch-analytics-event';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { RESOLVE_METHOD } from '
|
|
2
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { EditorAnalyticsAPI, RESOLVE_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
2
|
import type { Command } from '../../../types';
|
|
4
3
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
5
|
-
import { INPUT_METHOD } from '
|
|
4
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
5
|
import type { InlineCommentMap, InlineCommentMouseData } from '../pm-plugins/types';
|
|
7
6
|
export declare const updateInlineCommentResolvedState: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (partialNewState: InlineCommentMap, resolveMethod?: RESOLVE_METHOD) => Command;
|
|
8
7
|
export declare const closeComponent: () => Command;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
2
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import type { RESOLVE_METHOD } from '
|
|
3
|
+
import type { RESOLVE_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
4
|
declare const _default: {
|
|
6
5
|
addAnnotationMark: (id: string) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
7
6
|
addInlineComment: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (id: string) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { AnnotationProviders } from '../types';
|
|
5
|
-
import type { DispatchAnalyticsEvent } from '
|
|
5
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
interface InlineCommentViewProps {
|
|
7
7
|
providers: AnnotationProviders;
|
|
8
8
|
editorView: EditorView;
|
|
@@ -6,7 +6,7 @@ import { hasAnnotationMark, containsAnyAnnotations } from '@atlaskit/editor-comm
|
|
|
6
6
|
import type { AnnotationInfo } from './types';
|
|
7
7
|
import { AnnotationSelectionType } from './types';
|
|
8
8
|
import type { InlineCommentPluginState } from './pm-plugins/types';
|
|
9
|
-
import type { AnalyticsEventPayloadCallback } from '
|
|
9
|
+
import type { AnalyticsEventPayloadCallback } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
11
11
|
export { hasAnnotationMark, containsAnyAnnotations };
|
|
12
12
|
/**
|
|
@@ -2,7 +2,7 @@ import { jsx } from '@emotion/react';
|
|
|
2
2
|
import type { EventDispatcher } from '../../../event-dispatcher';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
5
|
-
import type { DispatchAnalyticsEvent } from '
|
|
5
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
7
|
declare const AvatarGroupPluginWrapper: (props: {
|
|
8
8
|
collabEdit?: CollabEditOptions | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import type { DispatchAnalyticsEvent } from '
|
|
3
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
5
|
export type FindReplaceToolbarButtonWithStateProps = {
|
|
6
6
|
popupsBoundariesElement?: HTMLElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
2
|
import type { Command } from '../../types';
|
|
3
|
-
import type { TRIGGER_METHOD } from '
|
|
3
|
+
import type { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
export declare const activateWithAnalytics: ({ triggerMethod, }: {
|
|
5
5
|
triggerMethod: TRIGGER_METHOD.SHORTCUT | TRIGGER_METHOD.TOOLBAR;
|
|
6
6
|
}) => Command;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { TRIGGER_METHOD } from '
|
|
4
|
+
import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import type { MatchCaseProps } from '../types';
|
|
6
6
|
export declare const FIND_DEBOUNCE_MS = 100;
|
|
7
7
|
export type FindProps = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { TRIGGER_METHOD, DispatchAnalyticsEvent } from '
|
|
5
|
-
import { MatchCaseProps } from '../types';
|
|
4
|
+
import type { TRIGGER_METHOD, DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import type { MatchCaseProps } from '../types';
|
|
6
6
|
export type FindReplaceProps = {
|
|
7
7
|
findText?: string;
|
|
8
8
|
replaceText?: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import type { FindReplaceProps } from './FindReplace';
|
|
5
|
-
import type { DispatchAnalyticsEvent } from '
|
|
5
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
export interface FindReplaceToolbarButtonProps extends Omit<FindReplaceProps, 'count'> {
|
|
7
7
|
index: number;
|
|
8
8
|
numMatches: number;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import {
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
6
|
export type ReplaceProps = {
|
|
6
7
|
canReplace: boolean;
|
|
7
8
|
replaceText?: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { Node as PmNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
3
|
import type { Command } from '../../../types/command';
|
|
3
4
|
import type { IndentationInputMethod } from './utils';
|
|
4
5
|
export declare const MAX_INDENTATION_LEVEL = 6;
|
|
5
6
|
export declare const isIndentationAllowed: (schema: Schema, node: PmNode) => boolean;
|
|
6
|
-
export declare const getIndentCommand: (inputMethod?: IndentationInputMethod) => Command;
|
|
7
|
-
export declare const getOutdentCommand: (inputMethod?: IndentationInputMethod) => Command;
|
|
7
|
+
export declare const getIndentCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: IndentationInputMethod) => Command;
|
|
8
|
+
export declare const getOutdentCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: IndentationInputMethod) => Command;
|
|
8
9
|
export declare const removeIndentation: Command;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IndentationMarkAttributes } from '@atlaskit/adf-schema';
|
|
2
|
-
import type { INDENT_DIRECTION, INPUT_METHOD } from '
|
|
2
|
+
import type { INDENT_DIRECTION, INPUT_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { GetAttrsChange } from '../../../utils/getAttrsWithChangesRecorder';
|
|
5
5
|
export type PrevAttributes = IndentationMarkAttributes | undefined;
|
|
@@ -28,9 +28,10 @@ export declare function getPrevIndentLevel(prevAttrs: PrevAttributes): number;
|
|
|
28
28
|
* @param dispatch
|
|
29
29
|
* @returns
|
|
30
30
|
*/
|
|
31
|
-
export declare function createAnalyticsDispatch({ getAttrsChanges, inputMethod, state, dispatch, }: {
|
|
31
|
+
export declare function createAnalyticsDispatch({ getAttrsChanges, inputMethod, editorAnalyticsAPI, state, dispatch, }: {
|
|
32
32
|
getAttrsChanges: () => GetAttrsChange<IndentationMarkAttributes, IndentationChangesOptions>[];
|
|
33
33
|
inputMethod: IndentationInputMethod;
|
|
34
|
+
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
34
35
|
state: EditorState;
|
|
35
36
|
dispatch?: (tr: Transaction) => void;
|
|
36
37
|
}): (tr: Transaction) => void;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
|
|
1
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
|
+
declare const indentationPlugin: NextEditorPlugin<'indentation', {
|
|
4
|
+
dependencies: [OptionalPlugin<AnalyticsPlugin>];
|
|
5
|
+
}>;
|
|
3
6
|
export default indentationPlugin;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
export declare function keymapPlugin(editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin | undefined;
|
|
3
4
|
export default keymapPlugin;
|
|
@@ -4,5 +4,5 @@ import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
|
4
4
|
import type { Providers, MacroProvider, MacroAttributes } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
export declare const insertMacroFromMacroBrowser: (macroProvider: MacroProvider, macroNode?: PmNode, isEditing?: boolean) => (view: EditorView) => Promise<boolean>;
|
|
6
6
|
export declare const resolveMacro: (macro?: MacroAttributes, state?: EditorState, optionalAttrs?: object) => PmNode | null;
|
|
7
|
-
export declare const runMacroAutoConvert: (state: EditorState, text:
|
|
7
|
+
export declare const runMacroAutoConvert: (state: EditorState, text: string) => PmNode | null;
|
|
8
8
|
export declare const setMacroProvider: (provider: Providers['macroProvider']) => (view: EditorView) => Promise<boolean>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { Node as PMNode, NodeType, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import { Slice, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { PasteSource } from '
|
|
5
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import type { PasteSource, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
6
5
|
import type { CardOptions } from '@atlaskit/editor-common/card';
|
|
7
6
|
export declare function isPastedFromWord(html?: string): boolean;
|
|
8
7
|
export declare function isPastedFromExcel(html?: string): boolean;
|
|
@@ -49,6 +49,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
49
49
|
sharedState: {
|
|
50
50
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
51
51
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
52
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
52
53
|
};
|
|
53
54
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
54
55
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -107,6 +108,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
107
108
|
sharedState: {
|
|
108
109
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
109
110
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
111
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
110
112
|
};
|
|
111
113
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
112
114
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -133,6 +135,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
133
135
|
sharedState: {
|
|
134
136
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
135
137
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
138
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
136
139
|
};
|
|
137
140
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
138
141
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -155,6 +158,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
155
158
|
sharedState: {
|
|
156
159
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
157
160
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
161
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
158
162
|
};
|
|
159
163
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
160
164
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -231,6 +235,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
231
235
|
sharedState: {
|
|
232
236
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
233
237
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
238
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
234
239
|
};
|
|
235
240
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
236
241
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -287,6 +292,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
287
292
|
sharedState: {
|
|
288
293
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
289
294
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
295
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
290
296
|
};
|
|
291
297
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
292
298
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -334,6 +340,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
334
340
|
sharedState: {
|
|
335
341
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
336
342
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
343
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
337
344
|
};
|
|
338
345
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
339
346
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -382,6 +389,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
382
389
|
sharedState: {
|
|
383
390
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
384
391
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
392
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
385
393
|
};
|
|
386
394
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
387
395
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -440,6 +448,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
440
448
|
sharedState: {
|
|
441
449
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
442
450
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
451
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
443
452
|
};
|
|
444
453
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
445
454
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -467,6 +476,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
467
476
|
sharedState: {
|
|
468
477
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
469
478
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
479
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
470
480
|
};
|
|
471
481
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
472
482
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -500,6 +510,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
500
510
|
sharedState: {
|
|
501
511
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
502
512
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
513
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
503
514
|
};
|
|
504
515
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
505
516
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -558,6 +569,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
558
569
|
sharedState: {
|
|
559
570
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
560
571
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
572
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
561
573
|
};
|
|
562
574
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
563
575
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -584,6 +596,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
584
596
|
sharedState: {
|
|
585
597
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
586
598
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
599
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
587
600
|
};
|
|
588
601
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
589
602
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -606,6 +619,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
606
619
|
sharedState: {
|
|
607
620
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
608
621
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
622
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
609
623
|
};
|
|
610
624
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
611
625
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -682,6 +696,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
682
696
|
sharedState: {
|
|
683
697
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
684
698
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
699
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
685
700
|
};
|
|
686
701
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
687
702
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -738,6 +753,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
738
753
|
sharedState: {
|
|
739
754
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
740
755
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
756
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
741
757
|
};
|
|
742
758
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
743
759
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -785,6 +801,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
785
801
|
sharedState: {
|
|
786
802
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
787
803
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
804
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
788
805
|
};
|
|
789
806
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
790
807
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -833,6 +850,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
833
850
|
sharedState: {
|
|
834
851
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
835
852
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
853
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
836
854
|
};
|
|
837
855
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
838
856
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -891,6 +909,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
891
909
|
sharedState: {
|
|
892
910
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
893
911
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
912
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
894
913
|
};
|
|
895
914
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
896
915
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -918,6 +937,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
918
937
|
sharedState: {
|
|
919
938
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
920
939
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
940
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
921
941
|
};
|
|
922
942
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
923
943
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -7,8 +7,8 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
7
7
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
8
8
|
import type { EditorAppearance, ToolbarUIComponentFactory, PrimaryToolbarComponents } from '../../../types';
|
|
9
9
|
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
10
|
-
import type { DispatchAnalyticsEvent } from '
|
|
11
|
-
import type { EventDispatcher } from '
|
|
10
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
11
|
+
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
12
12
|
import type { EditorActions } from '../../..';
|
|
13
13
|
import type { FeatureFlags } from '../../../types/feature-flags';
|
|
14
14
|
export interface FullPageToolbarProps {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
5
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
|
+
import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
5
|
+
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
6
6
|
interface Props {
|
|
7
7
|
fields: FieldDefinition[];
|
|
8
8
|
extensionKey: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { DispatchAnalyticsEvent } from '
|
|
3
|
-
import
|
|
4
|
-
import { ACTION } from '../../plugins/analytics';
|
|
2
|
+
import type { DispatchAnalyticsEvent, ErrorEventPayload } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { ACTION } from '@atlaskit/editor-common/analytics';
|
|
5
4
|
type ErrorCrashPayload = Extract<ErrorEventPayload, {
|
|
6
5
|
action: ACTION.EDITOR_CRASHED;
|
|
7
6
|
}>;
|
|
@@ -2,9 +2,9 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { EditorAppearance } from '../../types/editor-appearance';
|
|
4
4
|
import type { ToolbarSize, ToolbarUIComponentFactory } from './types';
|
|
5
|
-
import type { EventDispatcher } from '
|
|
5
|
+
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
6
6
|
import type EditorActions from '../../actions';
|
|
7
|
-
import type { DispatchAnalyticsEvent } from '
|
|
7
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
export interface ToolbarBreakPoint {
|
|
9
9
|
width: number;
|
|
10
10
|
size: ToolbarSize;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import analyticsPlugin from './plugin';
|
|
2
|
-
export { ACTION_SUBJECT_ID, ACTION_SUBJECT, ACTION, BROWSER_FREEZE_INTERACTION_TYPE, EVENT_TYPE, FULL_WIDTH_MODE, INDENT_DIRECTION, INDENT_TYPE, INPUT_METHOD, LINK_REPRESENTATION, LINK_RESOURCE, LINK_STATUS, MODE, PasteContents, PasteSources, PasteTypes, PLATFORMS, PUNC, SYMBOL, TABLE_ACTION, TABLE_BREAKOUT, TRIGGER_METHOD, USER_CONTEXT, DELETE_DIRECTION, fireAnalyticsEvent, getAnalyticsEventsFromTransaction, } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
export type { AnalyticsDispatch, AnalyticsEventPayload, AnalyticsEventPayloadWithChannel, CommonListAnalyticsAttributes, CreateLinkInlineDialogActionType, CreateLinkInlineDialogEventPayload, ErrorEventPayload, ErrorEventAttributes, FormatEventPayload, GeneralEventPayload, InputMethodInsertLink, InputMethodInsertMedia, InsertEventPayload, MediaAltTextActionType, MediaEventPayload, MediaLinkAEP, PASTE_ACTION_SUBJECT_ID, PasteContent, PasteEventPayload, PasteSource, PasteType, SubstituteEventPayload, TableEventPayload, FireAnalyticsCallback, FireAnalyticsEvent, } from '@atlaskit/editor-common/analytics';
|
|
4
2
|
export { withAnalytics, addAnalytics } from './utils';
|
|
5
|
-
export declare const analyticsPluginKey: import("prosemirror-state").PluginKey<any>;
|
|
6
3
|
export default analyticsPlugin;
|
|
7
|
-
export type { HigherOrderCommand } from '../../types/command';
|
|
8
|
-
export type { DispatchAnalyticsEvent } from './types/dispatch-analytics-event';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { RESOLVE_METHOD } from '
|
|
2
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { EditorAnalyticsAPI, RESOLVE_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
2
|
import type { Command } from '../../../types';
|
|
4
3
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
5
|
-
import { INPUT_METHOD } from '
|
|
4
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
5
|
import type { InlineCommentMap, InlineCommentMouseData } from '../pm-plugins/types';
|
|
7
6
|
export declare const updateInlineCommentResolvedState: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (partialNewState: InlineCommentMap, resolveMethod?: RESOLVE_METHOD) => Command;
|
|
8
7
|
export declare const closeComponent: () => Command;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
2
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import type { RESOLVE_METHOD } from '
|
|
3
|
+
import type { RESOLVE_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
4
|
declare const _default: {
|
|
6
5
|
addAnnotationMark: (id: string) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
7
6
|
addInlineComment: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (id: string) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { AnnotationProviders } from '../types';
|
|
5
|
-
import type { DispatchAnalyticsEvent } from '
|
|
5
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
interface InlineCommentViewProps {
|
|
7
7
|
providers: AnnotationProviders;
|
|
8
8
|
editorView: EditorView;
|
|
@@ -6,7 +6,7 @@ import { hasAnnotationMark, containsAnyAnnotations } from '@atlaskit/editor-comm
|
|
|
6
6
|
import type { AnnotationInfo } from './types';
|
|
7
7
|
import { AnnotationSelectionType } from './types';
|
|
8
8
|
import type { InlineCommentPluginState } from './pm-plugins/types';
|
|
9
|
-
import type { AnalyticsEventPayloadCallback } from '
|
|
9
|
+
import type { AnalyticsEventPayloadCallback } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
11
11
|
export { hasAnnotationMark, containsAnyAnnotations };
|
|
12
12
|
/**
|