@atlaskit/editor-plugin-selection-extension 7.2.1 → 8.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 +7 -0
- package/dist/types/types/index.d.ts +4 -16
- package/dist/types-ts4.5/types/index.d.ts +4 -16
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-extension
|
|
2
2
|
|
|
3
|
+
## 8.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`63fe1593adb21`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/63fe1593adb21) -
|
|
8
|
+
EDITOR-2772 Remove support for unused `section` config on selection extensions
|
|
9
|
+
|
|
3
10
|
## 7.2.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -125,11 +125,11 @@ export type ExtensionConfiguration = {
|
|
|
125
125
|
source: ExtensionSource;
|
|
126
126
|
};
|
|
127
127
|
export type GetToolbarItemFn = () => ExtensionToolbarItemConfiguration;
|
|
128
|
-
export type GetMenuItemsFn = () => Array<ExtensionMenuItemConfiguration
|
|
129
|
-
export type GetMenuItemFn = () =>
|
|
128
|
+
export type GetMenuItemsFn = () => Array<ExtensionMenuItemConfiguration>;
|
|
129
|
+
export type GetMenuItemFn = () => ExtensionMenuItemConfiguration;
|
|
130
130
|
export type BlockMenuItemConfiguration = Omit<ExtensionMenuItemConfiguration, 'contentComponent'>;
|
|
131
|
-
export type GetBlockMenuItemFn = () =>
|
|
132
|
-
export type GetBlockMenuNestedItemsFn = () => Array<BlockMenuItemConfiguration
|
|
131
|
+
export type GetBlockMenuItemFn = () => BlockMenuItemConfiguration;
|
|
132
|
+
export type GetBlockMenuNestedItemsFn = () => Array<BlockMenuItemConfiguration>;
|
|
133
133
|
export type ToolbarExtensionConfiguration = {
|
|
134
134
|
getMenuItems?: GetMenuItemsFn;
|
|
135
135
|
getToolbarItem?: GetToolbarItemFn;
|
|
@@ -162,17 +162,5 @@ export type ExtensionMenuItemConfiguration = {
|
|
|
162
162
|
label: string;
|
|
163
163
|
};
|
|
164
164
|
onClick?: () => void;
|
|
165
|
-
/**
|
|
166
|
-
* Optional menu-section to declare grouping - only used for menu items
|
|
167
|
-
*/
|
|
168
|
-
section?: {
|
|
169
|
-
key: string;
|
|
170
|
-
rank: number;
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
export type ExtensionMenuSectionConfiguration = {
|
|
174
|
-
key: string;
|
|
175
|
-
rank: number;
|
|
176
|
-
title?: string;
|
|
177
165
|
};
|
|
178
166
|
export {};
|
|
@@ -125,11 +125,11 @@ export type ExtensionConfiguration = {
|
|
|
125
125
|
source: ExtensionSource;
|
|
126
126
|
};
|
|
127
127
|
export type GetToolbarItemFn = () => ExtensionToolbarItemConfiguration;
|
|
128
|
-
export type GetMenuItemsFn = () => Array<ExtensionMenuItemConfiguration
|
|
129
|
-
export type GetMenuItemFn = () =>
|
|
128
|
+
export type GetMenuItemsFn = () => Array<ExtensionMenuItemConfiguration>;
|
|
129
|
+
export type GetMenuItemFn = () => ExtensionMenuItemConfiguration;
|
|
130
130
|
export type BlockMenuItemConfiguration = Omit<ExtensionMenuItemConfiguration, 'contentComponent'>;
|
|
131
|
-
export type GetBlockMenuItemFn = () =>
|
|
132
|
-
export type GetBlockMenuNestedItemsFn = () => Array<BlockMenuItemConfiguration
|
|
131
|
+
export type GetBlockMenuItemFn = () => BlockMenuItemConfiguration;
|
|
132
|
+
export type GetBlockMenuNestedItemsFn = () => Array<BlockMenuItemConfiguration>;
|
|
133
133
|
export type ToolbarExtensionConfiguration = {
|
|
134
134
|
getMenuItems?: GetMenuItemsFn;
|
|
135
135
|
getToolbarItem?: GetToolbarItemFn;
|
|
@@ -162,17 +162,5 @@ export type ExtensionMenuItemConfiguration = {
|
|
|
162
162
|
label: string;
|
|
163
163
|
};
|
|
164
164
|
onClick?: () => void;
|
|
165
|
-
/**
|
|
166
|
-
* Optional menu-section to declare grouping - only used for menu items
|
|
167
|
-
*/
|
|
168
|
-
section?: {
|
|
169
|
-
key: string;
|
|
170
|
-
rank: number;
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
export type ExtensionMenuSectionConfiguration = {
|
|
174
|
-
key: string;
|
|
175
|
-
rank: number;
|
|
176
|
-
title?: string;
|
|
177
165
|
};
|
|
178
166
|
export {};
|
package/package.json
CHANGED