@box/threaded-annotations 1.83.13 → 1.84.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 (70) hide show
  1. package/dist/chunks/annotation-badge.js +47 -33
  2. package/dist/chunks/mention-component.js +1 -2
  3. package/dist/chunks/message-editor2.module.js +24 -24
  4. package/dist/chunks/messages-view.js +27 -26
  5. package/dist/chunks/threaded-annotations2.js +45 -44
  6. package/dist/esm/lib/components/v2/annotation-badge/messages.js +10 -4
  7. package/dist/esm/lib/components/v2/message-editor/message-editor.js +1 -1
  8. package/dist/esm/lib/components/v2/text-message/text-message.js +10 -9
  9. package/dist/i18n/bn-IN.js +1 -0
  10. package/dist/i18n/bn-IN.properties +2 -0
  11. package/dist/i18n/da-DK.js +1 -0
  12. package/dist/i18n/da-DK.properties +2 -0
  13. package/dist/i18n/de-DE.js +1 -0
  14. package/dist/i18n/de-DE.properties +2 -0
  15. package/dist/i18n/en-AU.js +1 -0
  16. package/dist/i18n/en-AU.properties +2 -0
  17. package/dist/i18n/en-CA.js +1 -0
  18. package/dist/i18n/en-CA.properties +2 -0
  19. package/dist/i18n/en-GB.js +1 -0
  20. package/dist/i18n/en-GB.properties +2 -0
  21. package/dist/i18n/en-US.js +1 -0
  22. package/dist/i18n/en-US.properties +2 -0
  23. package/dist/i18n/en-x-pseudo.js +42 -41
  24. package/dist/i18n/en-x-pseudo.properties +43 -41
  25. package/dist/i18n/es-419.js +1 -0
  26. package/dist/i18n/es-419.properties +2 -0
  27. package/dist/i18n/es-ES.js +1 -0
  28. package/dist/i18n/es-ES.properties +2 -0
  29. package/dist/i18n/fi-FI.js +1 -0
  30. package/dist/i18n/fi-FI.properties +2 -0
  31. package/dist/i18n/fr-CA.js +1 -0
  32. package/dist/i18n/fr-CA.properties +2 -0
  33. package/dist/i18n/fr-FR.js +1 -0
  34. package/dist/i18n/fr-FR.properties +2 -0
  35. package/dist/i18n/hi-IN.js +1 -0
  36. package/dist/i18n/hi-IN.properties +2 -0
  37. package/dist/i18n/it-IT.js +1 -0
  38. package/dist/i18n/it-IT.properties +2 -0
  39. package/dist/i18n/ja-JP.js +1 -0
  40. package/dist/i18n/ja-JP.properties +2 -0
  41. package/dist/i18n/json/src/lib/components/v2/annotation-badge/messages.json +1 -1
  42. package/dist/i18n/ko-KR.js +1 -0
  43. package/dist/i18n/ko-KR.properties +2 -0
  44. package/dist/i18n/nb-NO.js +1 -0
  45. package/dist/i18n/nb-NO.properties +2 -0
  46. package/dist/i18n/nl-NL.js +1 -0
  47. package/dist/i18n/nl-NL.properties +2 -0
  48. package/dist/i18n/pl-PL.js +1 -0
  49. package/dist/i18n/pl-PL.properties +2 -0
  50. package/dist/i18n/pt-BR.js +1 -0
  51. package/dist/i18n/pt-BR.properties +2 -0
  52. package/dist/i18n/ru-RU.js +1 -0
  53. package/dist/i18n/ru-RU.properties +2 -0
  54. package/dist/i18n/sv-SE.js +1 -0
  55. package/dist/i18n/sv-SE.properties +2 -0
  56. package/dist/i18n/tr-TR.js +1 -0
  57. package/dist/i18n/tr-TR.properties +2 -0
  58. package/dist/i18n/zh-CN.js +1 -0
  59. package/dist/i18n/zh-CN.properties +2 -0
  60. package/dist/i18n/zh-TW.js +1 -0
  61. package/dist/i18n/zh-TW.properties +2 -0
  62. package/dist/styles/annotation-badge.css +1 -1
  63. package/dist/styles/message-editor2.css +1 -1
  64. package/dist/types/lib/components/v2/annotation-badge/annotation-badge.d.ts +2 -1
  65. package/dist/types/lib/components/v2/annotation-badge/messages.d.ts +5 -0
  66. package/dist/types/lib/components/v2/messages-view/messages-view.d.ts +2 -1
  67. package/dist/types/lib/components/v2/text-message/text-message.d.ts +2 -1
  68. package/dist/types/lib/v2/stories/shared.d.ts +1 -0
  69. package/dist/types/lib/v2/threaded-annotations.d.ts +3 -0
  70. 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_wsfss_1",
