@atlaskit/editor-plugin-block-type 14.2.1 → 14.2.3

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,19 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 14.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 14.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`2c2360f6ef073`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c2360f6ef073) -
14
+ Move \_MarkdownModePluginStub to @atlaskit/editor-common
15
+ - Updated dependencies
16
+
3
17
  ## 14.2.1
4
18
 
5
19
  ### 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.1",
3
+ "version": "14.2.3",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -42,7 +42,7 @@
42
42
  "@atlaskit/editor-prosemirror": "^7.3.0",
43
43
  "@atlaskit/editor-shared-styles": "^3.11.0",
44
44
  "@atlaskit/editor-tables": "^2.10.0",
45
- "@atlaskit/editor-toolbar": "^1.8.0",
45
+ "@atlaskit/editor-toolbar": "^1.9.0",
46
46
  "@atlaskit/editor-toolbar-model": "^0.5.0",
47
47
  "@atlaskit/icon": "^35.3.0",
48
48
  "@atlaskit/icon-lab": "^6.12.0",
@@ -50,14 +50,14 @@
50
50
  "@atlaskit/primitives": "^19.0.0",
51
51
  "@atlaskit/prosemirror-history": "^0.2.0",
52
52
  "@atlaskit/prosemirror-input-rules": "^3.7.0",
53
- "@atlaskit/tmp-editor-statsig": "^85.0.0",
53
+ "@atlaskit/tmp-editor-statsig": "^86.0.0",
54
54
  "@atlaskit/tokens": "^13.1.0",
55
55
  "@babel/runtime": "^7.0.0",
56
56
  "@compiled/react": "^0.20.0",
57
57
  "@emotion/react": "^11.7.1"
58
58
  },
59
59
  "peerDependencies": {
60
- "@atlaskit/editor-common": "^114.50.0",
60
+ "@atlaskit/editor-common": "^114.54.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"