@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.
- package/dist/chunks/annotation-badge.js +47 -33
- package/dist/chunks/mention-component.js +1 -2
- package/dist/chunks/message-editor2.module.js +24 -24
- package/dist/chunks/messages-view.js +27 -26
- package/dist/chunks/threaded-annotations2.js +45 -44
- package/dist/esm/lib/components/v2/annotation-badge/messages.js +10 -4
- package/dist/esm/lib/components/v2/message-editor/message-editor.js +1 -1
- package/dist/esm/lib/components/v2/text-message/text-message.js +10 -9
- package/dist/i18n/bn-IN.js +1 -0
- package/dist/i18n/bn-IN.properties +2 -0
- package/dist/i18n/da-DK.js +1 -0
- package/dist/i18n/da-DK.properties +2 -0
- package/dist/i18n/de-DE.js +1 -0
- package/dist/i18n/de-DE.properties +2 -0
- package/dist/i18n/en-AU.js +1 -0
- package/dist/i18n/en-AU.properties +2 -0
- package/dist/i18n/en-CA.js +1 -0
- package/dist/i18n/en-CA.properties +2 -0
- package/dist/i18n/en-GB.js +1 -0
- package/dist/i18n/en-GB.properties +2 -0
- package/dist/i18n/en-US.js +1 -0
- package/dist/i18n/en-US.properties +2 -0
- package/dist/i18n/en-x-pseudo.js +42 -41
- package/dist/i18n/en-x-pseudo.properties +43 -41
- package/dist/i18n/es-419.js +1 -0
- package/dist/i18n/es-419.properties +2 -0
- package/dist/i18n/es-ES.js +1 -0
- package/dist/i18n/es-ES.properties +2 -0
- package/dist/i18n/fi-FI.js +1 -0
- package/dist/i18n/fi-FI.properties +2 -0
- package/dist/i18n/fr-CA.js +1 -0
- package/dist/i18n/fr-CA.properties +2 -0
- package/dist/i18n/fr-FR.js +1 -0
- package/dist/i18n/fr-FR.properties +2 -0
- package/dist/i18n/hi-IN.js +1 -0
- package/dist/i18n/hi-IN.properties +2 -0
- package/dist/i18n/it-IT.js +1 -0
- package/dist/i18n/it-IT.properties +2 -0
- package/dist/i18n/ja-JP.js +1 -0
- package/dist/i18n/ja-JP.properties +2 -0
- package/dist/i18n/json/src/lib/components/v2/annotation-badge/messages.json +1 -1
- package/dist/i18n/ko-KR.js +1 -0
- package/dist/i18n/ko-KR.properties +2 -0
- package/dist/i18n/nb-NO.js +1 -0
- package/dist/i18n/nb-NO.properties +2 -0
- package/dist/i18n/nl-NL.js +1 -0
- package/dist/i18n/nl-NL.properties +2 -0
- package/dist/i18n/pl-PL.js +1 -0
- package/dist/i18n/pl-PL.properties +2 -0
- package/dist/i18n/pt-BR.js +1 -0
- package/dist/i18n/pt-BR.properties +2 -0
- package/dist/i18n/ru-RU.js +1 -0
- package/dist/i18n/ru-RU.properties +2 -0
- package/dist/i18n/sv-SE.js +1 -0
- package/dist/i18n/sv-SE.properties +2 -0
- package/dist/i18n/tr-TR.js +1 -0
- package/dist/i18n/tr-TR.properties +2 -0
- package/dist/i18n/zh-CN.js +1 -0
- package/dist/i18n/zh-CN.properties +2 -0
- package/dist/i18n/zh-TW.js +1 -0
- package/dist/i18n/zh-TW.properties +2 -0
- package/dist/styles/annotation-badge.css +1 -1
- package/dist/styles/message-editor2.css +1 -1
- package/dist/types/lib/components/v2/annotation-badge/annotation-badge.d.ts +2 -1
- package/dist/types/lib/components/v2/annotation-badge/messages.d.ts +5 -0
- package/dist/types/lib/components/v2/messages-view/messages-view.d.ts +2 -1
- package/dist/types/lib/components/v2/text-message/text-message.d.ts +2 -1
- package/dist/types/lib/v2/stories/shared.d.ts +1 -0
- package/dist/types/lib/v2/threaded-annotations.d.ts +3 -0
- 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,
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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]:
|
|
16
|
-
[e.Point]:
|
|
17
|
-
[e.Region]:
|
|
18
|
-
},
|
|
19
|
-
let { formatMessage:
|
|
20
|
-
|
|
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
|
-
|
|
25
|
-
|
|
27
|
+
disabled: f,
|
|
28
|
+
onClick: f ? void 0 : d,
|
|
29
|
+
children: [g && /* @__PURE__ */ c(i, {
|
|
26
30
|
as: "span",
|
|
27
|
-
className:
|
|
28
|
-
color:
|
|
29
|
-
children: /* @__PURE__ */
|
|
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
|
-
}),
|
|
38
|
+
}), _ ? /* @__PURE__ */ c(i, {
|
|
35
39
|
as: "span",
|
|
36
|
-
className:
|
|
37
|
-
color:
|
|
38
|
-
variant: "
|
|
39
|
-
children:
|
|
40
|
-
}) : /* @__PURE__ */
|
|
40
|
+
className: p.highlightText,
|
|
41
|
+
color: v,
|
|
42
|
+
variant: "bodySmallSemibold",
|
|
43
|
+
children: u.highlightedText
|
|
44
|
+
}) : /* @__PURE__ */ c(i, {
|
|
41
45
|
as: "span",
|
|
42
|
-
className:
|
|
43
|
-
color:
|
|
46
|
+
className: p.annotationLabel,
|
|
47
|
+
color: v,
|
|
44
48
|
variant: "bodyDefaultSemibold",
|
|
45
|
-
children:
|
|
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 {
|
|
63
|
+
export { h as t };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import '../styles/message-editor2.css';var e = {
|
|
2
|
-
messageEditorWrapper: "
|
|
3
|
-
editActionsColumn: "
|
|
4
|
-
editActionsRow: "
|
|
5
|
-
characterLimitCounter: "
|
|
6
|
-
characterLimitCounterExceeded: "
|
|
7
|
-
messageEditor: "
|
|
8
|
-
editorEditMode: "
|
|
9
|
-
editorFirstAnnotation: "
|
|
10
|
-
editorError: "
|
|
11
|
-
editorViewport: "
|
|
12
|
-
editorContainer: "
|
|
13
|
-
editor: "
|
|
14
|
-
editorFade: "
|
|
15
|
-
editorFadeHidden: "
|
|
16
|
-
editorFullWidth: "
|
|
17
|
-
actionsWrapper: "
|
|
18
|
-
actionsWrapperInner: "
|
|
19
|
-
errorMessage: "
|
|
20
|
-
errorText: "
|
|
21
|
-
editorHasScroll: "
|
|
22
|
-
editorCharacterLimitExceeded: "
|
|
23
|
-
characterLimitExceeded: "
|
|
24
|
-
scrolledToBottom: "
|
|
25
|
-
anchorElement: "
|
|
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:
|
|
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:
|
|
21
|
-
enabled:
|
|
22
|
-
isExpanded:
|
|
23
|
-
suppressAutoScroll:
|
|
24
|
-
}),
|
|
25
|
-
if (!
|
|
26
|
-
let
|
|
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,
|
|
28
|
+
className: o(u.messagesViewWrapper, N && u.overflowing, N && k && u.withEditorBelow),
|
|
29
29
|
children: [/* @__PURE__ */ l("div", {
|
|
30
|
-
ref:
|
|
31
|
-
className: o(u.messagesView,
|
|
32
|
-
onScroll:
|
|
30
|
+
ref: D,
|
|
31
|
+
className: o(u.messagesView, E && u.scrollable),
|
|
32
|
+
onScroll: M,
|
|
33
33
|
children: [
|
|
34
34
|
/* @__PURE__ */ c(i, {
|
|
35
|
-
...
|
|
36
|
-
showThreadedIndicator:
|
|
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
|
-
|
|
49
|
-
lastUser:
|
|
50
|
-
repliesCount:
|
|
51
|
-
secondLastUser:
|
|
52
|
-
onShowReplies:
|
|
49
|
+
z && B && /* @__PURE__ */ c(r, {
|
|
50
|
+
lastUser: B,
|
|
51
|
+
repliesCount: R.length,
|
|
52
|
+
secondLastUser: V,
|
|
53
|
+
onShowReplies: H
|
|
53
54
|
}),
|
|
54
|
-
|
|
55
|
+
O && R.length > 0 && /* @__PURE__ */ c("div", {
|
|
55
56
|
className: u.repliesContainer,
|
|
56
|
-
children:
|
|
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
|
-
|
|
68
|
-
...
|
|
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
|
-
}),
|
|
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,
|
|
8
|
-
import { jsx as
|
|
9
|
-
import '../styles/threaded-annotations2.css';var
|
|
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
|
-
},
|
|
14
|
-
let { viewState:
|
|
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
|
-
|
|
17
|
-
}, [
|
|
18
|
-
if (!
|
|
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
|
-
|
|
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
|
-
}, [
|
|
25
|
-
let
|
|
26
|
-
if (!
|
|
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]") ||
|
|
29
|
-
}, [
|
|
30
|
-
return
|
|
31
|
-
onPost:
|
|
32
|
-
onPostError:
|
|
33
|
-
onPostSuccess:
|
|
34
|
-
userSelectorProps:
|
|
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__ */
|
|
37
|
-
ref:
|
|
38
|
-
className: s(
|
|
39
|
-
onClick:
|
|
40
|
-
children: [/* @__PURE__ */
|
|
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:
|
|
43
|
-
resolvedBy:
|
|
44
|
-
resolvedAt:
|
|
45
|
-
onDelete:
|
|
46
|
-
onThreadDelete:
|
|
47
|
-
onAvatarClick:
|
|
48
|
-
onEdit:
|
|
49
|
-
onResolve:
|
|
50
|
-
onUnresolve:
|
|
51
|
-
annotationTarget:
|
|
52
|
-
onAnnotationBadgeClick:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
},
|
|
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__ */
|
|
67
|
+
children: /* @__PURE__ */ f(h, { ...e })
|
|
67
68
|
});
|
|
68
|
-
export {
|
|
69
|
+
export { g as t };
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { defineMessages as e } from "react-intl";
|
|
2
|
-
var t = e({
|
|
3
|
-
|
|
4
|
-
|
|
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:
|
|
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":
|
|
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:
|
|
18
|
+
canResolve: O,
|
|
19
19
|
isResolved: _,
|
|
20
|
-
canDelete:
|
|
21
|
-
canEdit:
|
|
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 && !
|
|
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:
|
|
48
|
+
onReply: N ? void 0 : () => M({
|
|
48
49
|
type: "REPLY",
|
|
49
50
|
author: f
|
|
50
51
|
})
|
package/dist/i18n/bn-IN.js
CHANGED
|
@@ -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
|
package/dist/i18n/da-DK.js
CHANGED
|
@@ -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
|
package/dist/i18n/de-DE.js
CHANGED
|
@@ -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
|
package/dist/i18n/en-AU.js
CHANGED
|
@@ -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
|
package/dist/i18n/en-CA.js
CHANGED
|
@@ -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
|
package/dist/i18n/en-GB.js
CHANGED
|
@@ -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
|
package/dist/i18n/en-US.js
CHANGED
|
@@ -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
|