@atlaskit/editor-plugin-block-type 14.2.1 → 14.2.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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
|
2
2
|
|
|
3
|
+
## 14.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2c2360f6ef073`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c2360f6ef073) -
|
|
8
|
+
Move \_MarkdownModePluginStub to @atlaskit/editor-common
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 14.2.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Command, EditorCommand, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { _MarkdownModePluginStub, Command, EditorCommand, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
3
|
import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu';
|
|
4
4
|
import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction';
|
|
@@ -12,26 +12,6 @@ import type { TextBlockTypes } from './pm-plugins/block-types';
|
|
|
12
12
|
import type { ClearFormattingInputMethod, InputMethod } from './pm-plugins/commands/block-type';
|
|
13
13
|
import type { BlockTypeState } from './pm-plugins/main';
|
|
14
14
|
import type { BlockTypePluginOptions } from './pm-plugins/types';
|
|
15
|
-
/**
|
|
16
|
-
* Minimal duck-typed slice of `@atlassian/editor-plugin-markdown-mode`'s
|
|
17
|
-
* `MarkdownModePlugin` covering only the block-level surface this plugin uses.
|
|
18
|
-
* See `editor-plugin-text-formatting/textFormattingPluginType.ts` for the
|
|
19
|
-
* rationale for not importing the real type.
|
|
20
|
-
*/
|
|
21
|
-
type _MarkdownModePluginStub = NextEditorPlugin<'markdownMode', {
|
|
22
|
-
actions: {
|
|
23
|
-
toggleSourceBlockquote: () => boolean;
|
|
24
|
-
toggleSourceHeading: (level: 1 | 2 | 3 | 4 | 5 | 6) => boolean;
|
|
25
|
-
};
|
|
26
|
-
sharedState: {
|
|
27
|
-
sourceBlockFormatState: {
|
|
28
|
-
headingLevel: number | null;
|
|
29
|
-
inBlockquote: boolean;
|
|
30
|
-
inCodeBlock: boolean;
|
|
31
|
-
} | null;
|
|
32
|
-
view: 'syntax' | 'split-view' | 'preview';
|
|
33
|
-
} | undefined;
|
|
34
|
-
}>;
|
|
35
15
|
export type BlockTypePlugin = NextEditorPlugin<'blockType', {
|
|
36
16
|
actions: {
|
|
37
17
|
insertBlockQuote: (inputMethod: InputMethod) => Command;
|
|
@@ -56,4 +36,3 @@ export type BlockTypePlugin = NextEditorPlugin<'blockType', {
|
|
|
56
36
|
pluginConfiguration: BlockTypePluginOptions | undefined;
|
|
57
37
|
sharedState: BlockTypeState | undefined;
|
|
58
38
|
}>;
|
|
59
|
-
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Command, EditorCommand, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { _MarkdownModePluginStub, Command, EditorCommand, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
3
|
import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu';
|
|
4
4
|
import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction';
|
|
@@ -12,26 +12,6 @@ import type { TextBlockTypes } from './pm-plugins/block-types';
|
|
|
12
12
|
import type { ClearFormattingInputMethod, InputMethod } from './pm-plugins/commands/block-type';
|
|
13
13
|
import type { BlockTypeState } from './pm-plugins/main';
|
|
14
14
|
import type { BlockTypePluginOptions } from './pm-plugins/types';
|
|
15
|
-
/**
|
|
16
|
-
* Minimal duck-typed slice of `@atlassian/editor-plugin-markdown-mode`'s
|
|
17
|
-
* `MarkdownModePlugin` covering only the block-level surface this plugin uses.
|
|
18
|
-
* See `editor-plugin-text-formatting/textFormattingPluginType.ts` for the
|
|
19
|
-
* rationale for not importing the real type.
|
|
20
|
-
*/
|
|
21
|
-
type _MarkdownModePluginStub = NextEditorPlugin<'markdownMode', {
|
|
22
|
-
actions: {
|
|
23
|
-
toggleSourceBlockquote: () => boolean;
|
|
24
|
-
toggleSourceHeading: (level: 1 | 2 | 3 | 4 | 5 | 6) => boolean;
|
|
25
|
-
};
|
|
26
|
-
sharedState: {
|
|
27
|
-
sourceBlockFormatState: {
|
|
28
|
-
headingLevel: number | null;
|
|
29
|
-
inBlockquote: boolean;
|
|
30
|
-
inCodeBlock: boolean;
|
|
31
|
-
} | null;
|
|
32
|
-
view: 'syntax' | 'split-view' | 'preview';
|
|
33
|
-
} | undefined;
|
|
34
|
-
}>;
|
|
35
15
|
export type BlockTypePlugin = NextEditorPlugin<'blockType', {
|
|
36
16
|
actions: {
|
|
37
17
|
insertBlockQuote: (inputMethod: InputMethod) => Command;
|
|
@@ -56,4 +36,3 @@ export type BlockTypePlugin = NextEditorPlugin<'blockType', {
|
|
|
56
36
|
pluginConfiguration: BlockTypePluginOptions | undefined;
|
|
57
37
|
sharedState: BlockTypeState | undefined;
|
|
58
38
|
}>;
|
|
59
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "14.2.
|
|
3
|
+
"version": "14.2.2",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@emotion/react": "^11.7.1"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@atlaskit/editor-common": "^114.
|
|
60
|
+
"@atlaskit/editor-common": "^114.51.0",
|
|
61
61
|
"react": "^18.2.0",
|
|
62
62
|
"react-dom": "^18.2.0",
|
|
63
63
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|