@atlaskit/editor-plugin-mentions 10.0.0 → 10.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.
Files changed (31) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/pm-plugins/main.js +1 -1
  3. package/dist/cjs/pm-plugins/mentionPlaceholder.js +1 -0
  4. package/dist/cjs/ui/InviteItem/InviteItemWithEmailDomain.js +4 -1
  5. package/dist/cjs/ui/InviteItem/index.js +4 -1
  6. package/dist/cjs/ui/ToolbarMention/index.js +3 -2
  7. package/dist/es2019/pm-plugins/main.js +1 -1
  8. package/dist/es2019/pm-plugins/mentionPlaceholder.js +1 -0
  9. package/dist/es2019/ui/InviteItem/InviteItemWithEmailDomain.js +4 -1
  10. package/dist/es2019/ui/InviteItem/index.js +4 -1
  11. package/dist/es2019/ui/ToolbarMention/index.js +4 -1
  12. package/dist/esm/pm-plugins/main.js +1 -1
  13. package/dist/esm/pm-plugins/mentionPlaceholder.js +1 -0
  14. package/dist/esm/ui/InviteItem/InviteItemWithEmailDomain.js +4 -1
  15. package/dist/esm/ui/InviteItem/index.js +4 -1
  16. package/dist/esm/ui/ToolbarMention/index.js +3 -2
  17. package/dist/types/nodeviews/mentionNodeSpec.d.ts +2 -1
  18. package/dist/types/pm-plugins/mentionPlaceholder.d.ts +1 -1
  19. package/dist/types/ui/InlineInviteRecaptchaContainer.d.ts +1 -1
  20. package/dist/types/ui/InviteItem/InviteItemWithEmailDomain.d.ts +3 -3
  21. package/dist/types/ui/InviteItem/index.d.ts +3 -3
  22. package/dist/types/ui/ProfileCardComponent.d.ts +1 -1
  23. package/dist/types/ui/ToolbarMention/index.d.ts +3 -3
  24. package/dist/types-ts4.5/nodeviews/mentionNodeSpec.d.ts +2 -1
  25. package/dist/types-ts4.5/pm-plugins/mentionPlaceholder.d.ts +1 -1
  26. package/dist/types-ts4.5/ui/InlineInviteRecaptchaContainer.d.ts +1 -1
  27. package/dist/types-ts4.5/ui/InviteItem/InviteItemWithEmailDomain.d.ts +3 -3
  28. package/dist/types-ts4.5/ui/InviteItem/index.d.ts +3 -3
  29. package/dist/types-ts4.5/ui/ProfileCardComponent.d.ts +1 -1
  30. package/dist/types-ts4.5/ui/ToolbarMention/index.d.ts +3 -3
  31. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-plugin-mentions
2
2
 
3
+ ## 10.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 10.0.0
4
10
 
5
11
  ### Patch Changes
@@ -23,7 +23,7 @@ var ACTIONS = exports.ACTIONS = {
23
23
  SET_PROVIDER: 'SET_PROVIDER'
24
24
  };
25
25
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
26
- var PACKAGE_VERSION = "9.4.5";
26
+ var PACKAGE_VERSION = "10.0.0";
27
27
  var setProvider = function setProvider(provider) {
28
28
  return function (state, dispatch) {
29
29
  if (dispatch) {
@@ -15,6 +15,7 @@ var MENTION_PLACEHOLDER_ACTIONS = exports.MENTION_PLACEHOLDER_ACTIONS = {
15
15
  SHOW_PLACEHOLDER: 'SHOW_PLACEHOLDER',
16
16
  HIDE_PLACEHOLDER: 'HIDE_PLACEHOLDER'
17
17
  };
18
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
18
19
  function createMentionPlaceholderPlugin() {
19
20
  return new _safePlugin.SafePlugin({
20
21
  key: mentionPlaceholderPluginKey,
@@ -195,4 +195,7 @@ var InviteItemWithEmailDomain = function InviteItemWithEmailDomain(_ref) {
195
195
  className: (0, _runtime.ax)([style.byline])
196
196
  }, getByline())))));
197
197
  };
198
- var _default = exports.default = (0, _reactIntlNext.injectIntl)(InviteItemWithEmailDomain);
198
+
199
+ // eslint-disable-next-line @typescript-eslint/ban-types
200
+ var _default_1 = (0, _reactIntlNext.injectIntl)(InviteItemWithEmailDomain);
201
+ var _default = exports.default = _default_1;
@@ -118,4 +118,7 @@ var InviteItem = function InviteItem(_ref) {
118
118
  }
