@atlaskit/editor-plugin-block-type 3.0.3 → 3.0.5
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/package.json +9 -4
- package/tmp/api-report-tmp.d.ts +0 -81
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
|
2
2
|
|
|
3
|
+
## 3.0.5
|
|
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
|
+
## 3.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417) [`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971 Upgrade adf-schema package to ^34.0.0
|
|
14
|
+
|
|
3
15
|
## 3.0.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"./styles": "./src/styles.ts"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@atlaskit/adf-schema": "^
|
|
41
|
-
"@atlaskit/editor-common": "^76.
|
|
40
|
+
"@atlaskit/adf-schema": "^34.0.1",
|
|
41
|
+
"@atlaskit/editor-common": "^76.23.0",
|
|
42
42
|
"@atlaskit/editor-plugin-analytics": "^0.3.0",
|
|
43
43
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
44
44
|
"@atlaskit/editor-shared-styles": "^2.8.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/icon": "^22.0.0",
|
|
47
47
|
"@atlaskit/prosemirror-input-rules": "^2.4.0",
|
|
48
48
|
"@atlaskit/theme": "^12.6.0",
|
|
49
|
-
"@atlaskit/tokens": "^1.
|
|
49
|
+
"@atlaskit/tokens": "^1.29.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1"
|
|
52
52
|
},
|
|
@@ -56,11 +56,16 @@
|
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@af/visual-regression": "*",
|
|
59
|
+
"@atlaskit/analytics-next": "^9.1.0",
|
|
60
|
+
"@atlaskit/editor-plugin-feature-flags": "^1.0.0",
|
|
61
|
+
"@atlaskit/editor-plugin-quick-insert": "^0.2.0",
|
|
62
|
+
"@atlaskit/editor-plugin-type-ahead": "^0.7.0",
|
|
59
63
|
"@atlaskit/ssr": "*",
|
|
60
64
|
"@atlaskit/visual-regression": "*",
|
|
61
65
|
"@atlaskit/webdriver-runner": "*",
|
|
62
66
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
63
67
|
"@testing-library/react": "^12.1.5",
|
|
68
|
+
"@testing-library/user-event": "^14.4.3",
|
|
64
69
|
"react-dom": "^16.8.0",
|
|
65
70
|
"typescript": "~4.9.5",
|
|
66
71
|
"wait-for-expect": "^1.2.0"
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/editor-plugin-block-type"
|
|
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 { AllowedBlockTypes } from '@atlaskit/editor-common/types';
|
|
8
|
-
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
9
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
10
|
-
import type { EditorCommand } from '@atlaskit/editor-common/types';
|
|
11
|
-
import type { HeadingLevelsAndNormalText } from '@atlaskit/editor-common/types';
|
|
12
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
13
|
-
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
14
|
-
import type { MessageDescriptor } from 'react-intl-next';
|
|
15
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
16
|
-
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
17
|
-
|
|
18
|
-
// @public (undocumented)
|
|
19
|
-
export interface BlockType {
|
|
20
|
-
// (undocumented)
|
|
21
|
-
level?: HeadingLevelsAndNormalText;
|
|
22
|
-
// (undocumented)
|
|
23
|
-
name: string;
|
|
24
|
-
// (undocumented)
|
|
25
|
-
nodeName: string;
|
|
26
|
-
// (undocumented)
|
|
27
|
-
tagName?: string;
|
|
28
|
-
// (undocumented)
|
|
29
|
-
title: MessageDescriptor;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// @public (undocumented)
|
|
33
|
-
export type BlockTypePlugin = NextEditorPlugin<'blockType', {
|
|
34
|
-
pluginConfiguration: BlockTypePluginOptions | undefined;
|
|
35
|
-
dependencies: [OptionalPlugin<typeof analyticsPlugin>];
|
|
36
|
-
sharedState: BlockTypeState | undefined;
|
|
37
|
-
actions: {
|
|
38
|
-
insertBlockQuote: (inputMethod: InputMethod) => Command;
|
|
39
|
-
};
|
|
40
|
-
commands: {
|
|
41
|
-
setTextLevel: (level: TextBlockTypes, inputMethod: InputMethod) => EditorCommand;
|
|
42
|
-
};
|
|
43
|
-
}>;
|
|
44
|
-
|
|
45
|
-
// @public (undocumented)
|
|
46
|
-
export const blockTypePlugin: BlockTypePlugin;
|
|
47
|
-
|
|
48
|
-
// @public (undocumented)
|
|
49
|
-
export interface BlockTypePluginOptions {
|
|
50
|
-
// (undocumented)
|
|
51
|
-
allowBlockType?: {
|
|
52
|
-
exclude?: Array<AllowedBlockTypes>;
|
|
53
|
-
};
|
|
54
|
-
// (undocumented)
|
|
55
|
-
isUndoRedoButtonsEnabled?: boolean;
|
|
56
|
-
// (undocumented)
|
|
57
|
-
lastNodeMustBeParagraph?: boolean;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// @public (undocumented)
|
|
61
|
-
export type BlockTypeState = {
|
|
62
|
-
currentBlockType: BlockType;
|
|
63
|
-
blockTypesDisabled: boolean;
|
|
64
|
-
availableBlockTypes: BlockType[];
|
|
65
|
-
availableWrapperBlockTypes: BlockType[];
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
// @public (undocumented)
|
|
69
|
-
export type DropdownItem = MenuItem & {
|
|
70
|
-
value: BlockType;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
// @public (undocumented)
|
|
74
|
-
export type InputMethod = INPUT_METHOD.FORMATTING | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TOOLBAR;
|
|
75
|
-
|
|
76
|
-
// @public (undocumented)
|
|
77
|
-
export type TextBlockTypes = 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'normal';
|
|
78
|
-
|
|
79
|
-
// (No @packageDocumentation comment for this package)
|
|
80
|
-
|
|
81
|
-
```
|