@atlaskit/editor-plugin-primary-toolbar 12.0.14 → 13.0.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 +32 -0
- package/package.json +5 -13
- package/primary-toolbar-plugin/package.json +1 -8
- package/primary-toolbar-plugin-type/package.json +1 -8
- package/dist/types-ts4.5/editor-actions/actions.d.ts +0 -6
- package/dist/types-ts4.5/entry-points/primary-toolbar-plugin-type.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/primary-toolbar-plugin.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/pm-plugin.d.ts +0 -10
- package/dist/types-ts4.5/pm-plugins/toolbar-configuration.d.ts +0 -10
- package/dist/types-ts4.5/primaryToolbarPlugin.d.ts +0 -2
- package/dist/types-ts4.5/primaryToolbarPluginType.d.ts +0 -24
- package/dist/types-ts4.5/ui/separator.d.ts +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-primary-toolbar
|
|
2
2
|
|
|
3
|
+
## 13.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
|
|
8
|
+
Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
|
|
9
|
+
|
|
10
|
+
Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
|
|
11
|
+
|
|
12
|
+
Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
|
|
13
|
+
|
|
14
|
+
```diff
|
|
15
|
+
- "typesVersions": {
|
|
16
|
+
- ">=4.5 <4.9": {
|
|
17
|
+
- "*": [
|
|
18
|
+
- "dist/types-ts4.5/*",
|
|
19
|
+
- "dist/types-ts4.5/index.d.ts"
|
|
20
|
+
- ]
|
|
21
|
+
- }
|
|
22
|
+
- },
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
29
|
+
## 12.0.15
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Updated dependencies
|
|
34
|
+
|
|
3
35
|
## 12.0.14
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-primary-toolbar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "Primary toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,27 +19,19 @@
|
|
|
19
19
|
"module": "dist/esm/index.js",
|
|
20
20
|
"module:es2019": "dist/es2019/index.js",
|
|
21
21
|
"types": "dist/types/index.d.ts",
|
|
22
|
-
"typesVersions": {
|
|
23
|
-
">=4.5 <5.4": {
|
|
24
|
-
"*": [
|
|
25
|
-
"dist/types-ts4.5/*",
|
|
26
|
-
"dist/types-ts4.5/index.d.ts"
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
22
|
"sideEffects": [
|
|
31
23
|
"*.compiled.css"
|
|
32
24
|
],
|
|
33
25
|
"atlaskit:src": "src/index.ts",
|
|
34
26
|
"dependencies": {
|
|
35
|
-
"@atlaskit/editor-prosemirror": "^
|
|
36
|
-
"@atlaskit/platform-feature-flags": "^
|
|
37
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
27
|
+
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
28
|
+
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
29
|
+
"@atlaskit/tmp-editor-statsig": "^104.0.0",
|
|
38
30
|
"@babel/runtime": "^7.0.0",
|
|
39
31
|
"@emotion/react": "^11.7.1"
|
|
40
32
|
},
|
|
41
33
|
"peerDependencies": {
|
|
42
|
-
"@atlaskit/editor-common": "^
|
|
34
|
+
"@atlaskit/editor-common": "^116.0.0",
|
|
43
35
|
"react": "^18.2.0"
|
|
44
36
|
},
|
|
45
37
|
"techstack": {
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/primary-toolbar-plugin.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/primary-toolbar-plugin.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/primary-toolbar-plugin.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/primary-toolbar-plugin-type.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/primary-toolbar-plugin-type.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/primary-toolbar-plugin-type.d.ts"
|
|
17
10
|
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { ComponentRegistry, ToolbarElementNames } from '../primaryToolbarPluginType';
|
|
3
|
-
export declare const registerComponent: (componentRegistry: ComponentRegistry) => ({ name, component, }: {
|
|
4
|
-
component: ToolbarUIComponentFactory;
|
|
5
|
-
name: ToolbarElementNames;
|
|
6
|
-
}) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { PrimaryToolbarPlugin, PrimaryToolbarPluginOptions, PrimaryToolbarPluginState, ToolbarElementNames, } from '../primaryToolbarPluginType';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { primaryToolbarPlugin } from '../primaryToolbarPlugin';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { ComponentRegistry, PrimaryToolbarPluginState } from '../primaryToolbarPluginType';
|
|
4
|
-
export declare const primaryToolbarPluginKey: PluginKey<PrimaryToolbarPluginState>;
|
|
5
|
-
type PluginConfig = {
|
|
6
|
-
componentRegistry: ComponentRegistry;
|
|
7
|
-
contextualFormattingEnabled?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const createPlugin: ({ componentRegistry, contextualFormattingEnabled, }: PluginConfig) => SafePlugin<PrimaryToolbarPluginState>;
|
|
10
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { ComponentRegistry } from '../primaryToolbarPluginType';
|
|
4
|
-
type GetToolbarComponentsOptions = {
|
|
5
|
-
componentRegistry: ComponentRegistry;
|
|
6
|
-
contextualFormattingEnabled?: boolean;
|
|
7
|
-
editorState: EditorState;
|
|
8
|
-
};
|
|
9
|
-
export declare const getToolbarComponents: ({ componentRegistry, editorState, contextualFormattingEnabled, }: GetToolbarComponentsOptions) => ToolbarUIComponentFactory[];
|
|
10
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { NextEditorPlugin, ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
export interface PrimaryToolbarPluginOptions {
|
|
4
|
-
contextualFormattingEnabled?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export type PrimaryToolbarPlugin = NextEditorPlugin<'primaryToolbar', {
|
|
7
|
-
actions: {
|
|
8
|
-
registerComponent: ({ name, component, }: {
|
|
9
|
-
component: ToolbarUIComponentFactory;
|
|
10
|
-
name: ToolbarElementNames;
|
|
11
|
-
}) => void;
|
|
12
|
-
};
|
|
13
|
-
pluginConfiguration?: PrimaryToolbarPluginOptions;
|
|
14
|
-
sharedState: PrimaryToolbarPluginState | undefined;
|
|
15
|
-
}>;
|
|
16
|
-
export type ComponentRegistry = Map<string, ToolbarUIComponentFactory>;
|
|
17
|
-
export type ToolbarElementNames = 'aiExperience' | 'aiSimplified' | 'alignment' | 'avatarGroup' | 'beforePrimaryToolbar' | 'blockType' | 'findReplace' | 'highlight' | 'hyperlink' | 'insertBlock' | 'loom' | 'overflowMenu' | 'pinToolbar' | 'selectionExtension' | 'separator' | 'spellCheck' | 'textColor' | 'textFormatting' | 'toolbarListsIndentation' | 'trackChanges' | 'undoRedoPlugin';
|
|
18
|
-
export type ToolbarElementConfig = {
|
|
19
|
-
enabled?: (componentRegistry: ComponentRegistry, editorState: EditorState) => boolean;
|
|
20
|
-
name: ToolbarElementNames;
|
|
21
|
-
};
|
|
22
|
-
export type PrimaryToolbarPluginState = {
|
|
23
|
-
components: ToolbarUIComponentFactory[];
|
|
24
|
-
};
|