119
119
  })))));
120
120
  };
121
- var _default = exports.default = (0, _reactIntlNext.injectIntl)(InviteItem);
121
+
122
+ // eslint-disable-next-line @typescript-eslint/ban-types
123
+ var _default_1 = (0, _reactIntlNext.injectIntl)(InviteItem);
124
+ var _default = exports.default = _default_1;
@@ -57,5 +57,6 @@ var ToolbarMention = /*#__PURE__*/function (_PureComponent) {
57
57
  });
58
58
  }
59
59
  }]);
60
- }(_react.PureComponent);
61
- var _default = exports.default = (0, _reactIntlNext.injectIntl)(ToolbarMention);
60
+ }(_react.PureComponent); // eslint-disable-next-line @typescript-eslint/ban-types
61
+ var _default_1 = (0, _reactIntlNext.injectIntl)(ToolbarMention);
62
+ var _default = exports.default = _default_1;
@@ -12,7 +12,7 @@ export const ACTIONS = {
12
12
  SET_PROVIDER: 'SET_PROVIDER'
13
13
  };
14
14
  const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
15
- const PACKAGE_VERSION = "9.4.5";
15
+ const PACKAGE_VERSION = "10.0.0";
16
16
  const setProvider = provider => (state, dispatch) => {
17
17
  if (dispatch) {
18
18
  dispatch(state.tr.setMeta(mentionPluginKey, {
@@ -7,6 +7,7 @@ export const MENTION_PLACEHOLDER_ACTIONS = {
7
7
  SHOW_PLACEHOLDER: 'SHOW_PLACEHOLDER',
8
8
  HIDE_PLACEHOLDER: 'HIDE_PLACEHOLDER'
9
9
  };
10
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
10
11
  export function createMentionPlaceholderPlugin() {
11
12
  return new SafePlugin({
12
13
  key: mentionPlaceholderPluginKey,
@@ -179,4 +179,7 @@ const InviteItemWithEmailDomain = ({
179
179
  className: ax([style.byline])
180
180
  }, getByline())))));
181
181
  };
182
- export default injectIntl(InviteItemWithEmailDomain);
182
+
183
+ // eslint-disable-next-line @typescript-eslint/ban-types
184
+ const _default_1 = injectIntl(InviteItemWithEmailDomain);
185
+ export default _default_1;
@@ -104,4 +104,7 @@ const InviteItem = ({
104
104
  }
105
105
  })))));
106
106
  };
107
- export default injectIntl(InviteItem);
107
+
108
+ // eslint-disable-next-line @typescript-eslint/ban-types
109
+ const _default_1 = injectIntl(InviteItem);
110
+ export default _default_1;
@@ -32,4 +32,7 @@ class ToolbarMention extends PureComponent {
32
32
  });
33
33
  }
34
34
  }
35
- export default injectIntl(ToolbarMention);
35
+
36
+ // eslint-disable-next-line @typescript-eslint/ban-types
37
+ const _default_1 = injectIntl(ToolbarMention);
38
+ export default _default_1;
@@ -15,7 +15,7 @@ export var ACTIONS = {
15
15
  SET_PROVIDER: 'SET_PROVIDER'
16
16
  };
17
17
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
18
- var PACKAGE_VERSION = "9.4.5";
18
+ var PACKAGE_VERSION = "10.0.0";
19
19
  var setProvider = function setProvider(provider) {
20
20
  return function (state, dispatch) {
21
21
  if (dispatch) {
@@ -7,6 +7,7 @@ export var MENTION_PLACEHOLDER_ACTIONS = {
7
7
  SHOW_PLACEHOLDER: 'SHOW_PLACEHOLDER',
8
8
  HIDE_PLACEHOLDER: 'HIDE_PLACEHOLDER'
9
9
  };
10
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
10
11
  export function createMentionPlaceholderPlugin() {
11
12
  return new SafePlugin({
12
13
  key: mentionPlaceholderPluginKey,
@@ -186,4 +186,7 @@ var InviteItemWithEmailDomain = function InviteItemWithEmailDomain(_ref) {
186
186
  className: ax([style.byline])
187
187
  }, getByline())))));
188
188
  };
