@box/threaded-annotations 3.0.5 → 3.1.0

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.
@@ -7,44 +7,46 @@ import s from "clsx";
7
7
  import { useCallback as c, useEffect as l, useMemo as u, useRef as d } from "react";
8
8
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
9
9
  import '../styles/threaded-annotations2.css';var m = {
10
- threadedAnnotations: "_threadedAnnotations_1ujic_1",
11
- expandable: "_expandable_1ujic_10",
12
- annotations: "_annotations_1ujic_18"
13
- }, h = ({ messages: r, isResolved: h = !1, resolvedBy: g, resolvedAt: _, maxCharacterCount: v, onDelete: y, onThreadDelete: b, onAvatarClick: x, onCopyLink: S, onEdit: C, onEditError: w, onResolve: T, onUnresolve: E, onPost: D, onPostError: O, userSelectorProps: k, onEditorOpenChange: A, annotationTarget: j, onAnnotationBadgeClick: M, originalContentDeleted: N }) => {
14
- let { viewState: P, dispatch: F, editingMessageId: I, replyMention: L, isReplyDisabled: R, isAnnotations: z } = i(), B = d(null), V = P !== n.Collapsed, H = r.length > 2, U = P === n.Collapsed && (H || !R && !h);
10
+ threadedAnnotations: "_threadedAnnotations_16hhz_1",
11
+ expandable: "_expandable_16hhz_10",
12
+ annotations: "_annotations_16hhz_18",
13
+ highlighted: "_highlighted_16hhz_18"
14
+ }, h = ({ messages: r, isResolved: h = !1, resolvedBy: g, resolvedAt: _, maxCharacterCount: v, onDelete: y, onThreadDelete: b, onAvatarClick: x, onCopyLink: S, onEdit: C, onEditError: w, onResolve: T, onUnresolve: E, onPost: D, onPostError: O, userSelectorProps: k, onEditorOpenChange: A, annotationTarget: j, onAnnotationBadgeClick: M, originalContentDeleted: N, isHighlighted: P = !1 }) => {
15
+ let { viewState: F, dispatch: I, editingMessageId: L, replyMention: R, isReplyDisabled: z, isAnnotations: B } = i(), V = d(null), H = F !== n.Collapsed, U = r.length > 2, W = F === n.Collapsed && (U || !z && !h);
15
16
  l(() => {
16
- I && !r.some((e) => e.id === I) && F({ type: "CLEAR_EDIT" });
17
+ L && !r.some((e) => e.id === L) && I({ type: "CLEAR_EDIT" });
17
18
  }, [
18
- I,
19
+ L,
19
20
  r,
20
- F
21
+ I
21
22
  ]), l(() => {
22
- A?.(V);
23
- }, [V, A]), l(() => {
24
- if (!V) return;
23
+ A?.(H);
24
+ }, [H, A]), l(() => {
25
+ if (!H) return;
25
26
  let t = `[${Object.keys(e)[0]}]`, n = (e) => {
26
27
  let n = e.target;
27
- B.current?.contains(n) || document.querySelector(t)?.contains(n) || F({ type: "COLLAPSE" });
28
+ V.current?.contains(n) || document.querySelector(t)?.contains(n) || I({ type: "COLLAPSE" });
28
29
  };
29
30
  return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
30
- }, [V, F]);
31
- let W = r.length === 0, G = c(() => F({ type: "CLEAR_MENTION" }), [F]), K = u(() => L ? o(L) : null, [L]), q = c((e) => {
32
- if (!U) return;
31
+ }, [H, I]);
32
+ let G = r.length === 0, K = c(() => I({ type: "CLEAR_MENTION" }), [I]), q = u(() => R ? o(R) : null, [R]), J = c((e) => {
33
+ if (!W) return;
33
34
  let t = e.target;
34
- !e.currentTarget.contains(t) || t.closest("[data-no-expand]") || F({ type: "EXPAND" });
35
- }, [U, F]);
36
- return z && W ? /* @__PURE__ */ f(t, {
35
+ !e.currentTarget.contains(t) || t.closest("[data-no-expand]") || I({ type: "EXPAND" });
36
+ }, [W, I]);
37
+ return B && G ? /* @__PURE__ */ f(t, {
37
38
  isFirstAnnotation: !0,
38
39
  maxCharacterCount: v,
39
40
  onPost: D,
40
41
  onPostError: O,
41
- onPostSuccess: G,
42
+ onPostSuccess: K,
42
43
  userSelectorProps: k
43
44
  }) : /* @__PURE__ */ p("div", {
44
- ref: B,
45
- className: s(m.threadedAnnotations, U && m.expandable, z && m.annotations),
46
- "data-thread-expandable": U ? !0 : void 0,
47
- onClick: U ? q : void 0,
45
+ ref: V,
46
+ className: s(m.threadedAnnotations, W && m.expandable, B && m.annotations, P && m.highlighted),
47
+ "data-thread-expandable": W ? !0 : void 0,
48
+ "data-thread-highlighted": P ? !0 : void 0,
49
+ onClick: W ? J : void 0,
48
50
  children: [/* @__PURE__ */ f(a, {
49
51
  messages: r,
50
52
  isResolved: h,
@@ -63,12 +65,12 @@ import '../styles/threaded-annotations2.css';var m = {
63
65
  annotationTarget: j,
64
66
  onAnnotationBadgeClick: M,
65
67
  originalContentDeleted: N
66
- }), P === n.Composing && /* @__PURE__ */ f(t, {
67
- initialContent: K,
68
+ }), F === n.Composing && /* @__PURE__ */ f(t, {
69
+ initialContent: q,
68
70
  maxCharacterCount: v,
69
71
  onPost: D,
70
72
  onPostError: O,
71
- onPostSuccess: G,
73
+ onPostSuccess: K,
72
74
  isReply: !0,
73
75
  userSelectorProps: k
74
76
  })]
@@ -13,6 +13,7 @@ export default {
13
13
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "এই {type,select,annotation{অ্যানোটেশন} other{মন্তব্য}}{hasReplies,select,true{ এবং জবাব} other{}} মুছবেন? এই পদক্ষেপটি পূর্বাবস্থায় ফেরানো যাবে না।",
14
14
  "groupSharedFeatures.threadedAnnotations.edit": "সম্পাদনা করুন",
15
15
  "groupSharedFeatures.threadedAnnotations.edited": "(সম্পাদনা করা হয়েছে)",
16
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "সম্পাদনা করা হয়েছে {time}",
16
17
  "groupSharedFeatures.threadedAnnotations.hideReplies": "উত্তর লুকান",
17
18
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "সমাধান করা হয়েছে হিসাবে চিহ্নিত করা হয়েছে",
18
19
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "বাতিল করুন",
@@ -39,7 +40,7 @@ export default {
39
40
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "সমাধান করুন",
40
41
  "groupSharedFeatures.threadedAnnotations.resolvedStateAriaLabel": "রেজোলিউশন স্ট্যাটাস মেসেজ",
41
42
  "groupSharedFeatures.threadedAnnotations.seeMore": "আরও দেখুন",
42
- "groupSharedFeatures.threadedAnnotations.showMoreReplies": "{count,plural,one{# more reply} other{# more replies}}",
43
+ "groupSharedFeatures.threadedAnnotations.showMoreReplies": "{count,plural,one{আরও #টি জবাব} other{আরও #টি জবাব}}",
43
44
  "groupSharedFeatures.threadedAnnotations.showReplies": "{number,plural,one{#টি জবাব দেখান} other{আরও #টি জবাব দেখান}}",
44
45
  "groupSharedFeatures.threadedAnnotations.showRepliesButtonAriaLabel": "উত্তর বোতাম",
45
46
  "groupSharedFeatures.threadedAnnotations.textMentionAriaLabel": "ব্যবহারকারীর উল্লেখ করুন",
@@ -13,6 +13,7 @@ export default {
13
13
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "Slet denne {type,select,annotation{anmærkning} other{kommentar}}{hasReplies,select,true{ og svar} other{}}? Denne handling kan ikke fortrydes.",
14
14
  "groupSharedFeatures.threadedAnnotations.edit": "Rediger",
15
15
  "groupSharedFeatures.threadedAnnotations.edited": "(Redigeret)",
16
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "Redigeret {time}",
16
17
  "groupSharedFeatures.threadedAnnotations.hideReplies": "Skjul svar",
17
18
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "markeret som løst",
18
19
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "Annuller",
@@ -13,6 +13,7 @@ export default {
13
13
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "Diese(n) {type,select,annotation{Anmerkung} other{Kommentar}}{hasReplies,select,true{ und Antworten} other{}} löschen? Diese Aktion kann nicht rückgängig gemacht werden.",
14
14
  "groupSharedFeatures.threadedAnnotations.edit": "Bearbeiten",
15
15
  "groupSharedFeatures.threadedAnnotations.edited": "(Bearbeitet)",
16
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "Bearbeitet {time}",
16
17
  "groupSharedFeatures.threadedAnnotations.hideReplies": "Antworten ausblenden",
17
18
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "Als gelöst markiert",
18
19
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "Abbrechen",
@@ -0,0 +1,52 @@
1
+ // THIS IS A GENERATED FILE. DO NOT EDIT MANUALLY OR YOUR CHANGES WILL BE OVERWRITTEN
2
+ export default {
3
+ "boxui.threadedAnnotations.threadedAnnotationsAriaLabel": "Threaded annotation",
4
+ "groupSharedFeatures.threadedAnnotations.annotationMessageAriaLabel": "Annotation message",
5
+ "groupSharedFeatures.threadedAnnotations.annotationPage": "Page {number}",
6
+ "groupSharedFeatures.threadedAnnotations.cancelDeleteButtonAriaLabel": "Cancel delete button",
7
+ "groupSharedFeatures.threadedAnnotations.copyLink": "Copy link",
8
+ "groupSharedFeatures.threadedAnnotations.delete": "Delete",
9
+ "groupSharedFeatures.threadedAnnotations.deleteButtonAriaLabel": "Delete button",
10
+ "groupSharedFeatures.threadedAnnotations.deleteCancel": "Cancel",
11
+ "groupSharedFeatures.threadedAnnotations.deleteCommentQuestion": "Do you want to delete this comment?",
12
+ "groupSharedFeatures.threadedAnnotations.deleteConfirmation": "Delete confirmation",
13
+ "groupSharedFeatures.threadedAnnotations.deleteQuestion": "Delete this {type, select, annotation {annotation} other {comment}}{hasReplies, select, true { and replies} other {}}? This action can't be undone.",
14
+ "groupSharedFeatures.threadedAnnotations.edit": "Edit",
15
+ "groupSharedFeatures.threadedAnnotations.edited": "(Edited)",
16
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "Edited {time}",
17
+ "groupSharedFeatures.threadedAnnotations.hideReplies": "Hide replies",
18
+ "groupSharedFeatures.threadedAnnotations.markedAsResolved": "marked as resolved",
19
+ "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "Cancel",
20
+ "groupSharedFeatures.threadedAnnotations.messageEditor.cancelButtonAriaLabel": "Cancel button",
21
+ "groupSharedFeatures.threadedAnnotations.messageEditor.characterCount": "{count}/{maxCount}",
22
+ "groupSharedFeatures.threadedAnnotations.messageEditor.characterLimitExceeded": "Your comment is {excess, plural, one {# character} other {# characters}} too long",
23
+ "groupSharedFeatures.threadedAnnotations.messageEditor.editorContentAriaLabel": "Message editor",
24
+ "groupSharedFeatures.threadedAnnotations.messageEditor.placeholderAddComment": "Add a comment, @ to mention",
25
+ "groupSharedFeatures.threadedAnnotations.messageEditor.placeholderAriaLabel": "Message input placeholder",
26
+ "groupSharedFeatures.threadedAnnotations.messageEditor.placeholderPrefix": "Write a comment or",
27
+ "groupSharedFeatures.threadedAnnotations.messageEditor.placeholderPrefixReply": "Write a reply or",
28
+ "groupSharedFeatures.threadedAnnotations.messageEditor.placeholderReply": "Reply, @ to mention",
29
+ "groupSharedFeatures.threadedAnnotations.messageEditor.placeholderSuffix": "to mention",
30
+ "groupSharedFeatures.threadedAnnotations.messageEditor.post": "Post",
31
+ "groupSharedFeatures.threadedAnnotations.messageEditor.postButtonAriaLabel": "Post button",
32
+ "groupSharedFeatures.threadedAnnotations.messageEditor.postLoading": "Loading...",
33
+ "groupSharedFeatures.threadedAnnotations.messageEditor.save": "Save",
34
+ "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Saving...",
35
+ "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Message editor scroll container",
36
+ "groupSharedFeatures.threadedAnnotations.messageEditor.timestampToggleLabel": "Comment with timestamp",
37
+ "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "More options button",
38
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
39
+ "groupSharedFeatures.threadedAnnotations.reply": "Reply",
40
+ "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Reply button",
41
+ "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Resolve",
42
+ "groupSharedFeatures.threadedAnnotations.resolvedStateAriaLabel": "Resolution status message",
43
+ "groupSharedFeatures.threadedAnnotations.seeMore": "See More",
44
+ "groupSharedFeatures.threadedAnnotations.showMoreReplies": "{count, plural, one {# more reply} other {# more replies}}",
45
+ "groupSharedFeatures.threadedAnnotations.showReplies": "{number, plural, one {Show # reply} other {Show # more replies}}",
46
+ "groupSharedFeatures.threadedAnnotations.showRepliesButtonAriaLabel": "Reply button",
47
+ "groupSharedFeatures.threadedAnnotations.textMentionAriaLabel": "User mention",
48
+ "groupSharedFeatures.threadedAnnotations.textMessageAriaLabel": "Message text",
49
+ "groupSharedFeatures.threadedAnnotations.unresolveButtonAriaLabel": "Unresolve",
50
+ "groupSharedFeatures.threadedAnnotations.userAvatar": "User avatar",
51
+ "groupSharedFeatures.threadedAnnotations.userAvatarButtonAriaLabel": "View user profile button"
52
+ };
@@ -13,6 +13,7 @@ export default {
13
13
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "¿Desea eliminar {type,select,annotation{esta anotación} other{este comentario}} {hasReplies,select,true{ y las respuestas} other{}}? Esta acción no se puede deshacer.",
14
14
  "groupSharedFeatures.threadedAnnotations.edit": "Editar",
15
15
  "groupSharedFeatures.threadedAnnotations.edited": "(Editado)",
16
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "Editado {time}",
16
17
  "groupSharedFeatures.threadedAnnotations.hideReplies": "Ocultar respuestas",
17
18
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "marcado como resuelto",
18
19
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "Anular",
@@ -13,6 +13,7 @@ export default {
13
13
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "¿Desea eliminar {type,select,annotation{esta anotación} other{este comentario}} {hasReplies,select,true{ y las respuestas} other{}}? Esta acción no se puede deshacer.",
14
14
  "groupSharedFeatures.threadedAnnotations.edit": "Editar",
15
15
  "groupSharedFeatures.threadedAnnotations.edited": "(Editado)",
16
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "Editado {time}",
16
17
  "groupSharedFeatures.threadedAnnotations.hideReplies": "Ocultar respuestas",
17
18
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "marcado como resuelto",
18
19
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "Anular",
@@ -13,6 +13,7 @@ export default {
13
13
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "Poistetaanko tämä {type,select,annotation{huomautus} other{kommentti}}{hasReplies,select,true{ ja vastaukset} other{}}? Tätä toimintoa ei voi kumota.",
14
14
  "groupSharedFeatures.threadedAnnotations.edit": "Muokkaa",
15
15
  "groupSharedFeatures.threadedAnnotations.edited": "(Muokattu)",
16
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "Muokattu {time}",
16
17
  "groupSharedFeatures.threadedAnnotations.hideReplies": "Piilota vastaukset",
17
18
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "merkitty ratkaistuksi",
18
19
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "Peruuta",
@@ -39,7 +40,7 @@ export default {
39
40
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Ratkaise",
40
41
  "groupSharedFeatures.threadedAnnotations.resolvedStateAriaLabel": "Ratkaisun tilaviesti",
41
42
  "groupSharedFeatures.threadedAnnotations.seeMore": "Näytä lisää",
42
- "groupSharedFeatures.threadedAnnotations.showMoreReplies": "{count,plural,one{# more reply} other{# more replies}}",
43
+ "groupSharedFeatures.threadedAnnotations.showMoreReplies": "{count,plural,one{# lisää vastausta} other{# lisää vastauksia}}",
43
44
  "groupSharedFeatures.threadedAnnotations.showReplies": "{number,plural,one{Näytä # vastaus} other{Näytä # vastausta}}",
44
45
  "groupSharedFeatures.threadedAnnotations.showRepliesButtonAriaLabel": "Vastaa-painike",
45
46
  "groupSharedFeatures.threadedAnnotations.textMentionAriaLabel": "Käyttäjän maininta",
@@ -12,6 +12,7 @@ export default {
12
12
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "Supprimer ce/cette {type,select,annotation{l'annotation} other{le commentaire}}{hasReplies,select,true{ et les réponses} other{}} ? Cette action est irréversible.",
13
13
  "groupSharedFeatures.threadedAnnotations.edit": "Modifier",
14
14
  "groupSharedFeatures.threadedAnnotations.edited": "(Modifié)",
15
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "{time} modifié",
15
16
  "groupSharedFeatures.threadedAnnotations.hideReplies": "Masquer les réponses",
16
17
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "marqué en tant que résolu",
17
18
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "Annuler",
@@ -12,6 +12,7 @@ export default {
12
12
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "Supprimer ce/cette {type,select,annotation{l'annotation} other{le commentaire}}{hasReplies,select,true{ et les réponses} other{}} ? Cette action est irréversible.",
13
13
  "groupSharedFeatures.threadedAnnotations.edit": "Modifier",
14
14
  "groupSharedFeatures.threadedAnnotations.edited": "(Modifié)",
15
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "{time} modifié",
15
16
  "groupSharedFeatures.threadedAnnotations.hideReplies": "Masquer les réponses",
16
17
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "marqué en tant que résolu",
17
18
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "Annuler",
@@ -13,6 +13,7 @@ export default {
13
13
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "이 {type,select,annotation{주석} other{코멘트}} {hasReplies,select,true{및 답글} other{}}을(를) 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.",
14
14
  "groupSharedFeatures.threadedAnnotations.edit": "편집",
15
15
  "groupSharedFeatures.threadedAnnotations.edited": "(편집됨)",
16
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "{time}에 편집됨",
16
17
  "groupSharedFeatures.threadedAnnotations.hideReplies": "답글 숨기기",
17
18
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "해결된 상태로 표시됨",
18
19
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "취소",
@@ -13,6 +13,7 @@ export default {
13
13
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "Slette denne {type,select,annotation{merknad} other{kommentar}}{hasReplies,select,true{ og svar} other{}}? Denne handlingen kan ikke angres.",
14
14
  "groupSharedFeatures.threadedAnnotations.edit": "Rediger",
15
15
  "groupSharedFeatures.threadedAnnotations.edited": "(Redigert)",
16
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "Redigert {time}",
16
17
  "groupSharedFeatures.threadedAnnotations.hideReplies": "Skjul svar",
17
18
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "merket som løst",
18
19
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "Avbryt",
@@ -39,7 +40,7 @@ export default {
39
40
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Avklar",
40
41
  "groupSharedFeatures.threadedAnnotations.resolvedStateAriaLabel": "Melding om løsningsstatus",
41
42
  "groupSharedFeatures.threadedAnnotations.seeMore": "Se mer",
42
- "groupSharedFeatures.threadedAnnotations.showMoreReplies": "{count,plural,one{# more reply} other{# more replies}}",
43
+ "groupSharedFeatures.threadedAnnotations.showMoreReplies": "{count,plural,one{# flere svar} other{# flere svar}}",
43
44
  "groupSharedFeatures.threadedAnnotations.showReplies": "{number,plural,one{Vis # svar} other{Vis # flere svar}}",
44
45
  "groupSharedFeatures.threadedAnnotations.showRepliesButtonAriaLabel": "Svar-knapp",
45
46
  "groupSharedFeatures.threadedAnnotations.textMentionAriaLabel": "Brukerhenvisning",
@@ -13,6 +13,7 @@ export default {
13
13
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "Deze {type,select,annotation{annotatie} other{opmerking}} {hasReplies,select,true{ en reacties} other{}} verwijderen? Deze actie kan niet ongedaan worden gemaakt.",
14
14
  "groupSharedFeatures.threadedAnnotations.edit": "Bewerken",
15
15
  "groupSharedFeatures.threadedAnnotations.edited": "(Bewerkt)",
16
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "Bewerkt op {time}",
16
17
  "groupSharedFeatures.threadedAnnotations.hideReplies": "Reacties verbergen",
17
18
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "gemarkeerd als opgelost",
18
19
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "Annuleren",
@@ -13,6 +13,7 @@ export default {
13
13
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "Chcesz usunąć {type,select,annotation{uwagę} other{komentarz}}{hasReplies,select,true{ wraz z odpowiedziami} other{}}? Tego działania nie można cofnąć.",
14
14
  "groupSharedFeatures.threadedAnnotations.edit": "Edycja",
15
15
  "groupSharedFeatures.threadedAnnotations.edited": "(Edytowano)",
16
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "Edytowano {time}",
16
17
  "groupSharedFeatures.threadedAnnotations.hideReplies": "Ukryj odpowiedzi",
17
18
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "oznaczono jako rozwiązane",
18
19
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "Anuluj",
@@ -13,6 +13,7 @@ export default {
13
13
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "Excluir esta {type,select,annotation{anotação} other{comentário}}{hasReplies,select,true{ e respostas} other{}}? Esta ação não pode ser desfeita.",
14
14
  "groupSharedFeatures.threadedAnnotations.edit": "Editar",
15
15
  "groupSharedFeatures.threadedAnnotations.edited": "(Editado)",
16
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "Editado {time}",
16
17
  "groupSharedFeatures.threadedAnnotations.hideReplies": "Ocultar respostas",
17
18
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "marcado como resolvido",
18
19
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "Cancelar",
@@ -13,6 +13,7 @@ export default {
13
13
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "Удалить {type,select,annotation{примечание} other{комментарий}}{hasReplies,select,true{ и ответы} other{}}? Это действие не может быть отменено.",
14
14
  "groupSharedFeatures.threadedAnnotations.edit": "Изменить",
15
15
  "groupSharedFeatures.threadedAnnotations.edited": "(Изменено)",
16
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "Изменено {time}",
16
17
  "groupSharedFeatures.threadedAnnotations.hideReplies": "Скрыть ответы",
17
18
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "отмечено как решено",
18
19
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "Отменить",
@@ -13,6 +13,7 @@ export default {
13
13
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "Radera denna {type,select,annotation{anteckning} other{kommentar}}{hasReplies,select,true{ och svar} other{}}? Den här åtgärden kan inte ångras.",
14
14
  "groupSharedFeatures.threadedAnnotations.edit": "Redigera",
15
15
  "groupSharedFeatures.threadedAnnotations.edited": "(Redigerad)",
16
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "Redigerad {time}",
16
17
  "groupSharedFeatures.threadedAnnotations.hideReplies": "Dölj svar",
17
18
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "markerat som löst",
18
19
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "Avbryt",
@@ -25,6 +26,7 @@ export default {
25
26
  "groupSharedFeatures.threadedAnnotations.messageEditor.placeholderPrefixReply": "Skriv ett svar eller",
26
27
  "groupSharedFeatures.threadedAnnotations.messageEditor.placeholderReply": "Svara, @ för att nämna",
27
28
  "groupSharedFeatures.threadedAnnotations.messageEditor.placeholderSuffix": "att nämna",
29
+ "groupSharedFeatures.threadedAnnotations.messageEditor.post": "Publicera",
28
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.postButtonAriaLabel": "Knappen Publicera",
29
31
  "groupSharedFeatures.threadedAnnotations.messageEditor.postLoading": "Läser in …",
30
32
  "groupSharedFeatures.threadedAnnotations.messageEditor.save": "Spara",
@@ -13,6 +13,7 @@ export default {
13
13
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "Bu {type,select,annotation{açıklama} other{yorum}}{hasReplies,select,true{ ve yanıtlar} other{}} silinsin mi? Bu işlem geri alınamaz.",
14
14
  "groupSharedFeatures.threadedAnnotations.edit": "Düzenle",
15
15
  "groupSharedFeatures.threadedAnnotations.edited": "(Düzenlendi)",
16
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "Düzenleme zamanı: {time}",
16
17
  "groupSharedFeatures.threadedAnnotations.hideReplies": "Yanıtları gizle",
17
18
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "çözülmüş olarak işaretlendi",
18
19
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "İptal et",
@@ -13,6 +13,7 @@ export default {
13
13
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "删除此{type,select,annotation{批注} other{评论}}{hasReplies,select,true{及回复} other{}}?此操作无法撤销。",
14
14
  "groupSharedFeatures.threadedAnnotations.edit": "编辑",
15
15
  "groupSharedFeatures.threadedAnnotations.edited": "(已编辑)",
16
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "编辑时间:{time}",
16
17
  "groupSharedFeatures.threadedAnnotations.hideReplies": "隐藏回复",
17
18
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "标记为已解决",
18
19
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "取消",
@@ -13,6 +13,7 @@ export default {
13
13
  "groupSharedFeatures.threadedAnnotations.deleteQuestion": "是否要刪除此{type,select,annotation{註解} other{留言}}{hasReplies,select,true{和回覆} other{}}?此動作無法復原。",
14
14
  "groupSharedFeatures.threadedAnnotations.edit": "編輯",
15
15
  "groupSharedFeatures.threadedAnnotations.edited": "(已編輯)",
16
+ "groupSharedFeatures.threadedAnnotations.editedTooltip": "已編輯於 {time}",
16
17
  "groupSharedFeatures.threadedAnnotations.hideReplies": "隱藏回覆",
17
18
  "groupSharedFeatures.threadedAnnotations.markedAsResolved": "標記為已解決",
18
19
  "groupSharedFeatures.threadedAnnotations.messageEditor.cancel": "取消",
@@ -1 +1 @@
1
- ._threadedAnnotations_1ujic_1{padding:var(--space-3) var(--space-4) var(--space-4) var(--space-3);background-color:var(--surface-surface);border:var(--border-1) solid var(--gray-10);border-radius:var(--radius-6);flex-direction:column;gap:1.125rem;display:flex}._threadedAnnotations_1ujic_1._expandable_1ujic_10{cursor:pointer}._threadedAnnotations_1ujic_1._expandable_1ujic_10 [data-message-body],._threadedAnnotations_1ujic_1._expandable_1ujic_10 [data-message-author]{cursor:pointer;-webkit-user-select:none;user-select:none}._threadedAnnotations_1ujic_1._expandable_1ujic_10:not(._annotations_1ujic_18):hover{background-color:var(--surface-surface-hover);--avatar-border-color:var(--surface-surface-hover);--fade-bg:var(--surface-surface-hover)}
1
+ ._threadedAnnotations_16hhz_1{padding:var(--space-3) var(--space-4) var(--space-4) var(--space-3);background-color:var(--surface-surface);border:var(--border-1) solid var(--gray-10);border-radius:var(--radius-6);flex-direction:column;gap:1.125rem;display:flex}._threadedAnnotations_16hhz_1._expandable_16hhz_10{cursor:pointer}._threadedAnnotations_16hhz_1._expandable_16hhz_10 [data-message-body],._threadedAnnotations_16hhz_1._expandable_16hhz_10 [data-message-author]{cursor:pointer;-webkit-user-select:none;user-select:none}._threadedAnnotations_16hhz_1._expandable_16hhz_10:not(._annotations_16hhz_18,._highlighted_16hhz_18):hover{background-color:var(--surface-surface-hover);--avatar-border-color:var(--surface-surface-hover);--fade-bg:var(--surface-surface-hover)}._threadedAnnotations_16hhz_1._highlighted_16hhz_18{background-color:var(--surface-item-surface-selected);border-color:var(--border-item-border-selected);--avatar-border-color:var(--surface-item-surface-selected);--fade-bg:var(--surface-item-surface-selected)}
@@ -7,8 +7,9 @@ export declare const defaultUserSelectorProps: Omit<import('@box/user-selector')
7
7
  export declare const DefaultThreadedAnnotations: (props: ThreadedAnnotationsProps) => import("react/jsx-runtime").JSX.Element;
8
8
  interface InteractiveModuleBaseProps {
9
9
  initialMessages?: TextMessageType[];
10
- isReplyDisabled?: boolean;
11
10
  isEditDisabled?: boolean;
11
+ isHighlighted?: boolean;
12
+ isReplyDisabled?: boolean;
12
13
  maxCharacterCount?: number;
13
14
  onCopyLink?: (id: string) => void;
14
15
  }
@@ -43,6 +43,8 @@ interface ThreadedAnnotationsBaseProps {
43
43
  onEditorOpenChange?: (isOpen: boolean) => void;
44
44
  /** When true, collapses the editor and replies panel. */
45
45
  collapsed?: boolean;
46
+ /** When true, applies a visual highlight (border + background tint) to the thread card. Not a focus state. */
47
+ isHighlighted?: boolean;
46
48
  }
47
49
  interface AnnotationModeProps extends ThreadedAnnotationsBaseProps {
48
50
  isAnnotations: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/threaded-annotations",
3
- "version": "3.0.5",
3
+ "version": "3.1.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "dependencies": {
6
6
  "@floating-ui/dom": "^1.6.0",
@@ -17,23 +17,23 @@
17
17
  "uuid": "^9.0.1"
18
18
  },
19
19
  "peerDependencies": {
20
- "@box/blueprint-web": "^16.5.0",
21
- "@box/blueprint-web-assets": "^5.2.11",
22
- "@box/collaboration-popover": "^2.1.14",
23
- "@box/readable-time": "^2.1.14",
24
- "@box/user-selector": "^2.1.15",
20
+ "@box/blueprint-web": "^16.6.0",
21
+ "@box/blueprint-web-assets": "^5.2.12",
22
+ "@box/collaboration-popover": "^2.1.15",
23
+ "@box/readable-time": "^2.1.15",
24
+ "@box/user-selector": "^2.1.16",
25
25
  "clsx": "^1.2.1",
26
26
  "react": "^18.0.0",
27
27
  "react-dom": "^18.0.0",
28
28
  "react-intl": "^6.4.2"
29
29
  },
30
30
  "devDependencies": {
31
- "@box/blueprint-web": "^16.5.0",
32
- "@box/blueprint-web-assets": "^5.2.11",
31
+ "@box/blueprint-web": "^16.6.0",
32
+ "@box/blueprint-web-assets": "^5.2.12",
33
33
  "@box/eslint-plugin-blueprint": "2.1.8",
34
- "@box/readable-time": "^2.1.14",
35
- "@box/storybook-utils": "^1.1.13",
36
- "@box/user-selector": "^2.1.15",
34
+ "@box/readable-time": "^2.1.15",
35
+ "@box/storybook-utils": "^1.1.14",
36
+ "@box/user-selector": "^2.1.16",
37
37
  "react": "^18.0.0",
38
38
  "react-dom": "^18.0.0"
39
39
  },