@atlaskit/editor-plugin-mentions 1.0.4 → 1.0.6
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/types/nodeviews/mention.d.ts +2 -2
- package/dist/types/type-ahead/index.d.ts +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types/ui/InviteItem/index.d.ts +2 -2
- package/dist/types/ui/ToolbarMention/index.d.ts +2 -2
- package/dist/types-ts4.5/nodeviews/mention.d.ts +2 -2
- package/dist/types-ts4.5/type-ahead/index.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/InviteItem/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ToolbarMention/index.d.ts +2 -2
- package/package.json +7 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
2
2
|
|
|
3
|
+
## 1.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
8
|
+
|
|
9
|
+
## 1.0.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#81852](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81852) [`0641eef91f65`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0641eef91f65) - React 18 types for editor-plugin-mentions
|
|
14
|
+
|
|
3
15
|
## 1.0.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
4
4
|
import type { MentionPluginOptions } from '../types';
|
|
@@ -6,4 +6,4 @@ export type Props = InlineNodeViewComponentProps & {
|
|
|
6
6
|
options: MentionPluginOptions | undefined;
|
|
7
7
|
providerFactory: ProviderFactory;
|
|
8
8
|
};
|
|
9
|
-
export declare const MentionNodeView:
|
|
9
|
+
export declare const MentionNodeView: (props: Props) => JSX.Element;
|
|
@@ -10,7 +10,7 @@ export declare function memoize<ResultFn extends (mention: MentionDescription) =
|
|
|
10
10
|
type Props = {
|
|
11
11
|
sanitizePrivateContent?: boolean;
|
|
12
12
|
mentionInsertDisplayName?: boolean;
|
|
13
|
-
HighlightComponent?: React.ComponentType
|
|
13
|
+
HighlightComponent?: React.ComponentType<React.PropsWithChildren<unknown>>;
|
|
14
14
|
fireEvent: FireElementsChannelEvent;
|
|
15
15
|
api: ExtractInjectionAPI<MentionsPlugin> | undefined;
|
|
16
16
|
};
|
package/dist/types/types.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface TeamInfoAttrAnalytics {
|
|
|
11
11
|
memberCount: number;
|
|
12
12
|
}
|
|
13
13
|
export interface MentionPluginConfig {
|
|
14
|
-
HighlightComponent?: React.ComponentType
|
|
14
|
+
HighlightComponent?: React.ComponentType<React.PropsWithChildren<unknown>>;
|
|
15
15
|
insertDisplayName?: boolean;
|
|
16
16
|
}
|
|
17
17
|
export interface MentionPluginOptions extends MentionPluginConfig {
|
|
@@ -18,7 +18,7 @@ interface Props {
|
|
|
18
18
|
selected?: boolean;
|
|
19
19
|
userRole?: UserRole;
|
|
20
20
|
}
|
|
21
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps
|
|
22
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps
|
|
21
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
22
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
23
23
|
};
|
|
24
24
|
export default _default;
|
|
@@ -7,7 +7,7 @@ interface Props {
|
|
|
7
7
|
isDisabled?: boolean;
|
|
8
8
|
testId?: string;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps
|
|
11
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps
|
|
10
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
11
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
4
4
|
import type { MentionPluginOptions } from '../types';
|
|
@@ -6,4 +6,4 @@ export type Props = InlineNodeViewComponentProps & {
|
|
|
6
6
|
options: MentionPluginOptions | undefined;
|
|
7
7
|
providerFactory: ProviderFactory;
|
|
8
8
|
};
|
|
9
|
-
export declare const MentionNodeView:
|
|
9
|
+
export declare const MentionNodeView: (props: Props) => JSX.Element;
|
|
@@ -10,7 +10,7 @@ export declare function memoize<ResultFn extends (mention: MentionDescription) =
|
|
|
10
10
|
type Props = {
|
|
11
11
|
sanitizePrivateContent?: boolean;
|
|
12
12
|
mentionInsertDisplayName?: boolean;
|
|
13
|
-
HighlightComponent?: React.ComponentType
|
|
13
|
+
HighlightComponent?: React.ComponentType<React.PropsWithChildren<unknown>>;
|
|
14
14
|
fireEvent: FireElementsChannelEvent;
|
|
15
15
|
api: ExtractInjectionAPI<MentionsPlugin> | undefined;
|
|
16
16
|
};
|
|
@@ -11,7 +11,7 @@ export interface TeamInfoAttrAnalytics {
|
|
|
11
11
|
memberCount: number;
|
|
12
12
|
}
|
|
13
13
|
export interface MentionPluginConfig {
|
|
14
|
-
HighlightComponent?: React.ComponentType
|
|
14
|
+
HighlightComponent?: React.ComponentType<React.PropsWithChildren<unknown>>;
|
|
15
15
|
insertDisplayName?: boolean;
|
|
16
16
|
}
|
|
17
17
|
export interface MentionPluginOptions extends MentionPluginConfig {
|
|
@@ -18,7 +18,7 @@ interface Props {
|
|
|
18
18
|
selected?: boolean;
|
|
19
19
|
userRole?: UserRole;
|
|
20
20
|
}
|
|
21
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps
|
|
22
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps
|
|
21
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
22
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
23
23
|
};
|
|
24
24
|
export default _default;
|
|
@@ -7,7 +7,7 @@ interface Props {
|
|
|
7
7
|
isDisabled?: boolean;
|
|
8
8
|
testId?: string;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps
|
|
11
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps
|
|
10
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
11
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^35.6.0",
|
|
37
37
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
38
|
-
"@atlaskit/editor-common": "^78.
|
|
38
|
+
"@atlaskit/editor-common": "^78.17.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^1.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-context-identifier": "^1.0.0",
|
|
41
41
|
"@atlaskit/editor-plugin-type-ahead": "^1.0.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/icon": "^22.1.0",
|
|
44
44
|
"@atlaskit/mention": "^23.0.0",
|
|
45
45
|
"@atlaskit/theme": "^12.6.0",
|
|
46
|
-
"@atlaskit/tokens": "^1.
|
|
46
|
+
"@atlaskit/tokens": "^1.42.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@emotion/react": "^11.7.1",
|
|
49
49
|
"uuid": "^3.1.0"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
61
61
|
"@testing-library/react": "^12.1.5",
|
|
62
62
|
"react-dom": "^16.8.0",
|
|
63
|
-
"typescript": "~4.
|
|
63
|
+
"typescript": "~5.4.2",
|
|
64
64
|
"wait-for-expect": "^1.2.0"
|
|
65
65
|
},
|
|
66
66
|
"techstack": {
|
|
@@ -89,11 +89,9 @@
|
|
|
89
89
|
"ui-components": [
|
|
90
90
|
"lite-mode"
|
|
91
91
|
],
|
|
92
|
-
"deprecation":
|
|
93
|
-
"no-deprecated-imports"
|
|
94
|
-
],
|
|
92
|
+
"deprecation": "no-deprecated-imports",
|
|
95
93
|
"styling": [
|
|
96
|
-
"
|
|
94
|
+
"emotion",
|
|
97
95
|
"emotion"
|
|
98
96
|
],
|
|
99
97
|
"imports": [
|
|
@@ -107,4 +105,4 @@
|
|
|
107
105
|
]
|
|
108
106
|
},
|
|
109
107
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
110
|
-
}
|
|
108
|
+
}
|