189
- export default injectIntl(InviteItemWithEmailDomain);
189
+
190
+ // eslint-disable-next-line @typescript-eslint/ban-types
191
+ var _default_1 = injectIntl(InviteItemWithEmailDomain);
192
+ export default _default_1;
@@ -109,4 +109,7 @@ var InviteItem = function InviteItem(_ref) {
109
109
  }
110
110
  })))));
111
111
  };
112
- export default injectIntl(InviteItem);
112
+
113
+ // eslint-disable-next-line @typescript-eslint/ban-types
114
+ var _default_1 = injectIntl(InviteItem);
115
+ export default _default_1;
@@ -48,5 +48,6 @@ var ToolbarMention = /*#__PURE__*/function (_PureComponent) {
48
48
  });
49
49
  }
50
50
  }]);
51
- }(PureComponent);
52
- export default injectIntl(ToolbarMention);
51
+ }(PureComponent); // eslint-disable-next-line @typescript-eslint/ban-types
52
+ var _default_1 = injectIntl(ToolbarMention);
53
+ export default _default_1;
@@ -1,7 +1,8 @@
1
+ import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
1
2
  /**
2
3
  * Wrapper for ADF mention node spec to augment toDOM implementation
3
4
  * with fallback UI for lazy node view rendering / window virtualization
4
5
  * @nodeSpecException:toDOM patch
5
6
  * @returns
6
7
  */
