@atlaskit/editor-plugin-block-type 5.1.12 → 5.1.14
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 +18 -0
- package/dist/cjs/pm-plugins/block-types.js +35 -7
- package/dist/cjs/pm-plugins/ui/FloatingToolbarComponent.js +40 -6
- package/dist/cjs/pm-plugins/ui/PrimaryToolbarComponent.js +41 -6
- package/dist/cjs/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +3 -0
- package/dist/cjs/pm-plugins/ui/ToolbarBlockType/index.js +35 -27
- package/dist/es2019/pm-plugins/block-types.js +35 -7
- package/dist/es2019/pm-plugins/ui/FloatingToolbarComponent.js +40 -6
- package/dist/es2019/pm-plugins/ui/PrimaryToolbarComponent.js +41 -6
- package/dist/es2019/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +3 -0
- package/dist/es2019/pm-plugins/ui/ToolbarBlockType/index.js +21 -18
- package/dist/esm/pm-plugins/block-types.js +35 -7
- package/dist/esm/pm-plugins/ui/FloatingToolbarComponent.js +40 -6
- package/dist/esm/pm-plugins/ui/PrimaryToolbarComponent.js +41 -6
- package/dist/esm/pm-plugins/ui/ToolbarBlockType/blocktype-button.js +3 -0
- package/dist/esm/pm-plugins/ui/ToolbarBlockType/index.js +35 -27
- package/dist/types/pm-plugins/types.d.ts +1 -0
- package/dist/types/pm-plugins/ui/ToolbarBlockType/index.d.ts +5 -2
- package/dist/types-ts4.5/pm-plugins/types.d.ts +1 -0
- package/dist/types-ts4.5/pm-plugins/ui/ToolbarBlockType/index.d.ts +5 -2
- package/package.json +14 -10
@@ -10,7 +10,6 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
import { ThemeMutationObserver } from '@atlaskit/tokens';
|
11
11
|
import type { BlockTypePlugin } from '../../../blockTypePluginType';
|
12
12
|
import type { TextBlockTypes } from '../../block-types';
|
13
|
-
import type { BlockTypeState } from '../../main';
|
14
13
|
import type { BlockType } from '../../types';
|
15
14
|
export type DropdownItem = MenuItem & {
|
16
15
|
value: BlockType;
|
@@ -19,7 +18,11 @@ export interface Props {
|
|
19
18
|
isDisabled?: boolean;
|
20
19
|
isSmall?: boolean;
|
21
20
|
isReducedSpacing?: boolean;
|
22
|
-
|
21
|
+
currentBlockType?: BlockType;
|
22
|
+
blockTypesDisabled?: boolean;
|
23
|
+
availableBlockTypes?: BlockType[];
|
24
|
+
availableBlockTypesInDropdown?: BlockType[];
|
25
|
+
formattingIsPresent?: boolean;
|
23
26
|
popupsMountPoint?: HTMLElement;
|
24
27
|
popupsBoundariesElement?: HTMLElement;
|
25
28
|
popupsScrollableElement?: HTMLElement;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
3
|
-
"version": "5.1.
|
3
|
+
"version": "5.1.14",
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
5
5
|
"author": "Atlassian Pty Ltd",
|
6
6
|
"license": "Apache-2.0",
|
@@ -36,20 +36,21 @@
|
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
38
|
"@atlaskit/adf-schema": "^47.6.0",
|
39
|
-
"@atlaskit/editor-common": "^103.
|
39
|
+
"@atlaskit/editor-common": "^103.16.0",
|
40
40
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
41
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^3.
|
42
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^3.
|
41
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^3.2.0",
|
42
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^3.5.0",
|
43
43
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
44
44
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
45
45
|
"@atlaskit/editor-tables": "^2.9.0",
|
46
|
-
"@atlaskit/icon": "^25.
|
46
|
+
"@atlaskit/icon": "^25.6.0",
|
47
|
+
"@atlaskit/icon-lab": "^4.9.0",
|
47
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
48
|
-
"@atlaskit/primitives": "^14.
|
49
|
+
"@atlaskit/primitives": "^14.4.0",
|
49
50
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
50
51
|
"@atlaskit/theme": "^18.0.0",
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
52
|
-
"@atlaskit/tokens": "^4.
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^4.14.0",
|
53
|
+
"@atlaskit/tokens": "^4.8.0",
|
53
54
|
"@babel/runtime": "^7.0.0",
|
54
55
|
"@emotion/react": "^11.7.1"
|
55
56
|
},
|
@@ -61,8 +62,8 @@
|
|
61
62
|
"devDependencies": {
|
62
63
|
"@af/visual-regression": "^1.3.0",
|
63
64
|
"@atlaskit/analytics-next": "^11.0.0",
|
64
|
-
"@atlaskit/editor-plugin-quick-insert": "^2.
|
65
|
-
"@atlaskit/editor-plugin-type-ahead": "^2.
|
65
|
+
"@atlaskit/editor-plugin-quick-insert": "^2.4.0",
|
66
|
+
"@atlaskit/editor-plugin-type-ahead": "^2.5.0",
|
66
67
|
"@atlaskit/ssr": "^0.4.0",
|
67
68
|
"@atlaskit/visual-regression": "^0.10.0",
|
68
69
|
"@testing-library/react": "^13.4.0",
|
@@ -115,6 +116,9 @@
|
|
115
116
|
},
|
116
117
|
"platform_editor_comments_toolbar_responsiveness": {
|
117
118
|
"type": "boolean"
|
119
|
+
},
|
120
|
+
"platform_editor_controls_patch_4": {
|
121
|
+
"type": "boolean"
|
118
122
|
}
|
119
123
|
}
|
120
124
|
}
|