10
+ annotationIcon: "_annotationIcon_wsfss_16",
11
+ highlightText: "_highlightText_wsfss_22",
12
+ annotationLabel: "_annotationLabel_wsfss_34",
13
+ disabled: "_disabled_wsfss_42",
14
+ focusableWrapper: "_focusableWrapper_wsfss_47",
15
+ tooltipContent: "_tooltipContent_wsfss_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 };
@@ -79,8 +79,7 @@ import '../styles/mention-component.css';var f = { mention: "_mention_1fsj4_2" }
79
79
  onSubmit: R,
80
80
  popoverContentContainerProps: {
81
81
  ...b.popoverContentContainerProps,
82
- ...t,
83
- avoidCollisions: !1
82
+ ...t
84
83
  },
85
84
  sideOffset: 0,
86
85
  userInfo: {
@@ -1,27 +1,27 @@
1
1
  import '../styles/message-editor2.css';var e = {
2
- messageEditorWrapper: "_messageEditorWrapper_1vfwf_4",
3
- editActionsColumn: "_editActionsColumn_1vfwf_9",
4
- editActionsRow: "_editActionsRow_1vfwf_16",
5
- characterLimitCounter: "_characterLimitCounter_1vfwf_22",
6
- characterLimitCounterExceeded: "_characterLimitCounterExceeded_1vfwf_25",
7
- messageEditor: "_messageEditor_1vfwf_4",
8
- editorEditMode: "_editorEditMode_1vfwf_43",
9
- editorFirstAnnotation: "_editorFirstAnnotation_1vfwf_50",
10
- editorError: "_editorError_1vfwf_50",
11
- editorViewport: "_editorViewport_1vfwf_58",
12
- editorContainer: "_editorContainer_1vfwf_64",
13
- editor: "_editor_1vfwf_43",
14
- editorFade: "_editorFade_1vfwf_110",
15
- editorFadeHidden: "_editorFadeHidden_1vfwf_121",
16
- editorFullWidth: "_editorFullWidth_1vfwf_124",
17
- actionsWrapper: "_actionsWrapper_1vfwf_128",
18
- actionsWrapperInner: "_actionsWrapperInner_1vfwf_138",
19
- errorMessage: "_errorMessage_1vfwf_145",
20
- errorText: "_errorText_1vfwf_154",
21
- editorHasScroll: "_editorHasScroll_1vfwf_163",
22
- editorCharacterLimitExceeded: "_editorCharacterLimitExceeded_1vfwf_174",
23
- characterLimitExceeded: "_characterLimitExceeded_1vfwf_196",
24
- scrolledToBottom: "_scrolledToBottom_1vfwf_199",
25
- anchorElement: "_anchorElement_1vfwf_203"
2
+ messageEditorWrapper: "_messageEditorWrapper_sbwz4_4",
3
+ editActionsColumn: "_editActionsColumn_sbwz4_9",
4
+ editActionsRow: "_editActionsRow_sbwz4_16",
5
+ characterLimitCounter: "_characterLimitCounter_sbwz4_22",
6
+ characterLimitCounterExceeded: "_characterLimitCounterExceeded_sbwz4_25",
7
+ messageEditor: "_messageEditor_sbwz4_4",
8
+ editorEditMode: "_editorEditMode_sbwz4_43",
9
+ editorFirstAnnotation: "_editorFirstAnnotation_sbwz4_50",
10
+ editorError: "_editorError_sbwz4_50",
11
+ editorViewport: "_editorViewport_sbwz4_58",
12
+ editorContainer: "_editorContainer_sbwz4_64",
13
+ editor: "_editor_sbwz4_43",
14
+ editorFade: "_editorFade_sbwz4_110",
15
+ editorFadeHidden: "_editorFadeHidden_sbwz4_121",
16
+ editorFullWidth: "_editorFullWidth_sbwz4_124",
17
+ actionsWrapper: "_actionsWrapper_sbwz4_128",
18
+ actionsWrapperInner: "_actionsWrapperInner_sbwz4_138",
19
+ errorMessage: "_errorMessage_sbwz4_145",
20
+ errorText: "_errorText_sbwz4_154",
21
+ editorHasScroll: "_editorHasScroll_sbwz4_163",
22
+ editorCharacterLimitExceeded: "_editorCharacterLimitExceeded_sbwz4_174",
23
+ characterLimitExceeded: "_characterLimitExceeded_sbwz4_196",
24
+ scrolledToBottom: "_scrolledToBottom_sbwz4_199",
25
+ anchorElement: "_anchorElement_sbwz4_203"
26
26
  };
27
27
  export { e 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 };
@@ -4,65 +4,66 @@ import { ThreadViewState as n, ThreadedAnnotationsProvider as r, useThreadedAnno
4
4
  import { t as a } from "./messages-view.js";
5
5
  import { buildMentionContent as o } from "../esm/lib/v2/utils/build-mention-content.js";
6
6
  import s from "clsx";
7
- import { useCallback as c, useEffect as l, useRef as u } from "react";
8
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
9
- import '../styles/threaded-annotations2.css';var p = {
7
+ import { useCallback as c, useEffect as l, useMemo as u, useRef as d } from "react";
8
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
9
+ import '../styles/threaded-annotations2.css';var m = {
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
+ }, h = ({ messages: r, isResolved: h = !1, resolvedBy: g, resolvedAt: _, onDelete: v, onThreadDelete: y, onAvatarClick: b, onEdit: x, onResolve: S, onUnresolve: C, onPost: w, onPostError: T, userSelectorProps: E, onEditorOpenChange: D, annotationTarget: O, onAnnotationBadgeClick: k, originalContentDeleted: A }) => {
14
+ let { viewState: j, dispatch: M, replyMention: N, isReplyDisabled: P, isAnnotations: F } = i(), I = d(null), L = j !== n.Collapsed, R = r.length > 2, z = j === n.Collapsed && (R || !P && !h);
15
15
  l(() => {
16
- E?.(F);
17
- }, [F, E]), l(() => {
18
- if (!F) return;
16
+ D?.(L);
17
+ }, [L, D]), l(() => {
18
+ if (!L) 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
+ I.current?.contains(n) || document.querySelector(t)?.contains(n) || M({ 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
+ }, [L, M]);
25
+ let B = r.length === 0, V = c(() => M({ type: "CLEAR_MENTION" }), [M]), H = u(() => N ? o(N) : null, [N]), U = c((e) => {
26
+ if (!z) 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, {
31
- onPost: C,
32
- onPostError: w,
33
- onPostSuccess: z,
34
- userSelectorProps: T,
28
+ !e.currentTarget.contains(t) || t.closest("[data-no-expand]") || M({ type: "EXPAND" });
29
+ }, [z, M]);
30
+ return F && B ? /* @__PURE__ */ f(t, {
31
+ onPost: w,
32
+ onPostError: T,
33
+ onPostSuccess: V,
34
+ userSelectorProps: E,
35
35
  isFirstAnnotation: !0
36
- }) : /* @__PURE__ */ f("div", {
37
- ref: P,
38
- className: s(p.threadedAnnotations, L && p.expandable, N && p.annotations),
39
- onClick: L ? B : void 0,
40
- children: [/* @__PURE__ */ d(a, {
36
+ }) : /* @__PURE__ */ p("div", {
37
+ ref: I,
38
+ className: s(m.threadedAnnotations, z && m.expandable, F && m.annotations),
39
+ onClick: z ? U : void 0,
40
+ children: [/* @__PURE__ */ f(a, {
41
41
  messages: r,
42
- isResolved: m,
43
- resolvedBy: h,
44
- resolvedAt: g,
45
- onDelete: _,
46
- onThreadDelete: v,
47
- onAvatarClick: y,
48
- onEdit: b,
49
- onResolve: x,
50
- onUnresolve: S,
51
- annotationTarget: D,
52
- onAnnotationBadgeClick: O
53
- }), k === n.Composing && /* @__PURE__ */ d(t, {
54
- onPost: C,
55
- onPostError: w,
56
- onPostSuccess: z,
57
- initialContent: j ? o(j) : null,
58
- userSelectorProps: T
42
+ isResolved: h,
43
+ resolvedBy: g,
44
+ resolvedAt: _,
45
+ onDelete: v,
46
+ onThreadDelete: y,
47
+ onAvatarClick: b,
48
+ onEdit: x,
49
+ onResolve: S,
50
+ onUnresolve: C,
51
+ annotationTarget: O,
52
+ onAnnotationBadgeClick: k,
53
+ originalContentDeleted: A
54
+ }), j === n.Composing && /* @__PURE__ */ f(t, {
55
+ onPost: w,
56
+ onPostError: T,
57
+ onPostSuccess: V,
58
+ initialContent: H,
59
+ userSelectorProps: E
59
60
  })]
60
61
  });
61
- }, h = (e) => /* @__PURE__ */ d(r, {
62
+ }, g = (e) => /* @__PURE__ */ f(r, {
62
63
  defaultExpanded: e.messages.length === 0,
63
64
  isReplyDisabled: e.isReplyDisabled || e.isResolved,
64
65
  isAnnotations: e.isAnnotations,
65
66
  collapsed: e.collapsed,
66
- children: /* @__PURE__ */ d(m, { ...e })
67
+ children: /* @__PURE__ */ f(h, { ...e })
67
68
  });
68
- export { h as t };
69
+ export { g as t };
@@ -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 };
@@ -101,7 +101,7 @@ var D = (u) => {
101
101
  popoverContentContainerProps: {
102
102
  ...j.popoverContentContainerProps,
103
103
  ...e,
104
- avoidCollisions: !1
104
+ avoidCollisions: !0
105
105
  }
106
106
  })]
107
107
  }), K && /* @__PURE__ */ S("div", {
@@ -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": "সমাধান করুন",
@@ -58,6 +58,8 @@ groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading = সংরক
58
58
  groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel = মেসেজ এডিটর স্ক্রল কন্টেইনার
59
59
  # Aria label for more options button in annotation message
60
60
  groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel = আরও বিকল্প বোতাম
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 = উত্তর দিন
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": "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",
@@ -58,6 +58,8 @@ groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading = Gemmer...
58
58
  groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel = Rulleområde i meddelelseseditor
59
59
  # Aria label for more options button in annotation message
60
60
  groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel = 'Flere valgmuligheder'-knap
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 = Svar
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": "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",
@@ -58,6 +58,8 @@ groupSharedFeatures.threadedAnnotations.messageEditor.saveLoading = Wird gespeic
58
58
  groupSharedFeatures.threadedAnnotations.messageEditor.scrollContainerAriaLabel = Scrollcontainer für den Nachrichten-Bearbeiter
59
59
  # Aria label for more options button in annotation message
60
60
  groupSharedFeatures.threadedAnnotations.moreOptionsAriaLabel = Schaltfläche „Weitere Optionen“
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 = Antworten
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": "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": "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": "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": "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