@box/threaded-annotations 1.83.12 → 1.84.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.
Files changed (41) hide show
  1. package/dist/chunks/annotation-badge.js +47 -33
  2. package/dist/chunks/messages-view.js +27 -26
  3. package/dist/chunks/threaded-annotations2.js +21 -20
  4. package/dist/esm/lib/components/v2/annotation-badge/messages.js +10 -4
  5. package/dist/esm/lib/components/v2/text-message/text-message.js +10 -9
  6. package/dist/i18n/bn-IN.js +1 -0
  7. package/dist/i18n/da-DK.js +1 -0
  8. package/dist/i18n/de-DE.js +1 -0
  9. package/dist/i18n/en-AU.js +1 -0
  10. package/dist/i18n/en-CA.js +1 -0
  11. package/dist/i18n/en-GB.js +1 -0
  12. package/dist/i18n/en-US.js +1 -0
  13. package/dist/i18n/en-US.properties +2 -0
  14. package/dist/i18n/en-x-pseudo.js +1 -0
  15. package/dist/i18n/es-419.js +1 -0
  16. package/dist/i18n/es-ES.js +1 -0
  17. package/dist/i18n/fi-FI.js +1 -0
  18. package/dist/i18n/fr-CA.js +1 -0
  19. package/dist/i18n/fr-FR.js +1 -0
  20. package/dist/i18n/hi-IN.js +1 -0
  21. package/dist/i18n/it-IT.js +1 -0
  22. package/dist/i18n/ja-JP.js +1 -0
  23. package/dist/i18n/json/src/lib/components/v2/annotation-badge/messages.json +1 -1
  24. package/dist/i18n/ko-KR.js +1 -0
  25. package/dist/i18n/nb-NO.js +1 -0
  26. package/dist/i18n/nl-NL.js +1 -0
  27. package/dist/i18n/pl-PL.js +1 -0
  28. package/dist/i18n/pt-BR.js +1 -0
  29. package/dist/i18n/ru-RU.js +1 -0
  30. package/dist/i18n/sv-SE.js +1 -0
  31. package/dist/i18n/tr-TR.js +1 -0
  32. package/dist/i18n/zh-CN.js +1 -0
  33. package/dist/i18n/zh-TW.js +1 -0
  34. package/dist/styles/annotation-badge.css +1 -1
  35. package/dist/types/lib/components/v2/annotation-badge/annotation-badge.d.ts +2 -1
  36. package/dist/types/lib/components/v2/annotation-badge/messages.d.ts +5 -0
  37. package/dist/types/lib/components/v2/messages-view/messages-view.d.ts +2 -1
  38. package/dist/types/lib/components/v2/text-message/text-message.d.ts +2 -1
  39. package/dist/types/lib/v2/stories/shared.d.ts +1 -0
  40. package/dist/types/lib/v2/threaded-annotations.d.ts +3 -0
  41. package/package.json +11 -11
@@ -1,49 +1,63 @@
1
1
  import { AnnotationBadgeType as e } from "../esm/lib/v2/types/annotation-badge-types.js";
2
2
  import t from "../esm/lib/components/v2/annotation-badge/messages.js";