7
- export declare const mentionNodeSpec: () => import("prosemirror-model").NodeSpec;
8
+ export declare const mentionNodeSpec: () => NodeSpec;
@@ -1,6 +1,6 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- export declare const mentionPlaceholderPluginKey: PluginKey<any>;
3
+ export declare const mentionPlaceholderPluginKey: PluginKey;
4
4
  export declare const MENTION_PLACEHOLDER_ACTIONS: {
5
5
  SHOW_PLACEHOLDER: string;
6
6
  HIDE_PLACEHOLDER: string;
@@ -11,5 +11,5 @@ interface Props {
11
11
  * and wires showRecaptcha to the provider. When user clicks invite item, type-ahead calls
12
12
  * mentionProvider.showInlineInviteRecaptcha(email) which passes email to the component.
13
13
  */
14
- export declare const InlineInviteRecaptchaContainer: ({ mentionProvider, api }: Props) => JSX.Element | null;
14
+ export declare const InlineInviteRecaptchaContainer: ({ mentionProvider, api, }: Props) => JSX.Element | null;
15
15
  export {};
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import type { SyntheticEvent } from 'react';
7
7
  import React from 'react';
8
- import type { WrappedComponentProps } from 'react-intl-next';
8
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
9
9
  import type { UserRole } from '@atlaskit/mention';
10
10
  import type { MentionDescription } from '@atlaskit/mention/resource';
11
11
  interface OnMentionEvent {
@@ -24,7 +24,7 @@ interface Props {
24
24
  selected?: boolean;
25
25
  userRole?: UserRole;
26
26
  }
27
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
27
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
28
28
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
29
29
  };
30
- export default _default;
30
+ export default _default_1;
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import type { SyntheticEvent } from 'react';
6
6
  import React from 'react';
7
- import type { WrappedComponentProps } from 'react-intl-next';
7
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
8
8
  import type { UserRole } from '@atlaskit/mention';
9
9
  import type { MentionDescription } from '@atlaskit/mention/resource';
10
10
  interface OnMentionEvent {
@@ -21,7 +21,7 @@ interface Props {
21
21
  selected?: boolean;
22
22
  userRole?: UserRole;
23
23
  }
24
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
24
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
25
25
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
26
26
  };
27
- export default _default;
27
+ export default _default_1;
@@ -5,7 +5,7 @@ interface ProfileCardStateProps {
5
5
  id: string | undefined;
6
6
  provider: ProfilecardProvider | undefined;
7
7
  }
8
- export declare const useProfileCardState: ({ id, provider }: ProfileCardStateProps) => {
8
+ export declare const useProfileCardState: ({ id, provider, }: ProfileCardStateProps) => {
9
9
  data: ProfileCardClientData | undefined;
10
10
  reportingLinesData: TeamCentralReportingLinesData | undefined;
11
11
  shouldShowGiveKudos: boolean;
@@ -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 { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  interface Props {
5
5
  editorView?: EditorView;
@@ -7,7 +7,7 @@ interface Props {
7
7
  onInsertMention: () => void;
8
8
  testId?: string;
9
9
  }
10
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
10
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
11
11
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
12
12
  };
13
- export default _default;
13
+ export default _default_1;
@@ -1,7 +1,8 @@
1
+ import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
1
2
  /**
2
3
  * Wrapper for ADF mention node spec to augment toDOM implementation
3
4
  * with fallback UI for lazy node view rendering / window virtualization
4
5
  * @nodeSpecException:toDOM patch
5
6
  * @returns
6
7
  */
7
- export declare const mentionNodeSpec: () => import("prosemirror-model").NodeSpec;
8
+ export declare const mentionNodeSpec: () => NodeSpec;
@@ -1,6 +1,6 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- export declare const mentionPlaceholderPluginKey: PluginKey<any>;
3
+ export declare const mentionPlaceholderPluginKey: PluginKey;
4
4
  export declare const MENTION_PLACEHOLDER_ACTIONS: {
5
5
  SHOW_PLACEHOLDER: string;
6
6
  HIDE_PLACEHOLDER: string;
@@ -11,5 +11,5 @@ interface Props {
11
11
  * and wires showRecaptcha to the provider. When user clicks invite item, type-ahead calls
12
12
  * mentionProvider.showInlineInviteRecaptcha(email) which passes email to the component.
13
13
  */
14
- export declare const InlineInviteRecaptchaContainer: ({ mentionProvider, api }: Props) => JSX.Element | null;
14
+ export declare const InlineInviteRecaptchaContainer: ({ mentionProvider, api, }: Props) => JSX.Element | null;
15
15
  export {};
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import type { SyntheticEvent } from 'react';
7
7
  import React from 'react';
8
- import type { WrappedComponentProps } from 'react-intl-next';
8
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
9
9
  import type { UserRole } from '@atlaskit/mention';
10
10
  import type { MentionDescription } from '@atlaskit/mention/resource';
11
11
  interface OnMentionEvent {
@@ -24,7 +24,7 @@ interface Props {
24
24
  selected?: boolean;
25
25
  userRole?: UserRole;
26
26
  }
27
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
27
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
28
28
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
29
29
  };
30
- export default _default;
30
+ export default _default_1;
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import type { SyntheticEvent } from 'react';
6
6
  import React from 'react';
7
- import type { WrappedComponentProps } from 'react-intl-next';
7
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
8
8
  import type { UserRole } from '@atlaskit/mention';
9
9
  import type { MentionDescription } from '@atlaskit/mention/resource';
10
10
  interface OnMentionEvent {
@@ -21,7 +21,7 @@ interface Props {
21
21
  selected?: boolean;
22
22
  userRole?: UserRole;
23
23
  }
24
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
24
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
25
25
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
26
26
  };
27
- export default _default;
27
+ export default _default_1;
@@ -5,7 +5,7 @@ interface ProfileCardStateProps {
5
5
  id: string | undefined;
6
6
  provider: ProfilecardProvider | undefined;
7
7
  }
8
- export declare const useProfileCardState: ({ id, provider }: ProfileCardStateProps) => {
8
+ export declare const useProfileCardState: ({ id, provider, }: ProfileCardStateProps) => {
9
9
  data: ProfileCardClientData | undefined;
10
10
  reportingLinesData: TeamCentralReportingLinesData | undefined;
11
11
  shouldShowGiveKudos: boolean;
@@ -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 { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  interface Props {
5
5
  editorView?: EditorView;
@@ -7,7 +7,7 @@ interface Props {
7
7
  onInsertMention: () => void;
8
8
  testId?: string;
9
9
  }
10
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
10
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
11
11
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
12
12
  };
13
- export default _default;
13
+ export default _default_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "10.0.0",
3
+ "version": "10.0.1",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/portal": "^5.2.0",
47
47
  "@atlaskit/profilecard": "^24.44.0",
48
48
  "@atlaskit/theme": "^22.0.0",
49
- "@atlaskit/tmp-editor-statsig": "^35.10.0",
49
+ "@atlaskit/tmp-editor-statsig": "^36.0.0",
50
50
  "@atlaskit/tokens": "^11.1.0",
51
51
  "@atlaskit/user-picker": "^11.24.0",
52
52
  "@babel/runtime": "^7.0.0",