@atlaskit/editor-plugin-selection-extension 10.3.27 → 11.0.1
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/ui/toolbar/SelectionExtensionDropdownMenu.js +2 -0
- package/dist/cjs/ui/toolbar/SelectionExtensionDropdownMenuButton.js +2 -0
- package/dist/cjs/ui/toolbar/SelectionExtensionItems.js +2 -0
- package/dist/es2019/ui/toolbar/SelectionExtensionDropdownMenu.js +2 -0
- package/dist/es2019/ui/toolbar/SelectionExtensionDropdownMenuButton.js +2 -0
- package/dist/es2019/ui/toolbar/SelectionExtensionItems.js +2 -0
- package/dist/esm/ui/toolbar/SelectionExtensionDropdownMenu.js +2 -0
- package/dist/esm/ui/toolbar/SelectionExtensionDropdownMenuButton.js +2 -0
- package/dist/esm/ui/toolbar/SelectionExtensionItems.js +2 -0
- package/dist/types/ui/SelectionExtensionComponentContext.d.ts +2 -1
- package/dist/types/ui/toolbar/SelectionExtensionDropdownMenu.d.ts +2 -2
- package/dist/types/ui/toolbar/SelectionExtensionDropdownMenuButton.d.ts +2 -2
- package/dist/types/ui/toolbar/SelectionExtensionItems.d.ts +2 -2
- package/dist/types/ui/toolbar-components/register-inline-toolbar.d.ts +1 -1
- package/dist/types-ts4.5/ui/SelectionExtensionComponentContext.d.ts +2 -1
- package/dist/types-ts4.5/ui/toolbar/SelectionExtensionDropdownMenu.d.ts +2 -2
- package/dist/types-ts4.5/ui/toolbar/SelectionExtensionDropdownMenuButton.d.ts +2 -2
- package/dist/types-ts4.5/ui/toolbar/SelectionExtensionItems.d.ts +2 -2
- package/dist/types-ts4.5/ui/toolbar-components/register-inline-toolbar.d.ts +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -53,4 +53,6 @@ var SelectionExtensionDropdownMenuComponent = /*#__PURE__*/_react.default.memo(f
|
|
|
53
53
|
}
|
|
54
54
|
}));
|
|
55
55
|
});
|
|
56
|
+
|
|
57
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
56
58
|
var SelectionExtensionDropdownMenu = exports.SelectionExtensionDropdownMenu = (0, _reactIntlNext.injectIntl)(SelectionExtensionDropdownMenuComponent);
|
|
@@ -35,4 +35,6 @@ var SelectionExtensionDropdownMenuButtonComponent = function SelectionExtensionD
|
|
|
35
35
|
spacing: "none"
|
|
36
36
|
}));
|
|
37
37
|
};
|
|
38
|
+
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
38
40
|
var SelectionExtensionDropdownMenuButton = exports.SelectionExtensionDropdownMenuButton = (0, _reactIntlNext.injectIntl)(SelectionExtensionDropdownMenuButtonComponent);
|
|
@@ -71,4 +71,6 @@ var SelectionExtensionItemsComponent = exports.SelectionExtensionItemsComponent
|
|
|
71
71
|
onItemActivated: handleOnItemActivated
|
|
72
72
|
});
|
|
73
73
|
};
|
|
74
|
+
|
|
75
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
74
76
|
var SelectionExtensionItems = exports.SelectionExtensionItems = (0, _reactIntlNext.injectIntl)(SelectionExtensionItemsComponent);
|
|
@@ -29,4 +29,6 @@ const SelectionExtensionDropdownMenuButtonComponent = ({
|
|
|
29
29
|
spacing: "none"
|
|
30
30
|
}));
|
|
31
31
|
};
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
32
34
|
export const SelectionExtensionDropdownMenuButton = injectIntl(SelectionExtensionDropdownMenuButtonComponent);
|
|
@@ -28,4 +28,6 @@ var SelectionExtensionDropdownMenuButtonComponent = function SelectionExtensionD
|
|
|
28
28
|
spacing: "none"
|
|
29
29
|
}));
|
|
30
30
|
};
|
|
31
|
+
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
31
33
|
export var SelectionExtensionDropdownMenuButton = injectIntl(SelectionExtensionDropdownMenuButtonComponent);
|
|
@@ -65,4 +65,6 @@ export var SelectionExtensionItemsComponent = function SelectionExtensionItemsCo
|
|
|
65
65
|
onItemActivated: handleOnItemActivated
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
|
+
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
68
70
|
export var SelectionExtensionItems = injectIntl(SelectionExtensionItemsComponent);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Provider } from 'react';
|
|
1
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
4
|
import type { SelectionExtensionPlugin } from '../selectionExtensionPluginType';
|
|
@@ -8,6 +9,6 @@ type SelectionExtensionComponentContextValue = {
|
|
|
8
9
|
extensionSource: string;
|
|
9
10
|
extensionLocation: 'inline-toolbar' | 'primary-toolbar' | 'block-menu';
|
|
10
11
|
};
|
|
11
|
-
export declare const SelectionExtensionComponentContextProvider:
|
|
12
|
+
export declare const SelectionExtensionComponentContextProvider: Provider<SelectionExtensionComponentContextValue | undefined>;
|
|
12
13
|
export declare const useSelectionExtensionComponentContext: () => SelectionExtensionComponentContextValue;
|
|
13
14
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { type MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
5
5
|
import { type MenuItemsType } from '../../types';
|
|
@@ -11,7 +11,7 @@ export type SelectionExtensionDropdownMenuProps = {
|
|
|
11
11
|
shouldCloseMenu?: boolean;
|
|
12
12
|
}) => void;
|
|
13
13
|
} & WrappedComponentProps;
|
|
14
|
-
export declare const SelectionExtensionDropdownMenu: React.FC<
|
|
14
|
+
export declare const SelectionExtensionDropdownMenu: React.FC<WithIntlProps<{
|
|
15
15
|
editorAnalyticsAPI?: EditorAnalyticsAPI;
|
|
16
16
|
items: MenuItemsType;
|
|
17
17
|
onItemActivated?: (attrs: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
4
4
|
type SelectionExtensionDropdownMenuButtonProps = React.ComponentProps<typeof ToolbarButton> & WrappedComponentProps;
|
|
5
|
-
export declare const SelectionExtensionDropdownMenuButton: React.FC<
|
|
5
|
+
export declare const SelectionExtensionDropdownMenuButton: React.FC<WithIntlProps<SelectionExtensionDropdownMenuButtonProps>> & {
|
|
6
6
|
WrappedComponent: React.ComponentType<SelectionExtensionDropdownMenuButtonProps>;
|
|
7
7
|
};
|
|
8
8
|
export {};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -17,7 +17,7 @@ type SelectionExtensionItemsProps = {
|
|
|
17
17
|
onExtensionClick: (extension: SelectionExtension) => void;
|
|
18
18
|
} & WrappedComponentProps;
|
|
19
19
|
export declare const SelectionExtensionItemsComponent: ({ extensions, onExtensionClick, editorAnalyticsAPI, }: SelectionExtensionItemsProps) => React.JSX.Element;
|
|
20
|
-
export declare const SelectionExtensionItems: React.FC<
|
|
20
|
+
export declare const SelectionExtensionItems: React.FC<WithIntlProps<SelectionExtensionItemsProps>> & {
|
|
21
21
|
WrappedComponent: React.ComponentType<SelectionExtensionItemsProps>;
|
|
22
22
|
};
|
|
23
23
|
export {};
|
|
@@ -7,5 +7,5 @@ type RegisterExtensionProps = {
|
|
|
7
7
|
extension: ExtensionConfiguration;
|
|
8
8
|
index: number;
|
|
9
9
|
};
|
|
10
|
-
export declare const registerInlineToolbar: ({ api, extension, index }: RegisterExtensionProps) => RegisterComponent[];
|
|
10
|
+
export declare const registerInlineToolbar: ({ api, extension, index, }: RegisterExtensionProps) => RegisterComponent[];
|
|
11
11
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Provider } from 'react';
|
|
1
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
4
|
import type { SelectionExtensionPlugin } from '../selectionExtensionPluginType';
|
|
@@ -8,6 +9,6 @@ type SelectionExtensionComponentContextValue = {
|
|
|
8
9
|
extensionSource: string;
|
|
9
10
|
extensionLocation: 'inline-toolbar' | 'primary-toolbar' | 'block-menu';
|
|
10
11
|
};
|
|
11
|
-
export declare const SelectionExtensionComponentContextProvider:
|
|
12
|
+
export declare const SelectionExtensionComponentContextProvider: Provider<SelectionExtensionComponentContextValue | undefined>;
|
|
12
13
|
export declare const useSelectionExtensionComponentContext: () => SelectionExtensionComponentContextValue;
|
|
13
14
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { type MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
5
5
|
import { type MenuItemsType } from '../../types';
|
|
@@ -11,7 +11,7 @@ export type SelectionExtensionDropdownMenuProps = {
|
|
|
11
11
|
shouldCloseMenu?: boolean;
|
|
12
12
|
}) => void;
|
|
13
13
|
} & WrappedComponentProps;
|
|
14
|
-
export declare const SelectionExtensionDropdownMenu: React.FC<
|
|
14
|
+
export declare const SelectionExtensionDropdownMenu: React.FC<WithIntlProps<{
|
|
15
15
|
editorAnalyticsAPI?: EditorAnalyticsAPI;
|
|
16
16
|
items: MenuItemsType;
|
|
17
17
|
onItemActivated?: (attrs: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
4
4
|
type SelectionExtensionDropdownMenuButtonProps = React.ComponentProps<typeof ToolbarButton> & WrappedComponentProps;
|
|
5
|
-
export declare const SelectionExtensionDropdownMenuButton: React.FC<
|
|
5
|
+
export declare const SelectionExtensionDropdownMenuButton: React.FC<WithIntlProps<SelectionExtensionDropdownMenuButtonProps>> & {
|
|
6
6
|
WrappedComponent: React.ComponentType<SelectionExtensionDropdownMenuButtonProps>;
|
|
7
7
|
};
|
|
8
8
|
export {};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -17,7 +17,7 @@ type SelectionExtensionItemsProps = {
|
|
|
17
17
|
onExtensionClick: (extension: SelectionExtension) => void;
|
|
18
18
|
} & WrappedComponentProps;
|
|
19
19
|
export declare const SelectionExtensionItemsComponent: ({ extensions, onExtensionClick, editorAnalyticsAPI, }: SelectionExtensionItemsProps) => React.JSX.Element;
|
|
20
|
-
export declare const SelectionExtensionItems: React.FC<
|
|
20
|
+
export declare const SelectionExtensionItems: React.FC<WithIntlProps<SelectionExtensionItemsProps>> & {
|
|
21
21
|
WrappedComponent: React.ComponentType<SelectionExtensionItemsProps>;
|
|
22
22
|
};
|
|
23
23
|
export {};
|
|
@@ -7,5 +7,5 @@ type RegisterExtensionProps = {
|
|
|
7
7
|
extension: ExtensionConfiguration;
|
|
8
8
|
index: number;
|
|
9
9
|
};
|
|
10
|
-
export declare const registerInlineToolbar: ({ api, extension, index }: RegisterExtensionProps) => RegisterComponent[];
|
|
10
|
+
export declare const registerInlineToolbar: ({ api, extension, index, }: RegisterExtensionProps) => RegisterComponent[];
|
|
11
11
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-extension",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.1",
|
|
4
4
|
"description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,32 +35,32 @@
|
|
|
35
35
|
"@atlaskit/adf-utils": "^19.27.0",
|
|
36
36
|
"@atlaskit/css": "^0.19.0",
|
|
37
37
|
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
38
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
39
|
-
"@atlaskit/editor-plugin-block-controls": "^
|
|
40
|
-
"@atlaskit/editor-plugin-block-menu": "^
|
|
41
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
42
|
-
"@atlaskit/editor-plugin-editor-viewmode-effects": "^
|
|
43
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
44
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^
|
|
45
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
46
|
-
"@atlaskit/editor-plugin-user-preferences": "^
|
|
38
|
+
"@atlaskit/editor-plugin-analytics": "^8.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-block-controls": "^9.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-block-menu": "^7.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^10.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-editor-viewmode-effects": "^8.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^9.0.0",
|
|
44
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^9.0.0",
|
|
45
|
+
"@atlaskit/editor-plugin-toolbar": "^5.0.0",
|
|
46
|
+
"@atlaskit/editor-plugin-user-preferences": "^6.0.0",
|
|
47
47
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
48
48
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
49
49
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
50
50
|
"@atlaskit/editor-toolbar": "^0.19.0",
|
|
51
51
|
"@atlaskit/icon": "^32.0.0",
|
|
52
|
-
"@atlaskit/lozenge": "^13.
|
|
52
|
+
"@atlaskit/lozenge": "^13.5.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
54
54
|
"@atlaskit/primitives": "^18.0.0",
|
|
55
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
56
|
-
"@atlaskit/tokens": "^11.
|
|
55
|
+
"@atlaskit/tmp-editor-statsig": "^36.0.0",
|
|
56
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
58
58
|
"lodash": "^4.17.21",
|
|
59
59
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
60
60
|
"uuid": "^3.1.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@atlaskit/editor-common": "^
|
|
63
|
+
"@atlaskit/editor-common": "^112.0.0",
|
|
64
64
|
"react": "^18.2.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|