3
- import { ButtonWrapper as n, Text as r } from "@box/blueprint-web";
4
- import { useIntl as i } from "react-intl";
5
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
- import { DashedSquareBubble as s, PencilScribble as c, TextHighlight as l } from "@box/blueprint-web-assets/icons/Medium";
7
- import '../styles/annotation-badge.css';var u = {
8
- annotationBadge: "_annotationBadge_xktl5_1",
9
- annotationIcon: "_annotationIcon_xktl5_16",
10
- highlightText: "_highlightText_xktl5_22",
11
- annotationLabel: "_annotationLabel_xktl5_31"
12
- }, d = {
13
- [e.Drawing]: c,
3
+ import { ButtonWrapper as n, Focusable as r, Text as i, Tooltip as a } from "@box/blueprint-web";
4
+ import o from "clsx";
5
+ import { useIntl as s } from "react-intl";
6
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
+ import { DashedSquareBubble as u, PencilScribble as d, TextHighlight as f } from "@box/blueprint-web-assets/icons/Medium";
8
+ import '../styles/annotation-badge.css';var p = {
9
+ annotationBadge: "_annotationBadge_1610p_1",
10
+ annotationIcon: "_annotationIcon_1610p_16",
11
+ highlightText: "_highlightText_1610p_22",
12
+ annotationLabel: "_annotationLabel_1610p_34",
13
+ disabled: "_disabled_1610p_42",
14
+ focusableWrapper: "_focusableWrapper_1610p_47",
15
+ tooltipContent: "_tooltipContent_1610p_53"
16
+ }, m = {
17
+ [e.Drawing]: d,
14
18
  [e.Frame]: null,
15
- [e.Highlight]: l,
16
- [e.Point]: c,
17
- [e.Region]: s
18
- }, f = ({ annotationTarget: s, onClick: c }) => {
19
- let { formatMessage: l } = i(), f = d[s.type], p = s.type === e.Highlight;
20
- return /* @__PURE__ */ o(n, {
21
- className: u.annotationBadge,
19
+ [e.Highlight]: f,
20
+ [e.Point]: d,
21
+ [e.Region]: u
22
+ }, h = ({ annotationTarget: u, onClick: d, originalContentDeleted: f }) => {
23
+ let { formatMessage: h } = s(), g = m[u.type], _ = u.type === e.Highlight, v = f ? "textOnLightSecondary" : "textOnLightLink", y = /* @__PURE__ */ l(n, {
24
+ className: o(p.annotationBadge, f && p.disabled),
22
25
  "data-testid": "annotation-badge",
23
26
  "data-no-expand": !0,
24
- onClick: c,
25
- children: [f && /* @__PURE__ */ a(r, {
27
+ disabled: f,
28
+ onClick: f ? void 0 : d,
29
+ children: [g && /* @__PURE__ */ c(i, {
26
30
  as: "span",
27
- className: u.annotationIcon,
28
- color: "textOnLightLink",
29
- children: /* @__PURE__ */ a(f, {
31
+ className: p.annotationIcon,
32
+ color: v,
33
+ children: /* @__PURE__ */ c(g, {
30
34
  color: "currentColor",
31
35
  height: 16,
32
36
  width: 16
33
37
  })
34
- }), p ? /* @__PURE__ */ a(r, {
38
+ }), _ ? /* @__PURE__ */ c(i, {
35
39
  as: "span",
36
- className: u.highlightText,
37
- color: "textOnLightLink",
38
- variant: "bodyDefaultSemibold",
39
- children: s.highlightedText
40
- }) : /* @__PURE__ */ a(r, {
40
+ className: p.highlightText,
41
+ color: v,
42
+ variant: "bodySmallSemibold",
43
+ children: u.highlightedText
44
+ }) : /* @__PURE__ */ c(i, {
41
45
  as: "span",
42
- className: u.annotationLabel,
43
- color: "textOnLightLink",
46
+ className: p.annotationLabel,
47
+ color: v,
44
48
  variant: "bodyDefaultSemibold",
45
- children: s.type === e.Frame ? s.timestamp : l(t.annotationPage, { number: s.page })
49
+ children: u.type === e.Frame ? u.timestamp : h(t.annotationPage, { number: u.page })
46
50
  })]
47
51
  });
52
+ return f ? /* @__PURE__ */ c(a, {
53
+ className: p.tooltipContent,
54
+ content: h(t.originalContentDeleted),
55
+ side: "top",
56
+ children: /* @__PURE__ */ c(r, {
57
+ className: p.focusableWrapper,
58
+ "data-no-expand": !0,
59
+ children: y
60
+ })
61
+ }) : y;
48
62
  };
49
- export { f as t };
63
+ export { h as t };
@@ -14,26 +14,26 @@ import '../styles/messages-view.css';var u = {
14
14
  messagesView: "_messagesView_1yvpu_4",
15
15
  repliesContainer: "_repliesContainer_1yvpu_52",
16
16
  messagesFade: "_messagesFade_1yvpu_58"
17
- }, d = ({ messages: d, isResolved: f = !1, resolvedBy: p, resolvedAt: m, onDelete: h, onThreadDelete: g, onAvatarClick: _, onEdit: v, onResolve: y, onUnresolve: b, annotationTarget: x, onAnnotationBadgeClick: S }) => {
18
- let { viewState: C, dispatch: w, isAnnotations: T } = t(), E = s(null), D = C !== e.Collapsed, O = C === e.Composing, k = d.length > 2, A = k && !D, { handleScroll: j, isOverflowing: M } = a({
17
+ }, d = ({ messages: d, isResolved: f = !1, resolvedBy: p, resolvedAt: m, onDelete: h, onThreadDelete: g, onAvatarClick: _, onEdit: v, onResolve: y, onUnresolve: b, annotationTarget: x, onAnnotationBadgeClick: S, originalContentDeleted: C }) => {
18
+ let { viewState: w, dispatch: T, isAnnotations: E } = t(), D = s(null), O = w !== e.Collapsed, k = w === e.Composing, A = d.length > 2, j = A && !O, { handleScroll: M, isOverflowing: N } = a({
19
19
  messageCount: d.length,
20
- containerRef: E,
21
- enabled: T,
22
- isExpanded: D,
23
- suppressAutoScroll: A
24
- }), N = d[0], P = d.slice(1), F = P.length >= 1, I = P[P.length - 1], L = P.slice(0, -1), R = k && !D;
25
- if (!N) return null;
26
- let z = L[L.length - 1]?.author, B = L.length >= 2 ? L[L.length - 2].author : void 0, V = () => w({ type: "EXPAND" });
20
+ containerRef: D,
21
+ enabled: E,
22
+ isExpanded: O,
23
+ suppressAutoScroll: j
24
+ }), P = d[0], F = d.slice(1), I = F.length >= 1, L = F[F.length - 1], R = F.slice(0, -1), z = A && !O;
25
+ if (!P) return null;
26
+ let B = R[R.length - 1]?.author, V = R.length >= 2 ? R[R.length - 2].author : void 0, H = () => T({ type: "EXPAND" });
27
27
  return /* @__PURE__ */ l("div", {
28
- className: o(u.messagesViewWrapper, M && u.overflowing, M && O && u.withEditorBelow),
28
+ className: o(u.messagesViewWrapper, N && u.overflowing, N && k && u.withEditorBelow),
29
29
  children: [/* @__PURE__ */ l("div", {
30
- ref: E,
31
- className: o(u.messagesView, T && u.scrollable),
32
- onScroll: j,
30
+ ref: D,
31
+ className: o(u.messagesView, E && u.scrollable),
32
+ onScroll: M,
33
33
  children: [
34
34
  /* @__PURE__ */ c(i, {
35
- ...N,
36
- showThreadedIndicator: F || f,
35
+ ...P,
36
+ showThreadedIndicator: I || f,
37
37
  isResolved: f,
38
38
  onDelete: h,
39
39
  onThreadDelete: g,
@@ -43,17 +43,18 @@ import '../styles/messages-view.css';var u = {
43
43
  onUnresolve: b,
44
44
  isFirstMessage: !0,
45
45
  annotationTarget: x,
46
- onAnnotationBadgeClick: S
46
+ onAnnotationBadgeClick: S,
47
+ originalContentDeleted: C
47
48
  }),
48
- R && z && /* @__PURE__ */ c(r, {
49
- lastUser: z,
50
- repliesCount: L.length,
51
- secondLastUser: B,
52
- onShowReplies: V
49
+ z && B && /* @__PURE__ */ c(r, {
50
+ lastUser: B,
51
+ repliesCount: R.length,
52
+ secondLastUser: V,
53
+ onShowReplies: H
53
54
  }),
54
- D && L.length > 0 && /* @__PURE__ */ c("div", {
55
+ O && R.length > 0 && /* @__PURE__ */ c("div", {
55
56
  className: u.repliesContainer,
56
- children: L.map((e) => /* @__PURE__ */ c(i, {
57
+ children: R.map((e) => /* @__PURE__ */ c(i, {
57
58
  ...e,
58
59
  showThreadedIndicator: !0,
59
60
  isResolved: f,
@@ -64,8 +65,8 @@ import '../styles/messages-view.css';var u = {
64
65
  onUnresolve: b
65
66
  }, e.id))
66
67
  }),
67
- I && /* @__PURE__ */ c(i, {
68
- ...I,
68
+ L && /* @__PURE__ */ c(i, {
69
+ ...L,
69
70
  showThreadedIndicator: f,
70
71
  isResolved: f,
71
72
  onDelete: h,
@@ -79,7 +80,7 @@ import '../styles/messages-view.css';var u = {
79
80
  createdAt: m
80
81
  })
81
82
  ]
82
- }), M && /* @__PURE__ */ c("div", { className: u.messagesFade })]
83
+ }), N && /* @__PURE__ */ c("div", { className: u.messagesFade })]
83
84
  });
84
85
  };
85
86
  export { d as t };
@@ -10,33 +10,33 @@ import '../styles/threaded-annotations2.css';var p = {
10
10
  threadedAnnotations: "_threadedAnnotations_1dfb0_1",
11
11
  expandable: "_expandable_1dfb0_10",
12
12
  annotations: "_annotations_1dfb0_13"
13
- }, m = ({ messages: r, isResolved: m = !1, resolvedBy: h, resolvedAt: g, onDelete: _, onThreadDelete: v, onAvatarClick: y, onEdit: b, onResolve: x, onUnresolve: S, onPost: C, onPostError: w, userSelectorProps: T, onEditorOpenChange: E, annotationTarget: D, onAnnotationBadgeClick: O }) => {
14
- let { viewState: k, dispatch: A, replyMention: j, isReplyDisabled: M, isAnnotations: N } = i(), P = u(null), F = k !== n.Collapsed, I = r.length > 2, L = k === n.Collapsed && (I || !M && !m);
13
+ }, m = ({ messages: r, isResolved: m = !1, resolvedBy: h, resolvedAt: g, onDelete: _, onThreadDelete: v, onAvatarClick: y, onEdit: b, onResolve: x, onUnresolve: S, onPost: C, onPostError: w, userSelectorProps: T, onEditorOpenChange: E, annotationTarget: D, onAnnotationBadgeClick: O, originalContentDeleted: k }) => {
14
+ let { viewState: A, dispatch: j, replyMention: M, isReplyDisabled: N, isAnnotations: P } = i(), F = u(null), I = A !== n.Collapsed, L = r.length > 2, R = A === n.Collapsed && (L || !N && !m);
15
15
  l(() => {
16
- E?.(F);
17
- }, [F, E]), l(() => {
18
- if (!F) return;
16
+ E?.(I);
17
+ }, [I, E]), l(() => {
18
+ if (!I) return;
19
19
  let t = `[${Object.keys(e)[0]}]`, n = (e) => {
20
20
  let n = e.target;
21
- P.current?.contains(n) || document.querySelector(t)?.contains(n) || A({ type: "COLLAPSE" });
21
+ F.current?.contains(n) || document.querySelector(t)?.contains(n) || j({ type: "COLLAPSE" });
22
22
  };
23
23
  return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
24
- }, [F, A]);
25
- let R = r.length === 0, z = c(() => A({ type: "CLEAR_MENTION" }), [A]), B = c((e) => {
26
- if (!L) return;
24
+ }, [I, j]);
25
+ let z = r.length === 0, B = c(() => j({ type: "CLEAR_MENTION" }), [j]), V = c((e) => {
26
+ if (!R) return;
27
27
  let t = e.target;
28
- !e.currentTarget.contains(t) || t.closest("[data-no-expand]") || A({ type: "EXPAND" });
29
- }, [L, A]);
30
- return N && R ? /* @__PURE__ */ d(t, {
28
+ !e.currentTarget.contains(t) || t.closest("[data-no-expand]") || j({ type: "EXPAND" });
29
+ }, [R, j]);
30
+ return P && z ? /* @__PURE__ */ d(t, {
31
31
  onPost: C,
32
32
  onPostError: w,
33
- onPostSuccess: z,
33
+ onPostSuccess: B,
34
34
  userSelectorProps: T,
35
35
  isFirstAnnotation: !0
36
36
  }) : /* @__PURE__ */ f("div", {
37
- ref: P,
38
- className: s(p.threadedAnnotations, L && p.expandable, N && p.annotations),
39
- onClick: L ? B : void 0,
37
+ ref: F,
38
+ className: s(p.threadedAnnotations, R && p.expandable, P && p.annotations),
39
+ onClick: R ? V : void 0,
40
40
  children: [/* @__PURE__ */ d(a, {
41
41
  messages: r,
42
42
  isResolved: m,
@@ -49,12 +49,13 @@ import '../styles/threaded-annotations2.css';var p = {
49
49
  onResolve: x,
50
50
  onUnresolve: S,
51
51
  annotationTarget: D,
52
- onAnnotationBadgeClick: O
53
- }), k === n.Composing && /* @__PURE__ */ d(t, {
52
+ onAnnotationBadgeClick: O,
53
+ originalContentDeleted: k
54
+ }), A === n.Composing && /* @__PURE__ */ d(t, {
54
55
  onPost: C,
55
56
  onPostError: w,
56
- onPostSuccess: z,
57
- initialContent: j ? o(j) : null,
57
+ onPostSuccess: B,
58
+ initialContent: M ? o(M) : null,
58
59
  userSelectorProps: T
59
60
  })]
60
61
  });
@@ -1,6 +1,12 @@
1
1
  import { defineMessages as e } from "react-intl";
2
- var t = e({ annotationPage: {
3
- id: "groupSharedFeatures.threadedAnnotations.annotationPage",
4
- defaultMessage: "Page {number}"
5
- } });
2
+ var t = e({
3
+ annotationPage: {
4
+ id: "groupSharedFeatures.threadedAnnotations.annotationPage",
5
+ defaultMessage: "Page {number}"
6
+ },
7
+ originalContentDeleted: {
8
+ id: "groupSharedFeatures.threadedAnnotations.originalContentDeleted",
9
+ defaultMessage: "Original content was deleted"
10
+ }
11
+ });
6
12
  export { t as default };
@@ -7,18 +7,18 @@ import { MessageRenderer as o } from "./subcomponents/message-renderer.js";
7
7
  import s from "clsx";
8
8
  import { useIntl as c } from "react-intl";
9
9
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
10
- var d = ({ id: d, author: f, message: p, createdAt: m, permissions: h, showThreadedIndicator: g = !0, isResolved: _ = !1, isFirstMessage: v = !1, onAvatarClick: y, onDelete: b, onThreadDelete: x, onEdit: S, onResolve: C, onUnresolve: w, annotationTarget: T, onAnnotationBadgeClick: E }) => {
11
- let { canResolve: D, canEdit: O, canDelete: k } = h, A = c(), { dispatch: j, isReplyDisabled: M, isAnnotations: N } = e();
10
+ var d = ({ id: d, author: f, message: p, createdAt: m, permissions: h, showThreadedIndicator: g = !0, isResolved: _ = !1, isFirstMessage: v = !1, onAvatarClick: y, onDelete: b, onThreadDelete: x, onEdit: S, onResolve: C, onUnresolve: w, annotationTarget: T, onAnnotationBadgeClick: E, originalContentDeleted: D }) => {
11
+ let { canResolve: O, canEdit: k, canDelete: A } = h, j = c(), { dispatch: M, isReplyDisabled: N, isAnnotations: P } = e();
12
12
  return /* @__PURE__ */ u("div", {
13
- "aria-label": A.formatMessage(r.annotationMessageAriaLabel),
13
+ "aria-label": j.formatMessage(r.annotationMessageAriaLabel),
14
14
  className: i.textMessage,
15
15
  "data-message-wrapper": !0,
16
16
  children: [/* @__PURE__ */ l(n, {
17
17
  author: f,
18
- canResolve: D,
18
+ canResolve: O,
19
19
  isResolved: _,
20
- canDelete: k,
21
- canEdit: O,
20
+ canDelete: A,
21
+ canEdit: k,
22
22
  isFirstMessage: v,
23
23
  onAvatarClick: y,
24
24
  onDelete: () => b(d),
@@ -31,11 +31,12 @@ var d = ({ id: d, author: f, message: p, createdAt: m, permissions: h, showThrea
31
31
  children: [/* @__PURE__ */ l("div", { className: s(i.threadedIndicator, !g && i.threadedIndicatorHidden) }), /* @__PURE__ */ u("div", {
32
32
  className: i.messageContent,
33
33
  children: [
34
- T && !N && /* @__PURE__ */ l("div", {
34
+ T && !P && /* @__PURE__ */ l("div", {
35
35
  className: i.annotationBadgeWrapper,
36
36
  children: /* @__PURE__ */ l(t, {
37
37
  annotationTarget: T,
38
- onClick: () => E?.(d)
38
+ onClick: () => E?.(d),
39
+ originalContentDeleted: D
39
40
  })
40
41
  }),
41
42
  /* @__PURE__ */ l("div", {
@@ -44,7 +45,7 @@ var d = ({ id: d, author: f, message: p, createdAt: m, permissions: h, showThrea
44
45
  }),
45
46
  /* @__PURE__ */ l(a, {
46
47
  createdAt: m,
47
- onReply: M ? void 0 : () => j({
48
+ onReply: N ? void 0 : () => M({
48
49
  type: "REPLY",
49
50
  author: f
50
51
  })
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "সংরক্ষণ হচ্ছে...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "মেসেজ এডিটর স্ক্রল কন্টেইনার",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "আরও বিকল্প বোতাম",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "উত্তর দিন",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "উত্তর বোতাম",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "সমাধান করুন",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Gemmer...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Rulleområde i meddelelseseditor",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "'Flere valgmuligheder'-knap",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Svar",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Svar-knap",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Løs",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Wird gespeichert …",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Scrollcontainer für den Nachrichten-Bearbeiter",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "Schaltfläche „Weitere Optionen“",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Antworten",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Schaltfläche „Antworten“",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Gelöst",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Saving...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Message editor scroll container",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "More options button",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Reply",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Reply button",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Resolve",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Saving...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Message editor scroll container",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "More options button",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Reply",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Reply button",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Resolve",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Saving...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Message editor scroll container",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "More options button",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Reply",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Reply button",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Resolve",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Saving...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Message editor scroll container",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "More options button",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Reply",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Reply button",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Resolve",
@@ -58,6 +58,8 @@ groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading = Saving...
58
58
  groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel = Message editor scroll container
59
59
  # Aria label for more options button in annotation message
60
60
  groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel = More options button
61
+ # Tooltip shown when the annotation badge refers to deleted content
62
+ groupSharedFeatures.threadedAnnotations.originalContentDeleted = Original content was deleted
61
63
  # Reply button text to start composing a reply
62
64
  groupSharedFeatures.threadedAnnotations.reply = Reply
63
65
  # Aria label for the reply button that opens the message editor
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "⟦萬萬 Ŝäνίиĝ... 國國⟧",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "⟦萬萬萬萬萬萬萬萬萬 Мεśşǻġė ęďïţôг śсѓôľļ ĉőйŧäįňéŕ 國國國國國國國國國⟧",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "⟦萬萬萬萬萬 Мόгė оΡţίōиŝ ьüŧţőʼn 國國國國國⟧",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "⟦萬 ŘεΡľÿ 國⟧",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "⟦萬萬萬 ΓёΡļŷ ьūŧτőη 國國國⟧",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "⟦萬萬 Řεŝŏĺνε 國國⟧",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Guardando…",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Contenedor de desplazamiento del editor de mensajes",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "Botón Más opciones",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Responder",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Botón Responder",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Resolver",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Guardando…",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Contenedor de desplazamiento del editor de mensajes",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "Botón Más opciones",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Responder",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Botón Responder",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Resolver",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Tallennetaan...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Viestieditorin vierityssäiliö",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "Lisää asetuksia -painike",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Vastaus",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Vastaa-painike",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Ratkaise",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Enregistrement en cours",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Conteneur de défilement de l’éditeur de message",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "Bouton Plus d'options",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Répondre",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Bouton Répondre",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Résolu",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Enregistrement en cours",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Conteneur de défilement de l’éditeur de message",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "Bouton Plus d'options",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Répondre",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Bouton Répondre",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Résolu",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "सहेजा जा रहा है...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "संदेश संपादक स्क्रॉल कंटेनर",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "अधिक विकल्प बटन",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "जवाब दें",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "उत्तर दें बटन",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "हल करें",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Salvataggio in corso...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Contenitore di scorrimento dell’editor dei messaggi",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "Pulsante Altre opzioni",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Rispondi",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Pulsante Rispondi",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Risolvi",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "保存しています...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "メッセージエディタのスクロールコンテナ",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "[その他のオプション] ボタン",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "返信",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "[返信] ボタン",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "対応済み",
@@ -1 +1 @@
1
- [{"id":"groupSharedFeatures.threadedAnnotations.annotationPage","description":"Label showing the page number of an annotation target","defaultMessage":"Page {number}"}]
1
+ [{"id":"groupSharedFeatures.threadedAnnotations.annotationPage","description":"Label showing the page number of an annotation target","defaultMessage":"Page {number}"},{"id":"groupSharedFeatures.threadedAnnotations.originalContentDeleted","description":"Tooltip shown when the annotation badge refers to deleted content","defaultMessage":"Original content was deleted"}]
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "저장 중...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "메시지 편집기 스크롤 컨테이너",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "추가 옵션 버튼",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "답글",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "답글 버튼",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "해결",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Lagrer ...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Rullebeholder for meldingsredaktør",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "Knapp for flere alternativer",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Svar",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Svar-knapp",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Avklar",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Wordt opgeslagen …",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Scrolcontainer berichteneditor",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "Knop Meer opties",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Beantwoorden",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Knop Beantwoorden",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Oplossen",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Trwa zapisywanie...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Kontener przewijania edytora wiadomości",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "Przycisk większej liczby opcji",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Odpowiedz",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Przycisk odpowiedzi",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Rozstrzygnij",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Salvando...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Contêiner de rolagem do editor de mensagens",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "Botão Mais opções",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Responder",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Botão Responder",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Resolver",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Сохранение...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Контейнер прокрутки редактора сообщений",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "Кнопка дополнительных параметров",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Ответить",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Кнопка ответа",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Разрешить",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Sparar ...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Skrollbar behållare för meddelanderedaktör",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "Knappen fler alternativ",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Svara",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Knappen Svara",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Löst",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "Kaydediliyor...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "Mesaj düzenleyici kaydırma konteyneri",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "Diğer seçenekler düğmesi",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "Yanıtla",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "Yanıtla düğmesi",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "Çöz",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "正在保存...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "消息编辑器滚动容器",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "更多选项按钮",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "回复",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "回复按钮",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "解决",
@@ -29,6 +29,7 @@ export default {
29
29
  "groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading": "儲存中...",
30
30
  "groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel": "訊息編輯者捲動容器",
31
31
  "groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel": "更多選項按鈕",
32
+ "groupSharedFeatures.threadedAnnotations.originalContentDeleted": "Original content was deleted",
32
33
  "groupSharedFeatures.threadedAnnotations.reply": "回覆",
33
34
  "groupSharedFeatures.threadedAnnotations.replyButtonAriaLabel": "回覆按鈕",
34
35
  "groupSharedFeatures.threadedAnnotations.resolveButtonAriaLabel": "已回覆",
@@ -1 +1 @@
1
- ._annotationBadge_xktl5_1{background-color:var(--bp-box-blue-opacity-08);border-radius:var(--radius-1);box-sizing:border-box;cursor:pointer;align-items:center;gap:var(--space-1);min-width:0;max-width:100%;padding-left:var(--space-05);padding-right:var(--space-1);display:flex;overflow:hidden}._annotationIcon_xktl5_16{flex-shrink:0;align-items:center;display:inline-flex}._highlightText_xktl5_22{text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0;font-style:italic;overflow:hidden}._annotationLabel_xktl5_31{text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0;overflow:hidden}
1
+ ._annotationBadge_1610p_1{background-color:var(--bp-box-blue-opacity-08);border-radius:var(--radius-1);box-sizing:border-box;cursor:pointer;align-items:center;gap:var(--space-1);min-width:0;max-width:100%;padding-left:var(--space-05);padding-right:var(--space-1);display:flex;overflow:hidden}._annotationIcon_1610p_16{flex-shrink:0;align-items:center;display:inline-flex}._highlightText_1610p_22{text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0;overflow:hidden}._highlightText_1610p_22._highlightText_1610p_22{font-style:italic}._annotationLabel_1610p_34{text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0;overflow:hidden}._disabled_1610p_42{background-color:var(--gray-10);cursor:default}._focusableWrapper_1610p_47{min-width:0;max-width:100%;overflow:hidden}._tooltipContent_1610p_53{white-space:nowrap;max-width:none}
@@ -2,6 +2,7 @@ import { AnnotationBadgeTargetType } from '../../../v2/types';
2
2
  interface AnnotationBadgeProps {
3
3
  annotationTarget: AnnotationBadgeTargetType;
4
4
  onClick?: () => void;
5
+ originalContentDeleted?: boolean;
5
6
  }
6
- export declare const AnnotationBadge: ({ annotationTarget, onClick }: AnnotationBadgeProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const AnnotationBadge: ({ annotationTarget, onClick, originalContentDeleted }: AnnotationBadgeProps) => import("react/jsx-runtime").JSX.Element;
7
8
  export {};
@@ -4,5 +4,10 @@ declare const messages: {
4
4
  description: string;
5
5
  id: string;
6
6
  };
7
+ originalContentDeleted: {
8
+ defaultMessage: string;
9
+ description: string;
10
+ id: string;
11
+ };
7
12
  };
8
13
  export default messages;
@@ -13,5 +13,6 @@ export interface MessagesViewProps {
13
13
  onUnresolve?: (id: string) => void;
14
14
  annotationTarget?: AnnotationBadgeTargetType;
15
15
  onAnnotationBadgeClick?: (id: string) => void;
16
+ originalContentDeleted?: boolean;
16
17
  }
17
- export declare const MessagesView: ({ messages, isResolved, resolvedBy, resolvedAt, onDelete, onThreadDelete, onAvatarClick, onEdit, onResolve, onUnresolve, annotationTarget, onAnnotationBadgeClick, }: MessagesViewProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const MessagesView: ({ messages, isResolved, resolvedBy, resolvedAt, onDelete, onThreadDelete, onAvatarClick, onEdit, onResolve, onUnresolve, annotationTarget, onAnnotationBadgeClick, originalContentDeleted, }: MessagesViewProps) => import("react/jsx-runtime").JSX.Element;
@@ -15,6 +15,7 @@ export interface TextMessageProps extends TextMessageType {
15
15
  onUnresolve?: (id: string) => void;
16
16
  annotationTarget?: AnnotationBadgeTargetType;
17
17
  onAnnotationBadgeClick?: (id: string) => void;
18
+ originalContentDeleted?: boolean;
18
19
  }
19
20
  /**
20
21
  * Renders a single message within a text thread.
@@ -23,4 +24,4 @@ export interface TextMessageProps extends TextMessageType {
23
24
  * the message content itself, a relative timestamp, and providing a mechanism
24
25
  * for deleting the message.
25
26
  */
26
- export declare const TextMessage: ({ id, author, message, createdAt, permissions, showThreadedIndicator, isResolved, isFirstMessage, onAvatarClick, onDelete, onThreadDelete, onEdit, onResolve, onUnresolve, annotationTarget, onAnnotationBadgeClick, }: TextMessageProps) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const TextMessage: ({ id, author, message, createdAt, permissions, showThreadedIndicator, isResolved, isFirstMessage, onAvatarClick, onDelete, onThreadDelete, onEdit, onResolve, onUnresolve, annotationTarget, onAnnotationBadgeClick, originalContentDeleted, }: TextMessageProps) => import("react/jsx-runtime").JSX.Element;
@@ -15,6 +15,7 @@ type InteractiveModuleProps = (InteractiveModuleBaseProps & {
15
15
  isAnnotations?: false;
16
16
  annotationTarget?: AnnotationBadgeTargetType;
17
17
  onAnnotationBadgeClick?: (id: string) => void;
18
+ originalContentDeleted?: boolean;
18
19
  });
19
20
  export declare const InteractiveModule: (props: InteractiveModuleProps) => import("react/jsx-runtime").JSX.Element;
20
21
  export interface StaticMentionModuleProps {
@@ -30,12 +30,15 @@ interface AnnotationModeProps extends ThreadedAnnotationsBaseProps {
30
30
  isAnnotations: true;
31
31
  annotationTarget?: never;
32
32
  onAnnotationBadgeClick?: never;
33
+ originalContentDeleted?: never;
33
34
  }
34
35
  interface CommentModeProps extends ThreadedAnnotationsBaseProps {
35
36
  isAnnotations?: false;
36
37
  annotationTarget?: AnnotationBadgeTargetType;
37
38
  /** Called when the annotation badge is clicked. Receives the root message id. */
38
39
  onAnnotationBadgeClick?: (id: string) => void;
40
+ /** When true, renders the badge in a disabled (grayed) state with a tooltip. */
41
+ originalContentDeleted?: boolean;
39
42
  }
40
43
  export type ThreadedAnnotationsProps = AnnotationModeProps | CommentModeProps;
41
44
  export declare const ThreadedAnnotations: (props: 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.83.12",
3
+ "version": "1.84.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "dependencies": {
6
6
  "@tanstack/react-virtual": "^3.10.8",
@@ -16,23 +16,23 @@
16
16
  "uuid": "^9.0.1"
17
17
  },
18
18
  "peerDependencies": {
19
- "@box/blueprint-web": "^14.21.0",
20
- "@box/blueprint-web-assets": "^4.115.7",
21
- "@box/collaboration-popover": "^1.61.11",
22
- "@box/readable-time": "^1.40.11",
23
- "@box/user-selector": "^1.75.11",
19
+ "@box/blueprint-web": "^14.21.1",
20
+ "@box/blueprint-web-assets": "^4.115.8",
21
+ "@box/collaboration-popover": "^1.61.12",
22
+ "@box/readable-time": "^1.40.12",
23
+ "@box/user-selector": "^1.75.12",
24
24
  "clsx": "^1.2.1",
25
25
  "react": "^18.0.0",
26
26
  "react-dom": "^18.0.0",
27
27
  "react-intl": "^6.4.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@box/blueprint-web": "^14.21.0",
31
- "@box/blueprint-web-assets": "^4.115.7",
30
+ "@box/blueprint-web": "^14.21.1",
31
+ "@box/blueprint-web-assets": "^4.115.8",
32
32
  "@box/eslint-plugin-blueprint": "1.1.18",
33
- "@box/readable-time": "^1.40.11",
34
- "@box/storybook-utils": "^0.18.7",
35
- "@box/user-selector": "^1.75.11",
33
+ "@box/readable-time": "^1.40.12",
34
+ "@box/storybook-utils": "^0.18.8",
35
+ "@box/user-selector": "^1.75.12",
36
36
  "react": "^18.0.0",
37
37
  "react-dom": "^18.0.0"
38
38
  },