@atlaskit/editor-plugin-mentions 5.2.4 → 5.2.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/cjs/nodeviews/mentionNodeView.js +1 -0
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/cjs/ui/type-ahead/index.js +3 -1
- package/dist/es2019/nodeviews/mentionNodeView.js +1 -0
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/ui/type-ahead/index.js +3 -1
- package/dist/esm/nodeviews/mentionNodeView.js +1 -0
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/ui/type-ahead/index.js +3 -1
- package/dist/types/nodeviews/profileCardRenderer.d.ts +1 -1
- package/dist/types/types/index.d.ts +0 -1
- package/dist/types/ui/PopperWrapper.d.ts +2 -2
- package/dist/types/ui/ProfileCardComponent.d.ts +0 -1
- package/dist/types-ts4.5/nodeviews/profileCardRenderer.d.ts +1 -1
- package/dist/types-ts4.5/types/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/PopperWrapper.d.ts +2 -2
- package/dist/types-ts4.5/ui/ProfileCardComponent.d.ts +0 -1
- package/package.json +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -19,6 +19,7 @@ var _profileCardRenderer2 = require("./profileCardRenderer");
|
|
|
19
19
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
20
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
21
|
var primitiveClassName = 'editor-mention-primitive';
|
|
22
|
+
// @ts-ignore - TS1501 TypeScript 5.9.2 upgrade
|
|
22
23
|
var getAccessibilityLabelFromName = function getAccessibilityLabelFromName(name) {
|
|
23
24
|
return name.replace(/^@/, '');
|
|
24
25
|
};
|
|
@@ -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 = "5.2.
|
|
26
|
+
var PACKAGE_VERSION = "5.2.5";
|
|
27
27
|
var setProvider = function setProvider(provider) {
|
|
28
28
|
return function (state, dispatch) {
|
|
29
29
|
if (dispatch) {
|
|
@@ -91,7 +91,9 @@ var mentionToTypeaheadItem = exports.mentionToTypeaheadItem = function mentionTo
|
|
|
91
91
|
mention: mention
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
|
-
function memoize(fn
|
|
94
|
+
function memoize(fn
|
|
95
|
+
// eslint-disable-next-line @typescript-eslint/method-signature-style -- ignored via go/ees013 (to be fixed)
|
|
96
|
+
) {
|
|
95
97
|
// Cache results here
|
|
96
98
|
var seen = new Map();
|
|
97
99
|
function memoized(mention) {
|
|
@@ -6,6 +6,7 @@ import { isResolvingMentionProvider, MentionNameStatus } from '@atlaskit/mention
|
|
|
6
6
|
import { isRestricted } from '@atlaskit/mention/types';
|
|
7
7
|
import { profileCardRenderer } from './profileCardRenderer';
|
|
8
8
|
const primitiveClassName = 'editor-mention-primitive';
|
|
9
|
+
// @ts-ignore - TS1501 TypeScript 5.9.2 upgrade
|
|
9
10
|
const getAccessibilityLabelFromName = name => name.replace(/^@/u, '');
|
|
10
11
|
const toDOM = node => {
|
|
11
12
|
// packages/elements/mention/src/components/Mention/index.tsx
|
|
@@ -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 = "5.2.
|
|
15
|
+
const PACKAGE_VERSION = "5.2.5";
|
|
16
16
|
const setProvider = provider => (state, dispatch) => {
|
|
17
17
|
if (dispatch) {
|
|
18
18
|
dispatch(state.tr.setMeta(mentionPluginKey, {
|
|
@@ -69,7 +69,9 @@ export const mentionToTypeaheadItem = mention => {
|
|
|
69
69
|
mention
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
|
-
export function memoize(fn
|
|
72
|
+
export function memoize(fn
|
|
73
|
+
// eslint-disable-next-line @typescript-eslint/method-signature-style -- ignored via go/ees013 (to be fixed)
|
|
74
|
+
) {
|
|
73
75
|
// Cache results here
|
|
74
76
|
const seen = new Map();
|
|
75
77
|
function memoized(mention) {
|
|
@@ -12,6 +12,7 @@ import { isResolvingMentionProvider, MentionNameStatus } from '@atlaskit/mention
|
|
|
12
12
|
import { isRestricted } from '@atlaskit/mention/types';
|
|
13
13
|
import { profileCardRenderer } from './profileCardRenderer';
|
|
14
14
|
var primitiveClassName = 'editor-mention-primitive';
|
|
15
|
+
// @ts-ignore - TS1501 TypeScript 5.9.2 upgrade
|
|
15
16
|
var getAccessibilityLabelFromName = function getAccessibilityLabelFromName(name) {
|
|
16
17
|
return name.replace(/^@/, '');
|
|
17
18
|
};
|
|
@@ -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 = "5.2.
|
|
18
|
+
var PACKAGE_VERSION = "5.2.5";
|
|
19
19
|
var setProvider = function setProvider(provider) {
|
|
20
20
|
return function (state, dispatch) {
|
|
21
21
|
if (dispatch) {
|
|
@@ -80,7 +80,9 @@ export var mentionToTypeaheadItem = function mentionToTypeaheadItem(mention) {
|
|
|
80
80
|
mention: mention
|
|
81
81
|
};
|
|
82
82
|
};
|
|
83
|
-
export function memoize(fn
|
|
83
|
+
export function memoize(fn
|
|
84
|
+
// eslint-disable-next-line @typescript-eslint/method-signature-style -- ignored via go/ees013 (to be fixed)
|
|
85
|
+
) {
|
|
84
86
|
// Cache results here
|
|
85
87
|
var seen = new Map();
|
|
86
88
|
function memoized(mention) {
|
|
@@ -5,7 +5,7 @@ import type { MentionsPlugin } from '../mentionsPluginType';
|
|
|
5
5
|
import { type MentionPluginOptions } from '../types';
|
|
6
6
|
export declare const profileCardRenderer: ({ dom, options, portalProviderAPI, node, api, }: {
|
|
7
7
|
dom: Node;
|
|
8
|
-
options?:
|
|
8
|
+
options?: MentionPluginOptions;
|
|
9
9
|
portalProviderAPI: PortalProviderAPI;
|
|
10
10
|
node: PMNode;
|
|
11
11
|
api: ExtractInjectionAPI<MentionsPlugin> | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
3
2
|
import type { Providers, ProfilecardProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
3
|
import type { TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
@@ -10,8 +10,8 @@ interface Props {
|
|
|
10
10
|
*/
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
}
|
|
13
|
-
export declare const RepositionOnUpdate: ({ children, update, }:
|
|
14
|
-
update: PopperChildrenProps[
|
|
13
|
+
export declare const RepositionOnUpdate: ({ children, update, }: PropsWithChildren<{
|
|
14
|
+
update: PopperChildrenProps["update"];
|
|
15
15
|
}>) => React.ReactNode;
|
|
16
16
|
/**
|
|
17
17
|
* A popup wrapper to match the behaviour of `@atlaskit/popup`
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ProfilecardProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
2
|
import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
3
|
import type { ProfileCardClientData, TeamCentralReportingLinesData } from '@atlaskit/profilecard/types';
|
|
@@ -5,7 +5,7 @@ import type { MentionsPlugin } from '../mentionsPluginType';
|
|
|
5
5
|
import { type MentionPluginOptions } from '../types';
|
|
6
6
|
export declare const profileCardRenderer: ({ dom, options, portalProviderAPI, node, api, }: {
|
|
7
7
|
dom: Node;
|
|
8
|
-
options?:
|
|
8
|
+
options?: MentionPluginOptions;
|
|
9
9
|
portalProviderAPI: PortalProviderAPI;
|
|
10
10
|
node: PMNode;
|
|
11
11
|
api: ExtractInjectionAPI<MentionsPlugin> | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
3
2
|
import type { Providers, ProfilecardProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
3
|
import type { TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
@@ -10,8 +10,8 @@ interface Props {
|
|
|
10
10
|
*/
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
}
|
|
13
|
-
export declare const RepositionOnUpdate: ({ children, update, }:
|
|
14
|
-
update: PopperChildrenProps[
|
|
13
|
+
export declare const RepositionOnUpdate: ({ children, update, }: PropsWithChildren<{
|
|
14
|
+
update: PopperChildrenProps["update"];
|
|
15
15
|
}>) => React.ReactNode;
|
|
16
16
|
/**
|
|
17
17
|
* A popup wrapper to match the behaviour of `@atlaskit/popup`
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ProfilecardProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
2
|
import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
3
|
import type { ProfileCardClientData, TeamCentralReportingLinesData } from '@atlaskit/profilecard/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.6",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"@atlaskit/editor-plugin-selection": "^3.0.0",
|
|
41
41
|
"@atlaskit/editor-plugin-type-ahead": "^3.1.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
43
|
-
"@atlaskit/icon": "^27.
|
|
43
|
+
"@atlaskit/icon": "^27.12.0",
|
|
44
44
|
"@atlaskit/link": "^3.2.0",
|
|
45
45
|
"@atlaskit/mention": "^24.2.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/popper": "^7.1.0",
|
|
48
48
|
"@atlaskit/portal": "^5.1.0",
|
|
49
|
-
"@atlaskit/profilecard": "^24.
|
|
49
|
+
"@atlaskit/profilecard": "^24.5.0",
|
|
50
50
|
"@atlaskit/theme": "^19.0.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^11.0.0",
|
|
52
52
|
"@atlaskit/tokens": "^6.0.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
54
|
"@compiled/react": "^0.18.3",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"uuid": "^3.1.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@atlaskit/editor-common": "^107.
|
|
60
|
+
"@atlaskit/editor-common": "^107.25.0",
|
|
61
61
|
"react": "^18.2.0",
|
|
62
62
|
"react-dom": "^18.2.0",
|
|
63
63
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -67,7 +67,6 @@
|
|
|
67
67
|
"@atlaskit/ssr": "workspace:^",
|
|
68
68
|
"@atlaskit/visual-regression": "workspace:^",
|
|
69
69
|
"@testing-library/react": "^13.4.0",
|
|
70
|
-
"typescript": "~5.4.2",
|
|
71
70
|
"wait-for-expect": "^1.2.0"
|
|
72
71
|
},
|
|
73
72
|
"techstack": {
|