@atlaskit/editor-plugin-base 0.2.5 → 0.2.7
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 +32 -0
- package/dist/types/plugin.d.ts +2 -2
- package/dist/types-ts4.5/plugin.d.ts +2 -2
- package/package.json +4 -4
- package/report.api.md +2 -1
- package/tmp/api-report-tmp.d.ts +0 -61
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-base
|
|
2
2
|
|
|
3
|
+
## 0.2.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790) [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) - ED-21266: Updated @atlaskit/adf-schema to 34.0.1
|
|
8
|
+
|
|
9
|
+
## 0.2.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646) [`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make feature flags plugin optional in all plugins including:
|
|
14
|
+
|
|
15
|
+
- analytics
|
|
16
|
+
- base
|
|
17
|
+
- card
|
|
18
|
+
- code-block
|
|
19
|
+
- expand
|
|
20
|
+
- extension
|
|
21
|
+
- floating-toolbar
|
|
22
|
+
- hyperlink
|
|
23
|
+
- insert-block
|
|
24
|
+
- layout
|
|
25
|
+
- layout
|
|
26
|
+
- list
|
|
27
|
+
- media
|
|
28
|
+
- paste
|
|
29
|
+
- rule
|
|
30
|
+
- table
|
|
31
|
+
- tasks-and-decisions
|
|
32
|
+
|
|
33
|
+
We already treat it as optional in the plugins, so this is just ensuring that the plugin is not mandatory to be added to the preset.
|
|
34
|
+
|
|
3
35
|
## 0.2.5
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
2
|
-
import type { BrowserFreezetracking, InputTracking, NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { BrowserFreezetracking, InputTracking, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
4
4
|
import { setKeyboardHeight } from './commands';
|
|
5
5
|
import type { ScrollGutterPluginOptions } from './pm-plugins/scroll-gutter';
|
|
@@ -17,7 +17,7 @@ export type BasePluginState = {
|
|
|
17
17
|
};
|
|
18
18
|
export type BasePlugin = NextEditorPlugin<'base', {
|
|
19
19
|
pluginConfiguration: BasePluginOptions | undefined;
|
|
20
|
-
dependencies: [FeatureFlagsPlugin];
|
|
20
|
+
dependencies: [OptionalPlugin<FeatureFlagsPlugin>];
|
|
21
21
|
sharedState: BasePluginState;
|
|
22
22
|
actions: {
|
|
23
23
|
setKeyboardHeight: typeof setKeyboardHeight;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
2
|
-
import type { BrowserFreezetracking, InputTracking, NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { BrowserFreezetracking, InputTracking, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
4
4
|
import { setKeyboardHeight } from './commands';
|
|
5
5
|
import type { ScrollGutterPluginOptions } from './pm-plugins/scroll-gutter';
|
|
@@ -18,7 +18,7 @@ export type BasePluginState = {
|
|
|
18
18
|
export type BasePlugin = NextEditorPlugin<'base', {
|
|
19
19
|
pluginConfiguration: BasePluginOptions | undefined;
|
|
20
20
|
dependencies: [
|
|
21
|
-
FeatureFlagsPlugin
|
|
21
|
+
OptionalPlugin<FeatureFlagsPlugin>
|
|
22
22
|
];
|
|
23
23
|
sharedState: BasePluginState;
|
|
24
24
|
actions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-base",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "Base plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/adf-schema": "^34.0.
|
|
35
|
-
"@atlaskit/editor-common": "^76.
|
|
34
|
+
"@atlaskit/adf-schema": "^34.0.1",
|
|
35
|
+
"@atlaskit/editor-common": "^76.23.0",
|
|
36
36
|
"@atlaskit/editor-plugin-feature-flags": "^1.0.1",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
38
38
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/editor-plugin-emoji": "^0.4.0",
|
|
45
45
|
"@atlaskit/editor-plugin-guideline": "^0.5.0",
|
|
46
46
|
"@atlaskit/editor-plugin-selection": "^0.1.0",
|
|
47
|
-
"@atlaskit/editor-plugin-table": "^5.
|
|
47
|
+
"@atlaskit/editor-plugin-table": "^5.4.0",
|
|
48
48
|
"@atlaskit/editor-plugin-type-ahead": "^0.7.0",
|
|
49
49
|
"@atlaskit/editor-plugin-width": "^0.2.0",
|
|
50
50
|
"@atlaskit/util-data-test": "^17.8.0",
|
package/report.api.md
CHANGED
|
@@ -22,13 +22,14 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
22
22
|
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
23
23
|
import type { InputTracking } from '@atlaskit/editor-common/types';
|
|
24
24
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
25
|
+
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
25
26
|
|
|
26
27
|
// @public (undocumented)
|
|
27
28
|
export type BasePlugin = NextEditorPlugin<
|
|
28
29
|
'base',
|
|
29
30
|
{
|
|
30
31
|
pluginConfiguration: BasePluginOptions | undefined;
|
|
31
|
-
dependencies: [FeatureFlagsPlugin];
|
|
32
|
+
dependencies: [OptionalPlugin<FeatureFlagsPlugin>];
|
|
32
33
|
sharedState: BasePluginState;
|
|
33
34
|
actions: {
|
|
34
35
|
setKeyboardHeight: typeof setKeyboardHeight;
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/editor-plugin-base"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import type { BrowserFreezetracking } from '@atlaskit/editor-common/types';
|
|
8
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
9
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
10
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
11
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
12
|
-
import type { InputTracking } from '@atlaskit/editor-common/types';
|
|
13
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
14
|
-
|
|
15
|
-
// @public (undocumented)
|
|
16
|
-
export type BasePlugin = NextEditorPlugin<'base', {
|
|
17
|
-
pluginConfiguration: BasePluginOptions | undefined;
|
|
18
|
-
dependencies: [FeatureFlagsPlugin];
|
|
19
|
-
sharedState: BasePluginState;
|
|
20
|
-
actions: {
|
|
21
|
-
setKeyboardHeight: typeof setKeyboardHeight;
|
|
22
|
-
};
|
|
23
|
-
}>;
|
|
24
|
-
|
|
25
|
-
// @public (undocumented)
|
|
26
|
-
export const basePlugin: BasePlugin;
|
|
27
|
-
|
|
28
|
-
// @public (undocumented)
|
|
29
|
-
export interface BasePluginOptions {
|
|
30
|
-
// (undocumented)
|
|
31
|
-
allowInlineCursorTarget?: boolean;
|
|
32
|
-
// (undocumented)
|
|
33
|
-
allowScrollGutter?: ScrollGutterPluginOptions;
|
|
34
|
-
// (undocumented)
|
|
35
|
-
browserFreezeTracking?: BrowserFreezetracking;
|
|
36
|
-
// (undocumented)
|
|
37
|
-
inputTracking?: InputTracking;
|
|
38
|
-
// (undocumented)
|
|
39
|
-
ufo?: boolean;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// @public (undocumented)
|
|
43
|
-
export type BasePluginState = {
|
|
44
|
-
contextIdentifier: ContextIdentifierProvider | undefined;
|
|
45
|
-
keyboardHeight: number | undefined;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
// @public (undocumented)
|
|
49
|
-
export type ScrollGutterPluginOptions = {
|
|
50
|
-
getScrollElement?: (view: EditorView) => HTMLElement | null;
|
|
51
|
-
allowCustomScrollHandler?: boolean;
|
|
52
|
-
persistScrollGutter?: boolean;
|
|
53
|
-
gutterSize?: number;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
// @public (undocumented)
|
|
57
|
-
const setKeyboardHeight: (keyboardHeight: number) => Command;
|
|
58
|
-
|
|
59
|
-
// (No @packageDocumentation comment for this package)
|
|
60
|
-
|
|
61
|
-
```
|