@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
package/dist/i18n/zh-TW.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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._annotationBadge_wsfss_1._annotationBadge_wsfss_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_wsfss_16{flex-shrink:0;align-items:center;display:inline-flex}._highlightText_wsfss_22{text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0;overflow:hidden}._highlightText_wsfss_22._highlightText_wsfss_22{font-style:italic}._annotationLabel_wsfss_34{text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0;overflow:hidden}._disabled_wsfss_42{background-color:var(--gray-10);cursor:default}._focusableWrapper_wsfss_47{min-width:0;max-width:100%;overflow:hidden}._tooltipContent_wsfss_53{white-space:nowrap;max-width:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._messageEditorWrapper_sbwz4_4{cursor:auto;width:100%}._editActionsColumn_sbwz4_9{align-items:flex-end;gap:var(--bp-space-010);flex-direction:column;display:flex}._editActionsRow_sbwz4_16{align-items:center;gap:var(--bp-space-020);display:flex}._characterLimitCounter_sbwz4_22{white-space:nowrap}._characterLimitCounter_sbwz4_22._characterLimitCounterExceeded_sbwz4_25{font-weight:var(--font-weights-bold)}._messageEditor_sbwz4_4{--gradient-fade-height:var(--bp-size-040);box-sizing:border-box;padding:.625rem var(--bp-space-005) .625rem var(--bp-space-040);background-color:var(--surface-surface);outline:var(--bp-border-01) solid var(--border-divider-border);border-radius:var(--bp-radius-10);gap:var(--bp-space-020) var(--bp-space-010);cursor:auto;flex-wrap:wrap;width:100%;display:flex;position:relative}._messageEditor_sbwz4_4._editorEditMode_sbwz4_43{--gradient-fade-height:var(--bp-size-050)}._messageEditor_sbwz4_4:focus-within{outline-width:var(--bp-border-02);outline-color:var(--border-input-border-focus)}._messageEditor_sbwz4_4._editorFirstAnnotation_sbwz4_50:not(._editorError_sbwz4_50):focus-within{outline-width:var(--bp-border-01);outline-color:var(--border-divider-border)}._messageEditor_sbwz4_4._editorError_sbwz4_50{outline-color:var(--bp-border-message-border-error);outline-width:var(--bp-border-02)}._messageEditor_sbwz4_4 ._editorViewport_sbwz4_58{width:fit-content;min-width:calc(100% - 2.875rem);margin:auto 0;position:relative}._messageEditor_sbwz4_4 ._editorViewport_sbwz4_58 ._editorContainer_sbwz4_64{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:var(--black-opacity-50) transparent;position:relative;overflow-y:scroll}@supports not (scrollbar-color:gray transparent){._messageEditor_sbwz4_4 ._editorViewport_sbwz4_58 ._editorContainer_sbwz4_64{scrollbar-width:initial}._messageEditor_sbwz4_4 ._editorViewport_sbwz4_58 ._editorContainer_sbwz4_64::-webkit-scrollbar{width:var(--size-2);background-color:#0000}._messageEditor_sbwz4_4 ._editorViewport_sbwz4_58 ._editorContainer_sbwz4_64::-webkit-scrollbar-thumb{background:var(--black-opacity-50);border-radius:var(--radius-2)}._messageEditor_sbwz4_4 ._editorViewport_sbwz4_58 ._editorContainer_sbwz4_64::-webkit-scrollbar-thumb:hover{background:var(--black-opacity-50)}}._messageEditor_sbwz4_4 ._editorViewport_sbwz4_58 ._editorContainer_sbwz4_64{max-height:10rem;padding:.375rem .625rem .375rem 0}._messageEditor_sbwz4_4 ._editorViewport_sbwz4_58 ._editorContainer_sbwz4_64 ._editor_sbwz4_43{outline:none;width:100%}._messageEditor_sbwz4_4 ._editorViewport_sbwz4_58 ._editorContainer_sbwz4_64 ._editor_sbwz4_43 [data-placeholder]:first-child:before{font-family:var(--font-families-sans);font-size:var(--bp-font-size-05);font-weight:var(--font-weights-regular);line-height:var(--bp-font-line-height-04);letter-spacing:var(--bp-font-letter-spacing-01);color:var(--text-text-on-light-tertiary);content:attr(data-placeholder);float:left;pointer-events:none;height:0}._messageEditor_sbwz4_4 ._editorViewport_sbwz4_58 ._editorFade_sbwz4_110{height:var(--bp-size-060);background:linear-gradient(to bottom, transparent, var(--bp-canvas-background,var(--surface-surface)));pointer-events:none;opacity:1;transition:opacity .15s ease-out;position:absolute;bottom:0;left:0;right:0}._messageEditor_sbwz4_4 ._editorViewport_sbwz4_58 ._editorFade_sbwz4_110._editorFadeHidden_sbwz4_121{opacity:0}._messageEditor_sbwz4_4 ._editorFullWidth_sbwz4_124{width:100%;min-width:100%}._messageEditor_sbwz4_4 ._actionsWrapper_sbwz4_128{min-height:var(--bp-size-080);width:fit-content;padding-right:var(--bp-space-020);flex:1;justify-content:flex-end;align-items:center;display:flex;position:relative}._messageEditor_sbwz4_4 ._actionsWrapper_sbwz4_128 ._actionsWrapperInner_sbwz4_138{align-items:center;gap:var(--bp-space-020);width:fit-content;display:flex;position:relative}._messageEditor_sbwz4_4 ._errorMessage_sbwz4_145{gap:var(--bp-space-010);align-items:center;min-width:0;display:flex}._messageEditor_sbwz4_4 ._errorMessage_sbwz4_145>:first-child{flex-shrink:0}._messageEditor_sbwz4_4 ._errorMessage_sbwz4_145 ._errorText_sbwz4_154{color:var(--bp-text-text-destructive-on-light);-webkit-line-clamp:1;-webkit-box-orient:vertical;min-width:0;display:-webkit-box;overflow:hidden}._editorHasScroll_sbwz4_163{gap:unset;padding-bottom:0}._editorHasScroll_sbwz4_163 ._editorViewport_sbwz4_58 ._editorContainer_sbwz4_64{padding-bottom:var(--bp-space-040);scroll-padding-bottom:var(--bp-space-040)}._editorHasScroll_sbwz4_163 ._editorViewport_sbwz4_58 ._editorFade_sbwz4_110{display:none}._editorHasScroll_sbwz4_163._editorCharacterLimitExceeded_sbwz4_174 ._editorViewport_sbwz4_58 ._editorContainer_sbwz4_64{padding-bottom:calc(var(--gradient-fade-height,var(--bp-size-040)) + var(--bp-space-040));scroll-padding-bottom:calc(var(--gradient-fade-height,var(--bp-size-040)) + var(--bp-space-040))}._editorHasScroll_sbwz4_163 ._actionsWrapper_sbwz4_128{min-width:100%;height:1.875rem;padding-right:0}._editorHasScroll_sbwz4_163 ._actionsWrapper_sbwz4_128 ._actionsWrapperInner_sbwz4_138{bottom:.625rem;left:0;right:var(--bp-space-020);pointer-events:none;background:linear-gradient(to bottom, #fff0 10%, #ffffffbf 18%, #fffffff7 28%, var(--bp-canvas-background,var(--surface-surface)) 71%);justify-content:flex-end;width:auto;position:absolute}._editorHasScroll_sbwz4_163 ._actionsWrapper_sbwz4_128 ._actionsWrapperInner_sbwz4_138>*{pointer-events:auto}._editorHasScroll_sbwz4_163 ._actionsWrapper_sbwz4_128 ._actionsWrapperInner_sbwz4_138._characterLimitExceeded_sbwz4_196{padding-top:var(--gradient-fade-height,var(--bp-size-040))}._editorHasScroll_sbwz4_163 ._actionsWrapper_sbwz4_128 ._actionsWrapperInner_sbwz4_138._scrolledToBottom_sbwz4_199{background:0 0}._anchorElement_sbwz4_203{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0}
|
|
@@ -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 {};
|
|
@@ -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.
|
|
3
|
+
"version": "1.84.1",
|
|
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.
|
|
20
|
-
"@box/blueprint-web-assets": "^4.115.
|
|
21
|
-
"@box/collaboration-popover": "^1.61.
|
|
22
|
-
"@box/readable-time": "^1.40.
|
|
23
|
-
"@box/user-selector": "^1.75.
|
|
19
|
+
"@box/blueprint-web": "^14.22.0",
|
|
20
|
+
"@box/blueprint-web-assets": "^4.115.9",
|
|
21
|
+
"@box/collaboration-popover": "^1.61.13",
|
|
22
|
+
"@box/readable-time": "^1.40.13",
|
|
23
|
+
"@box/user-selector": "^1.75.13",
|
|
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.
|
|
31
|
-
"@box/blueprint-web-assets": "^4.115.
|
|
30
|
+
"@box/blueprint-web": "^14.22.0",
|
|
31
|
+
"@box/blueprint-web-assets": "^4.115.9",
|
|
32
32
|
"@box/eslint-plugin-blueprint": "1.1.18",
|
|
33
|
-
"@box/readable-time": "^1.40.
|
|
34
|
-
"@box/storybook-utils": "^0.18.
|
|
35
|
-
"@box/user-selector": "^1.75.
|
|
33
|
+
"@box/readable-time": "^1.40.13",
|
|
34
|
+
"@box/storybook-utils": "^0.18.9",
|
|
35
|
+
"@box/user-selector": "^1.75.13",
|
|
36
36
|
"react": "^18.0.0",
|
|
37
37
|
"react-dom": "^18.0.0"
|
|
38
38
|
},
|