@box/threaded-annotations 1.80.1 → 1.81.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.
|
@@ -6,10 +6,10 @@ export interface MentionContextData {
|
|
|
6
6
|
getAvatarUrl?: (id: string) => string;
|
|
7
7
|
fetchCollaboratorState?: (user: UserContactType) => Promise<boolean>;
|
|
8
8
|
/**
|
|
9
|
-
* Lazily resolves a user's email by ID
|
|
10
|
-
* when the mention doesn't already carry an email attribute.
|
|
9
|
+
* Lazily resolves a user's email by ID (and optionally name).
|
|
10
|
+
* Called during mention click when the mention doesn't already carry an email attribute.
|
|
11
11
|
*/
|
|
12
|
-
fetchEmail?: (userId: string) => Promise<string>;
|
|
12
|
+
fetchEmail?: (userId: string, userName?: string) => Promise<string>;
|
|
13
13
|
/**
|
|
14
14
|
* The ID of the user whose collaboration popover should be open, or null if none.
|
|
15
15
|
*/
|
|
@@ -43,9 +43,9 @@ export interface ThreadedAnnotationsProps {
|
|
|
43
43
|
*/
|
|
44
44
|
fetchCollaboratorState?: (user: UserContactType) => Promise<boolean>;
|
|
45
45
|
/**
|
|
46
|
-
* Lazily resolves a user's email by ID when the mention doesn't carry one.
|
|
46
|
+
* Lazily resolves a user's email by ID (and optionally name) when the mention doesn't carry one.
|
|
47
47
|
* Called during mention click, before the popover opens.
|
|
48
48
|
*/
|
|
49
|
-
fetchEmail?: (userId: string) => Promise<string>;
|
|
49
|
+
fetchEmail?: (userId: string, userName?: string) => Promise<string>;
|
|
50
50
|
}
|
|
51
51
|
export declare const ThreadedAnnotations: ({ messageEditorOptions, messagesViewOptions, onEditorOpen, onEditorClose, onAnnotationsClose, isReplyAllowed, collaborationPopoverProps, getAvatarUrl, fetchCollaboratorState, fetchEmail, }: ThreadedAnnotationsProps) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/threaded-annotations",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.81.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@tanstack/react-virtual": "^3.10.8",
|
|
@@ -16,22 +16,22 @@
|
|
|
16
16
|
"uuid": "^9.0.1"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@box/blueprint-web": "^14.
|
|
20
|
-
"@box/blueprint-web-assets": "^4.114.
|
|
21
|
-
"@box/collaboration-popover": "^1.60.
|
|
22
|
-
"@box/readable-time": "^1.39.
|
|
23
|
-
"@box/user-selector": "^1.74.
|
|
19
|
+
"@box/blueprint-web": "^14.14.0",
|
|
20
|
+
"@box/blueprint-web-assets": "^4.114.5",
|
|
21
|
+
"@box/collaboration-popover": "^1.60.4",
|
|
22
|
+
"@box/readable-time": "^1.39.54",
|
|
23
|
+
"@box/user-selector": "^1.74.54",
|
|
24
24
|
"react": "^18.0.0",
|
|
25
25
|
"react-dom": "^18.0.0",
|
|
26
26
|
"react-intl": "^6.4.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@box/blueprint-web": "^14.
|
|
30
|
-
"@box/blueprint-web-assets": "^4.114.
|
|
29
|
+
"@box/blueprint-web": "^14.14.0",
|
|
30
|
+
"@box/blueprint-web-assets": "^4.114.5",
|
|
31
31
|
"@box/eslint-plugin-blueprint": "1.1.17",
|
|
32
|
-
"@box/readable-time": "^1.39.
|
|
33
|
-
"@box/storybook-utils": "^0.17.
|
|
34
|
-
"@box/user-selector": "^1.74.
|
|
32
|
+
"@box/readable-time": "^1.39.54",
|
|
33
|
+
"@box/storybook-utils": "^0.17.47",
|
|
34
|
+
"@box/user-selector": "^1.74.54",
|
|
35
35
|
"react": "^18.0.0",
|
|
36
36
|
"react-dom": "^18.0.0"
|
|
37
37
|
},
|