@atlaskit/editor-plugin-base 27.0.3 → 27.0.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 +12 -0
- package/dist/cjs/basePlugin.js +2 -2
- package/dist/cjs/pm-plugins/filter-steps.js +6 -5
- package/dist/cjs/pm-plugins/frozen-editor.js +20 -19
- package/dist/cjs/pm-plugins/inline-cursor-target.js +1 -1
- package/dist/es2019/basePlugin.js +1 -1
- package/dist/es2019/pm-plugins/filter-steps.js +2 -1
- package/dist/es2019/pm-plugins/frozen-editor.js +2 -1
- package/dist/es2019/pm-plugins/inline-cursor-target.js +1 -1
- package/dist/esm/basePlugin.js +1 -1
- package/dist/esm/pm-plugins/filter-steps.js +2 -1
- package/dist/esm/pm-plugins/frozen-editor.js +2 -1
- package/dist/esm/pm-plugins/inline-cursor-target.js +1 -1
- package/dist/types/basePluginType.d.ts +4 -3
- package/dist/types/editor-commands/set-keyboard-height.d.ts +1 -1
- package/dist/types/pm-plugins/disable-spell-checking.d.ts +1 -1
- package/dist/types/pm-plugins/filter-steps.d.ts +1 -1
- package/dist/types/pm-plugins/frozen-editor.d.ts +3 -2
- package/dist/types/pm-plugins/utils/inputTrackingConfig.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/cjs/basePlugin.js
CHANGED
|
@@ -10,7 +10,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _doc = require("@atlaskit/adf-schema/doc");
|
|
11
11
|
var _paragraph = require("@atlaskit/adf-schema/paragraph");
|
|
12
12
|
var _text = require("@atlaskit/adf-schema/text");
|
|
13
|
-
var
|
|
13
|
+
var _keymap = require("@atlaskit/editor-common/keymap");
|
|
14
14
|
var _commands = require("@atlaskit/editor-prosemirror/commands");
|
|
15
15
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
16
16
|
var _history = require("@atlaskit/prosemirror-history/history");
|
|
@@ -153,7 +153,7 @@ var basePlugin = function basePlugin(_ref) {
|
|
|
153
153
|
{
|
|
154
154
|
name: 'codeBlockIndent',
|
|
155
155
|
plugin: function plugin() {
|
|
156
|
-
return (0,
|
|
156
|
+
return (0, _keymap.keymap)(_objectSpread(_objectSpread({}, _commands.baseKeymap), {}, {
|
|
157
157
|
'Mod-[': function Mod() {
|
|
158
158
|
return true;
|
|
159
159
|
},
|
|
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _enums = require("@atlaskit/editor-common/analytics/types/enums");
|
|
8
|
+
var _utils = require("@atlaskit/editor-common/analytics/utils");
|
|
8
9
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
9
10
|
var hasInvalidSteps = function hasInvalidSteps(tr) {
|
|
10
11
|
return (tr.steps || []).some(function (step) {
|
|
@@ -18,12 +19,12 @@ var _default = exports.default = function _default(dispatchAnalyticsEvent) {
|
|
|
18
19
|
// eslint-disable-next-line no-console
|
|
19
20
|
console.warn('The transaction was blocked because it contains invalid steps', transaction.steps);
|
|
20
21
|
dispatchAnalyticsEvent({
|
|
21
|
-
action:
|
|
22
|
-
actionSubject:
|
|
22
|
+
action: _enums.ACTION.DISCARDED_INVALID_STEPS_FROM_TRANSACTION,
|
|
23
|
+
actionSubject: _enums.ACTION_SUBJECT.EDITOR,
|
|
23
24
|
attributes: {
|
|
24
|
-
analyticsEventPayloads: (0,
|
|
25
|
+
analyticsEventPayloads: (0, _utils.getAnalyticsEventsFromTransaction)(transaction)
|
|
25
26
|
},
|
|
26
|
-
eventType:
|
|
27
|
+
eventType: _enums.EVENT_TYPE.OPERATIONAL
|
|
27
28
|
});
|
|
28
29
|
return false;
|
|
29
30
|
}
|
|
@@ -6,11 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.frozenEditorPluginKey = exports.default = exports.NORMAL_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = exports.DEFAULT_TRACK_SEVERITY_THRESHOLD_NORMAL = exports.DEFAULT_TRACK_SEVERITY_THRESHOLD_DEGRADED = exports.DEFAULT_FREEZE_THRESHOLD = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _enums = require("@atlaskit/editor-common/analytics/types/enums");
|
|
10
|
+
var _generalEvents = require("@atlaskit/editor-common/analytics/types/general-events");
|
|
10
11
|
var _countNodes = require("@atlaskit/editor-common/count-nodes");
|
|
11
12
|
var _isPerformanceApiAvailable = require("@atlaskit/editor-common/is-performance-api-available");
|
|
12
13
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
13
|
-
var
|
|
14
|
+
var _analytics = require("@atlaskit/editor-common/utils/analytics");
|
|
14
15
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
15
16
|
var _frozenEditor = require("./utils/frozen-editor");
|
|
16
17
|
var _inputLatencyTracking = _interopRequireDefault(require("./utils/input-latency-tracking"));
|
|
@@ -31,8 +32,8 @@ var dispatchLongTaskEvent = function dispatchLongTaskEvent(contextIdentifierPlug
|
|
|
31
32
|
var state = view.state;
|
|
32
33
|
var nodesCount = getNodeCount(state);
|
|
33
34
|
return dispatchAnalyticsEvent({
|
|
34
|
-
action:
|
|
35
|
-
actionSubject:
|
|
35
|
+
action: _enums.ACTION.BROWSER_FREEZE,
|
|
36
|
+
actionSubject: _enums.ACTION_SUBJECT.EDITOR,
|
|
36
37
|
attributes: _objectSpread(_objectSpread({
|
|
37
38
|
objectId: contextIdentifierPlugin === null || contextIdentifierPlugin === void 0 || (_contextIdentifierPlu = contextIdentifierPlugin.sharedState.currentState()) === null || _contextIdentifierPlu === void 0 || (_contextIdentifierPlu = _contextIdentifierPlu.contextIdentifierProvider) === null || _contextIdentifierPlu === void 0 ? void 0 : _contextIdentifierPlu.objectId,
|
|
38
39
|
freezeTime: time,
|
|
@@ -41,7 +42,7 @@ var dispatchLongTaskEvent = function dispatchLongTaskEvent(contextIdentifierPlug
|
|
|
41
42
|
interactionType: interactionType,
|
|
42
43
|
severity: severity
|
|
43
44
|
}),
|
|
44
|
-
eventType:
|
|
45
|
+
eventType: _enums.EVENT_TYPE.OPERATIONAL
|
|
45
46
|
});
|
|
46
47
|
};
|
|
47
48
|
};
|
|
@@ -50,7 +51,7 @@ var _default = exports.default = function _default(contextIdentifierPlugin) {
|
|
|
50
51
|
var interactionType;
|
|
51
52
|
var inputLatencyTracker = null;
|
|
52
53
|
if (browserFreezeTracking !== null && browserFreezeTracking !== void 0 && browserFreezeTracking.trackInteractionType) {
|
|
53
|
-
interactionType = (0, _frozenEditor.setInteractionType)(
|
|
54
|
+
interactionType = (0, _frozenEditor.setInteractionType)(_generalEvents.BROWSER_FREEZE_INTERACTION_TYPE.LOADING);
|
|
54
55
|
}
|
|
55
56
|
var samplingRate = inputTracking && typeof inputTracking.samplingRate === 'number' ? inputTracking.samplingRate : DEFAULT_KEYSTROKE_SAMPLING_LIMIT;
|
|
56
57
|
|
|
@@ -82,7 +83,7 @@ var _default = exports.default = function _default(contextIdentifierPlugin) {
|
|
|
82
83
|
var nodesCount = getNodeCount(state);
|
|
83
84
|
var samplePayload = {
|
|
84
85
|
action: action,
|
|
85
|
-
actionSubject:
|
|
86
|
+
actionSubject: _enums.ACTION_SUBJECT.EDITOR,
|
|
86
87
|
attributes: _objectSpread(_objectSpread({
|
|
87
88
|
time: time,
|
|
88
89
|
nodeSize: state.doc.nodeSize
|
|
@@ -90,7 +91,7 @@ var _default = exports.default = function _default(contextIdentifierPlugin) {
|
|
|
90
91
|
objectId: contextIdentifierPlugin === null || contextIdentifierPlugin === void 0 || (_contextIdentifierPlu2 = contextIdentifierPlugin.sharedState.currentState()) === null || _contextIdentifierPlu2 === void 0 || (_contextIdentifierPlu2 = _contextIdentifierPlu2.contextIdentifierProvider) === null || _contextIdentifierPlu2 === void 0 ? void 0 : _contextIdentifierPlu2.objectId,
|
|
91
92
|
severity: shouldTrackSeverity ? severity : undefined
|
|
92
93
|
}),
|
|
93
|
-
eventType:
|
|
94
|
+
eventType: _enums.EVENT_TYPE.OPERATIONAL
|
|
94
95
|
};
|
|
95
96
|
dispatchAnalyticsEvent(samplePayload);
|
|
96
97
|
};
|
|
@@ -105,7 +106,7 @@ var _default = exports.default = function _default(contextIdentifierPlugin) {
|
|
|
105
106
|
var nodeCount = getNodeCount(state);
|
|
106
107
|
var averagePayload = {
|
|
107
108
|
action: action,
|
|
108
|
-
actionSubject:
|
|
109
|
+
actionSubject: _enums.ACTION_SUBJECT.EDITOR,
|
|
109
110
|
attributes: _objectSpread(_objectSpread({
|
|
110
111
|
mean: mean,
|
|
111
112
|
median: median,
|
|
@@ -115,7 +116,7 @@ var _default = exports.default = function _default(contextIdentifierPlugin) {
|
|
|
115
116
|
severity: shouldTrackSeverity ? severity : undefined,
|
|
116
117
|
objectId: contextIdentifierPlugin === null || contextIdentifierPlugin === void 0 || (_contextIdentifierPlu3 = contextIdentifierPlugin.sharedState.currentState()) === null || _contextIdentifierPlu3 === void 0 || (_contextIdentifierPlu3 = _contextIdentifierPlu3.contextIdentifierProvider) === null || _contextIdentifierPlu3 === void 0 ? void 0 : _contextIdentifierPlu3.objectId
|
|
117
118
|
}),
|
|
118
|
-
eventType:
|
|
119
|
+
eventType: _enums.EVENT_TYPE.OPERATIONAL
|
|
119
120
|
};
|
|
120
121
|
dispatchAnalyticsEvent(averagePayload);
|
|
121
122
|
};
|
|
@@ -125,7 +126,7 @@ var _default = exports.default = function _default(contextIdentifierPlugin) {
|
|
|
125
126
|
props: (0, _isPerformanceApiAvailable.isPerformanceAPIAvailable)() ? {
|
|
126
127
|
handleTextInput: function handleTextInput(view) {
|
|
127
128
|
if (browserFreezeTracking !== null && browserFreezeTracking !== void 0 && browserFreezeTracking.trackInteractionType) {
|
|
128
|
-
interactionType =
|
|
129
|
+
interactionType = _generalEvents.BROWSER_FREEZE_INTERACTION_TYPE.TYPING;
|
|
129
130
|
}
|
|
130
131
|
if (inputLatencyTracker) {
|
|
131
132
|
var end = inputLatencyTracker.start();
|
|
@@ -138,11 +139,11 @@ var _default = exports.default = function _default(contextIdentifierPlugin) {
|
|
|
138
139
|
},
|
|
139
140
|
handleDOMEvents: browserFreezeTracking !== null && browserFreezeTracking !== void 0 && browserFreezeTracking.trackInteractionType ? {
|
|
140
141
|
click: function click() {
|
|
141
|
-
interactionType = (0, _frozenEditor.setInteractionType)(
|
|
142
|
+
interactionType = (0, _frozenEditor.setInteractionType)(_generalEvents.BROWSER_FREEZE_INTERACTION_TYPE.CLICKING);
|
|
142
143
|
return false;
|
|
143
144
|
},
|
|
144
145
|
paste: function paste() {
|
|
145
|
-
interactionType = (0, _frozenEditor.setInteractionType)(
|
|
146
|
+
interactionType = (0, _frozenEditor.setInteractionType)(_generalEvents.BROWSER_FREEZE_INTERACTION_TYPE.PASTING);
|
|
146
147
|
return false;
|
|
147
148
|
}
|
|
148
149
|
} : undefined
|
|
@@ -156,22 +157,22 @@ var _default = exports.default = function _default(contextIdentifierPlugin) {
|
|
|
156
157
|
slowThreshold: slowThreshold,
|
|
157
158
|
normalThreshold: severityThresholdNormal,
|
|
158
159
|
degradedThreshold: severityThresholdDegraded,
|
|
159
|
-
dispatchSample: createDispatchSample(
|
|
160
|
-
dispatchAverage: createDispatchAverage(
|
|
160
|
+
dispatchSample: createDispatchSample(_enums.ACTION.INPUT_PERF_SAMPLING, _view),
|
|
161
|
+
dispatchAverage: createDispatchAverage(_enums.ACTION.INPUT_PERF_SAMPLING_AVG, _view),
|
|
161
162
|
onSlowInput: function onSlowInput(time) {
|
|
162
163
|
var _contextIdentifierPlu4;
|
|
163
164
|
var state = _view.state;
|
|
164
165
|
var nodesCount = getNodeCount(state);
|
|
165
166
|
dispatchAnalyticsEvent({
|
|
166
|
-
action:
|
|
167
|
-
actionSubject:
|
|
167
|
+
action: _enums.ACTION.SLOW_INPUT,
|
|
168
|
+
actionSubject: _enums.ACTION_SUBJECT.EDITOR,
|
|
168
169
|
attributes: _objectSpread(_objectSpread({
|
|
169
170
|
time: time,
|
|
170
171
|
nodeSize: state.doc.nodeSize
|
|
171
172
|
}, nodesCount), {}, {
|
|
172
173
|
objectId: contextIdentifierPlugin === null || contextIdentifierPlugin === void 0 || (_contextIdentifierPlu4 = contextIdentifierPlugin.sharedState.currentState()) === null || _contextIdentifierPlu4 === void 0 || (_contextIdentifierPlu4 = _contextIdentifierPlu4.contextIdentifierProvider) === null || _contextIdentifierPlu4 === void 0 ? void 0 : _contextIdentifierPlu4.objectId
|
|
173
174
|
}),
|
|
174
|
-
eventType:
|
|
175
|
+
eventType: _enums.EVENT_TYPE.OPERATIONAL
|
|
175
176
|
});
|
|
176
177
|
}
|
|
177
178
|
});
|
|
@@ -182,7 +183,7 @@ var _default = exports.default = function _default(contextIdentifierPlugin) {
|
|
|
182
183
|
for (var i = 0; i < perfEntries.length; i++) {
|
|
183
184
|
var duration = perfEntries[i].duration;
|
|
184
185
|
if (duration > freezeThreshold) {
|
|
185
|
-
dispatchLongTaskEvent(contextIdentifierPlugin)(dispatchAnalyticsEvent, _view, duration, getNodeCount, browserFreezeTracking !== null && browserFreezeTracking !== void 0 && browserFreezeTracking.trackInteractionType ? interactionType : undefined, (0,
|
|
186
|
+
dispatchLongTaskEvent(contextIdentifierPlugin)(dispatchAnalyticsEvent, _view, duration, getNodeCount, browserFreezeTracking !== null && browserFreezeTracking !== void 0 && browserFreezeTracking.trackInteractionType ? interactionType : undefined, (0, _analytics.getAnalyticsEventSeverity)(duration,
|
|
186
187
|
// Ignored via go/ees007
|
|
187
188
|
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
188
189
|
//TODO: get right values here
|
|
@@ -7,7 +7,7 @@ exports.inlineCursorTargetStateKey = exports.default = void 0;
|
|
|
7
7
|
var _browser = require("@atlaskit/editor-common/browser");
|
|
8
8
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
9
9
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
10
|
-
var _whitespace = require("@atlaskit/editor-common/whitespace");
|
|
10
|
+
var _whitespace = require("@atlaskit/editor-common/whitespace/whitespace");
|
|
11
11
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
12
12
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
13
13
|
var inlineCursorTargetStateKey = exports.inlineCursorTargetStateKey = new _state.PluginKey('inlineCursorTargetPlugin');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { doc } from '@atlaskit/adf-schema/doc';
|
|
2
2
|
import { paragraph } from '@atlaskit/adf-schema/paragraph';
|
|
3
3
|
import { text } from '@atlaskit/adf-schema/text';
|
|
4
|
-
import { keymap } from '@atlaskit/editor-common/
|
|
4
|
+
import { keymap } from '@atlaskit/editor-common/keymap';
|
|
5
5
|
import { baseKeymap } from '@atlaskit/editor-prosemirror/commands';
|
|
6
6
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
7
7
|
import { history } from '@atlaskit/prosemirror-history/history';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import { getAnalyticsEventsFromTransaction } from '@atlaskit/editor-common/analytics/utils';
|
|
2
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
4
|
const hasInvalidSteps = tr => (tr.steps || []).some(step => step.from > step.to);
|
|
4
5
|
export default (dispatchAnalyticsEvent => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT,
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import { BROWSER_FREEZE_INTERACTION_TYPE } from '@atlaskit/editor-common/analytics/types/general-events';
|
|
2
3
|
import { countNodes } from '@atlaskit/editor-common/count-nodes';
|
|
3
4
|
import { isPerformanceAPIAvailable, isPerformanceObserverAvailable } from '@atlaskit/editor-common/is-performance-api-available';
|
|
4
5
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
import { isTextSelection } from '@atlaskit/editor-common/utils';
|
|
4
|
-
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
4
|
+
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace/whitespace';
|
|
5
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
7
7
|
export const inlineCursorTargetStateKey = new PluginKey('inlineCursorTargetPlugin');
|
package/dist/esm/basePlugin.js
CHANGED
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import { doc } from '@atlaskit/adf-schema/doc';
|
|
5
5
|
import { paragraph } from '@atlaskit/adf-schema/paragraph';
|
|
6
6
|
import { text } from '@atlaskit/adf-schema/text';
|
|
7
|
-
import { keymap } from '@atlaskit/editor-common/
|
|
7
|
+
import { keymap } from '@atlaskit/editor-common/keymap';
|
|
8
8
|
import { baseKeymap } from '@atlaskit/editor-prosemirror/commands';
|
|
9
9
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
10
10
|
import { history } from '@atlaskit/prosemirror-history/history';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import { getAnalyticsEventsFromTransaction } from '@atlaskit/editor-common/analytics/utils';
|
|
2
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
4
|
var hasInvalidSteps = function hasInvalidSteps(tr) {
|
|
4
5
|
return (tr.steps || []).some(function (step) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { ACTION, ACTION_SUBJECT,
|
|
4
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
5
|
+
import { BROWSER_FREEZE_INTERACTION_TYPE } from '@atlaskit/editor-common/analytics/types/general-events';
|
|
5
6
|
import { countNodes } from '@atlaskit/editor-common/count-nodes';
|
|
6
7
|
import { isPerformanceAPIAvailable, isPerformanceObserverAvailable } from '@atlaskit/editor-common/is-performance-api-available';
|
|
7
8
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
import { isTextSelection } from '@atlaskit/editor-common/utils';
|
|
4
|
-
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
4
|
+
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace/whitespace';
|
|
5
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
7
7
|
export var inlineCursorTargetStateKey = new PluginKey('inlineCursorTargetPlugin');
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
|
+
import type { BrowserFreezetracking, InputTracking } from '@atlaskit/editor-common/types/performance-tracking';
|
|
3
|
+
import type { ContextIdentifierPlugin } from '@atlaskit/editor-plugin-context-identifier/contextIdentifierPluginType';
|
|
4
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags/featureFlagsPluginType';
|
|
4
5
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
6
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
6
7
|
import type { setKeyboardHeight } from './editor-commands/set-keyboard-height';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
2
|
export declare const setKeyboardHeight: (keyboardHeight: number) => Command;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
|
|
3
3
|
export default _default;
|
|
4
4
|
declare function _default(featureFlags: FeatureFlags): SafePlugin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
export default _default;
|
|
4
4
|
declare function _default(dispatchAnalyticsEvent: DispatchAnalyticsEvent): SafePlugin;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
|
+
import type { BrowserFreezetracking, InputTracking } from '@atlaskit/editor-common/types/performance-tracking';
|
|
4
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
6
|
import type { BasePlugin } from '../index';
|
|
6
7
|
export declare const frozenEditorPluginKey: PluginKey;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { InputTracking } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { InputTracking } from '@atlaskit/editor-common/types/performance-tracking';
|
|
2
2
|
export declare const inputTracking: InputTracking;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-base",
|
|
3
|
-
"version": "27.0.
|
|
3
|
+
"version": "27.0.5",
|
|
4
4
|
"description": "Base plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@atlaskit/feature-gate-js-client": "^7.0.0",
|
|
27
27
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
28
28
|
"@atlaskit/prosemirror-history": "^1.3.0",
|
|
29
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
29
|
+
"@atlaskit/tmp-editor-statsig": "^232.0.0",
|
|
30
30
|
"@babel/runtime": "^7.0.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|