@atlaskit/editor-plugin-block-type 6.1.3 → 6.2.0
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/blockTypePlugin.js +14 -7
- package/dist/cjs/pm-plugins/block-types.js +56 -1
- package/dist/cjs/pm-plugins/ui/ToolbarBlockType/HeadingButton.compiled.css +7 -0
- package/dist/cjs/pm-plugins/ui/ToolbarBlockType/HeadingButton.js +66 -0
- package/dist/cjs/pm-plugins/ui/ToolbarBlockType/QuoteButton.js +40 -0
- package/dist/cjs/pm-plugins/ui/ToolbarBlockType/TextStylesMenuButton.js +35 -0
- package/dist/cjs/pm-plugins/ui/ToolbarComponents.js +72 -0
- package/dist/es2019/blockTypePlugin.js +40 -31
- package/dist/es2019/pm-plugins/block-types.js +58 -0
- package/dist/es2019/pm-plugins/ui/ToolbarBlockType/HeadingButton.compiled.css +7 -0
- package/dist/es2019/pm-plugins/ui/ToolbarBlockType/HeadingButton.js +59 -0
- package/dist/es2019/pm-plugins/ui/ToolbarBlockType/QuoteButton.js +33 -0
- package/dist/es2019/pm-plugins/ui/ToolbarBlockType/TextStylesMenuButton.js +28 -0
- package/dist/es2019/pm-plugins/ui/ToolbarComponents.js +60 -0
- package/dist/esm/blockTypePlugin.js +14 -7
- package/dist/esm/pm-plugins/block-types.js +55 -0
- package/dist/esm/pm-plugins/ui/ToolbarBlockType/HeadingButton.compiled.css +7 -0
- package/dist/esm/pm-plugins/ui/ToolbarBlockType/HeadingButton.js +59 -0
- package/dist/esm/pm-plugins/ui/ToolbarBlockType/QuoteButton.js +33 -0
- package/dist/esm/pm-plugins/ui/ToolbarBlockType/TextStylesMenuButton.js +28 -0
- package/dist/esm/pm-plugins/ui/ToolbarComponents.js +65 -0
- package/dist/types/blockTypePluginType.d.ts +3 -1
- package/dist/types/pm-plugins/block-types.d.ts +13 -1
- package/dist/types/pm-plugins/types.d.ts +4 -0
- package/dist/types/pm-plugins/ui/ToolbarBlockType/HeadingButton.d.ts +10 -0
- package/dist/types/pm-plugins/ui/ToolbarBlockType/QuoteButton.d.ts +10 -0
- package/dist/types/pm-plugins/ui/ToolbarBlockType/TextStylesMenuButton.d.ts +9 -0
- package/dist/types/pm-plugins/ui/ToolbarComponents.d.ts +4 -0
- package/dist/types-ts4.5/blockTypePluginType.d.ts +3 -1
- package/dist/types-ts4.5/pm-plugins/block-types.d.ts +13 -1
- package/dist/types-ts4.5/pm-plugins/types.d.ts +4 -0
- package/dist/types-ts4.5/pm-plugins/ui/ToolbarBlockType/HeadingButton.d.ts +10 -0
- package/dist/types-ts4.5/pm-plugins/ui/ToolbarBlockType/QuoteButton.d.ts +10 -0
- package/dist/types-ts4.5/pm-plugins/ui/ToolbarBlockType/TextStylesMenuButton.d.ts +9 -0
- package/dist/types-ts4.5/pm-plugins/ui/ToolbarComponents.d.ts +4 -0
- package/package.json +12 -9
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { BlockTypePlugin } from '../../../blockTypePluginType';
|
|
4
|
+
type TextStylesMenuButtonProps = {
|
|
5
|
+
api?: ExtractInjectionAPI<BlockTypePlugin>;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const TextStylesMenuButton: ({ api, children }: TextStylesMenuButtonProps) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { BlockTypePlugin } from '../../blockTypePluginType';
|
|
4
|
+
export declare const getToolbarComponents: (api?: ExtractInjectionAPI<BlockTypePlugin>) => RegisterComponent[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,25 +35,29 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@atlaskit/adf-schema": "^50.2.0",
|
|
38
|
+
"@atlaskit/css": "^0.12.0",
|
|
38
39
|
"@atlaskit/editor-plugin-analytics": "^3.0.0",
|
|
39
40
|
"@atlaskit/editor-plugin-primary-toolbar": "^4.1.0",
|
|
40
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^4.
|
|
41
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^4.3.0",
|
|
42
|
+
"@atlaskit/editor-plugin-toolbar": "^0.1.0",
|
|
41
43
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
42
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
44
|
+
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
43
45
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
44
|
-
"@atlaskit/
|
|
45
|
-
"@atlaskit/
|
|
46
|
+
"@atlaskit/editor-toolbar": "^0.1.0",
|
|
47
|
+
"@atlaskit/editor-toolbar-model": "^0.0.4",
|
|
48
|
+
"@atlaskit/icon": "^27.10.0",
|
|
49
|
+
"@atlaskit/icon-lab": "^5.4.0",
|
|
46
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
51
|
"@atlaskit/primitives": "^14.11.0",
|
|
48
|
-
"@atlaskit/prosemirror-input-rules": "^3.
|
|
52
|
+
"@atlaskit/prosemirror-input-rules": "^3.4.0",
|
|
49
53
|
"@atlaskit/theme": "^19.0.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
54
|
+
"@atlaskit/tmp-editor-statsig": "^9.25.0",
|
|
51
55
|
"@atlaskit/tokens": "^6.0.0",
|
|
52
56
|
"@babel/runtime": "^7.0.0",
|
|
53
57
|
"@emotion/react": "^11.7.1"
|
|
54
58
|
},
|
|
55
59
|
"peerDependencies": {
|
|
56
|
-
"@atlaskit/editor-common": "^107.
|
|
60
|
+
"@atlaskit/editor-common": "^107.19.0",
|
|
57
61
|
"react": "^18.2.0",
|
|
58
62
|
"react-dom": "^18.2.0",
|
|
59
63
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -67,7 +71,6 @@
|
|
|
67
71
|
"@atlaskit/visual-regression": "workspace:^",
|
|
68
72
|
"@testing-library/react": "^13.4.0",
|
|
69
73
|
"@testing-library/user-event": "^14.4.3",
|
|
70
|
-
"typescript": "~5.4.2",
|
|
71
74
|
"wait-for-expect": "^1.2.0"
|
|
72
75
|
},
|
|
73
76
|
"techstack": {
|