@atlaskit/editor-plugin-base 9.0.0 → 9.0.2
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/pm-plugins/scroll-gutter/plugin.js +1 -0
- package/dist/es2019/pm-plugins/scroll-gutter/plugin.js +1 -0
- package/dist/esm/pm-plugins/scroll-gutter/plugin.js +1 -0
- 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 +2 -2
- package/dist/types/pm-plugins/inline-cursor-target.d.ts +1 -1
- package/dist/types/pm-plugins/newline-preserve-marks.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/disable-spell-checking.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/filter-steps.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/frozen-editor.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/inline-cursor-target.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/newline-preserve-marks.d.ts +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -30,6 +30,7 @@ function createGutter(gutterSize, parent) {
|
|
|
30
30
|
return parent === null || parent === void 0 ? void 0 : parent.removeChild(gutter);
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
33
34
|
var _default = exports.default = function _default() {
|
|
34
35
|
var pluginOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
35
36
|
var getScrollElement = pluginOptions.getScrollElement,
|
|
@@ -20,6 +20,7 @@ function createGutter(gutterSize, parent) {
|
|
|
20
20
|
}
|
|
21
21
|
return () => parent === null || parent === void 0 ? void 0 : parent.removeChild(gutter);
|
|
22
22
|
}
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
23
24
|
export default ((pluginOptions = {}) => {
|
|
24
25
|
const {
|
|
25
26
|
getScrollElement,
|
|
@@ -24,6 +24,7 @@ function createGutter(gutterSize, parent) {
|
|
|
24
24
|
return parent === null || parent === void 0 ? void 0 : parent.removeChild(gutter);
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
27
28
|
export default (function () {
|
|
28
29
|
var pluginOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
29
30
|
var getScrollElement = pluginOptions.getScrollElement,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
3
|
-
declare const _default: (featureFlags: FeatureFlags) => SafePlugin
|
|
3
|
+
declare const _default: (featureFlags: FeatureFlags) => SafePlugin;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
declare const _default: (dispatchAnalyticsEvent: DispatchAnalyticsEvent) => SafePlugin
|
|
3
|
+
declare const _default: (dispatchAnalyticsEvent: DispatchAnalyticsEvent) => SafePlugin;
|
|
4
4
|
export default _default;
|
|
@@ -3,11 +3,11 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
3
3
|
import type { BrowserFreezetracking, ExtractInjectionAPI, InputTracking } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { BasePlugin } from '../index';
|
|
6
|
-
export declare const frozenEditorPluginKey: PluginKey
|
|
6
|
+
export declare const frozenEditorPluginKey: PluginKey;
|
|
7
7
|
export declare const DEFAULT_FREEZE_THRESHOLD = 600;
|
|
8
8
|
export declare const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
9
9
|
export declare const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
10
10
|
export declare const DEFAULT_TRACK_SEVERITY_THRESHOLD_NORMAL = 100;
|
|
11
11
|
export declare const DEFAULT_TRACK_SEVERITY_THRESHOLD_DEGRADED = 500;
|
|
12
|
-
declare const _default: (contextIdentifierPlugin: ExtractInjectionAPI<BasePlugin>["contextIdentifier"] | undefined) => (dispatchAnalyticsEvent: DispatchAnalyticsEvent, inputTracking?: InputTracking, browserFreezeTracking?: BrowserFreezetracking) => SafePlugin
|
|
12
|
+
declare const _default: (contextIdentifierPlugin: ExtractInjectionAPI<BasePlugin>["contextIdentifier"] | undefined) => (dispatchAnalyticsEvent: DispatchAnalyticsEvent, inputTracking?: InputTracking, browserFreezeTracking?: BrowserFreezetracking) => SafePlugin;
|
|
13
13
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
export declare const inlineCursorTargetStateKey: PluginKey
|
|
4
|
+
export declare const inlineCursorTargetStateKey: PluginKey;
|
|
5
5
|
export interface InlineCursorTargetState {
|
|
6
6
|
cursorTarget?: {
|
|
7
7
|
decorations: (Decoration | null)[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
export declare const newlinePreserveMarksKey: PluginKey
|
|
4
|
-
declare const _default: () => SafePlugin
|
|
3
|
+
export declare const newlinePreserveMarksKey: PluginKey;
|
|
4
|
+
declare const _default: () => SafePlugin;
|
|
5
5
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
3
|
-
declare const _default: (featureFlags: FeatureFlags) => SafePlugin
|
|
3
|
+
declare const _default: (featureFlags: FeatureFlags) => SafePlugin;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
declare const _default: (dispatchAnalyticsEvent: DispatchAnalyticsEvent) => SafePlugin
|
|
3
|
+
declare const _default: (dispatchAnalyticsEvent: DispatchAnalyticsEvent) => SafePlugin;
|
|
4
4
|
export default _default;
|
|
@@ -3,11 +3,11 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
3
3
|
import type { BrowserFreezetracking, ExtractInjectionAPI, InputTracking } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { BasePlugin } from '../index';
|
|
6
|
-
export declare const frozenEditorPluginKey: PluginKey
|
|
6
|
+
export declare const frozenEditorPluginKey: PluginKey;
|
|
7
7
|
export declare const DEFAULT_FREEZE_THRESHOLD = 600;
|
|
8
8
|
export declare const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
9
9
|
export declare const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
10
10
|
export declare const DEFAULT_TRACK_SEVERITY_THRESHOLD_NORMAL = 100;
|
|
11
11
|
export declare const DEFAULT_TRACK_SEVERITY_THRESHOLD_DEGRADED = 500;
|
|
12
|
-
declare const _default: (contextIdentifierPlugin: ExtractInjectionAPI<BasePlugin>["contextIdentifier"] | undefined) => (dispatchAnalyticsEvent: DispatchAnalyticsEvent, inputTracking?: InputTracking, browserFreezeTracking?: BrowserFreezetracking) => SafePlugin
|
|
12
|
+
declare const _default: (contextIdentifierPlugin: ExtractInjectionAPI<BasePlugin>["contextIdentifier"] | undefined) => (dispatchAnalyticsEvent: DispatchAnalyticsEvent, inputTracking?: InputTracking, browserFreezeTracking?: BrowserFreezetracking) => SafePlugin;
|
|
13
13
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
export declare const inlineCursorTargetStateKey: PluginKey
|
|
4
|
+
export declare const inlineCursorTargetStateKey: PluginKey;
|
|
5
5
|
export interface InlineCursorTargetState {
|
|
6
6
|
cursorTarget?: {
|
|
7
7
|
decorations: (Decoration | null)[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
export declare const newlinePreserveMarksKey: PluginKey
|
|
4
|
-
declare const _default: () => SafePlugin
|
|
3
|
+
export declare const newlinePreserveMarksKey: PluginKey;
|
|
4
|
+
declare const _default: () => SafePlugin;
|
|
5
5
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-base",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
4
4
|
"description": "Base plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@atlaskit/editor-plugin-feature-flags": "^7.0.0",
|
|
33
33
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
34
34
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
35
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
35
|
+
"@atlaskit/tmp-editor-statsig": "^37.0.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0"
|
|
37
37
|
},
|
|
38
38
|
"techstack": {
|
|
@@ -74,6 +74,6 @@
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@atlaskit/editor-common": "^112.
|
|
77
|
+
"@atlaskit/editor-common": "^112.2.0"
|
|
78
78
|
}
|
|
79
79
|
}
|