@box/threaded-annotations 1.91.6 → 1.91.8
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/message-footer.js +10 -9
- package/dist/chunks/threaded-annotations2.js +1 -0
- package/dist/esm/lib/components/v2/message-editor/message-editor.js +21 -21
- package/dist/esm/lib/components/v2/message-editor/messages.js +7 -3
- package/dist/esm/lib/components/v2/message-header/message-header.js +2 -1
- package/dist/esm/lib/components/v2/text-message/text-message.js +12 -9
- package/dist/i18n/bn-IN.js +4 -2
- package/dist/i18n/da-DK.js +4 -2
- package/dist/i18n/de-DE.js +4 -2
- package/dist/i18n/en-AU.js +4 -2
- package/dist/i18n/en-CA.js +4 -2
- package/dist/i18n/en-GB.js +4 -2
- package/dist/i18n/en-US.js +2 -1
- package/dist/i18n/en-US.properties +4 -2
- package/dist/i18n/en-x-pseudo.js +46 -44
- package/dist/i18n/en-x-pseudo.properties +44 -44
- package/dist/i18n/es-419.js +4 -2
- package/dist/i18n/es-ES.js +4 -2
- package/dist/i18n/fi-FI.js +4 -2
- package/dist/i18n/fr-CA.js +4 -2
- package/dist/i18n/fr-FR.js +4 -2
- package/dist/i18n/hi-IN.js +4 -2
- package/dist/i18n/it-IT.js +4 -2
- package/dist/i18n/ja-JP.js +4 -2
- package/dist/i18n/json/src/lib/components/v2/message-editor/messages.json +1 -1
- package/dist/i18n/ko-KR.js +4 -2
- package/dist/i18n/nb-NO.js +4 -2
- package/dist/i18n/nl-NL.js +4 -2
- package/dist/i18n/pl-PL.js +4 -2
- package/dist/i18n/pt-BR.js +4 -2
- package/dist/i18n/ru-RU.js +4 -2
- package/dist/i18n/sv-SE.js +4 -2
- package/dist/i18n/tr-TR.js +4 -2
- package/dist/i18n/zh-CN.js +4 -2
- package/dist/i18n/zh-TW.js +4 -2
- package/dist/styles/message-footer.css +1 -1
- package/dist/types/lib/components/v2/message-editor/message-editor.types.d.ts +5 -0
- package/dist/types/lib/components/v2/message-editor/messages.d.ts +6 -1
- package/dist/types/lib/components/v2/message-editor/stories/utils/test-utils.d.ts +2 -0
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._textMessage_xa9xe_4{flex-direction:column;flex:1;width:100%;height:100%;display:flex;position:relative;overflow:visible}._textMessage_xa9xe_4 ._contentWrapper_xa9xe_13{gap:var(--space-2);margin-top:.125rem;display:flex}._textMessage_xa9xe_4 ._contentWrapper_xa9xe_13 ._threadedIndicator_xa9xe_18{width:var(--space-7);flex-shrink:0;position:relative}._textMessage_xa9xe_4 ._contentWrapper_xa9xe_13 ._threadedIndicator_xa9xe_18:after{content:"";left:50%;top:var(--space-05);bottom:var(--space-05);width:var(--border-2);background-color:var(--border-divider-border);border-radius:var(--radius-1);position:absolute;transform:translate(-50%)}._textMessage_xa9xe_4 ._contentWrapper_xa9xe_13 ._threadedIndicatorHidden_xa9xe_34:after{visibility:hidden}._textMessage_xa9xe_4 ._contentWrapper_xa9xe_13 ._messageContent_xa9xe_37{overflow-wrap:break-word;flex-direction:column;flex:1;min-width:0;display:flex}._textMessage_xa9xe_4 ._contentWrapper_xa9xe_13 ._messageContent_xa9xe_37 ._inlineEditSlot_xa9xe_44{margin-top:var(--space-2)}._textMessage_xa9xe_4 ._contentWrapper_xa9xe_13 ._messageContent_xa9xe_37 ._annotationBadgeWrapper_xa9xe_47{min-width:0;max-width:100%;padding-bottom:var(--space-1);flex-direction:column;align-items:flex-start;display:flex;overflow:hidden}._textMessage_xa9xe_4 ._contentWrapper_xa9xe_13 ._messageFooter_xa9xe_56{align-items:center;gap:var(--space-1);padding-bottom:var(--space-2);flex-direction:row;display:flex}._textMessage_xa9xe_4 ._contentWrapper_xa9xe_13 ._messageFooter_xa9xe_56 ._readableTimeWrapper_xa9xe_63{cursor:auto}._replyButton_xa9xe_67{padding-top:var(--space-05);padding-bottom:var(--space-05);opacity:0;transition:opacity .1s}[data-message-wrapper]:hover ._replyButton_xa9xe_67,[data-message-wrapper]:focus-within ._replyButton_xa9xe_67{opacity:1}@media (pointer:coarse),(hover:none){._replyButton_xa9xe_67{opacity:1}}
|
|
@@ -10,6 +10,11 @@ interface BaseMessageEditorProps {
|
|
|
10
10
|
disableComponent?: boolean;
|
|
11
11
|
/** When true (create mode only), editor does not expand to full width. Defaults to false. */
|
|
12
12
|
isFirstAnnotation?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* When true, shows reply placeholder copy; otherwise shows add-comment placeholder.
|
|
15
|
+
* Defaults to false.
|
|
16
|
+
*/
|
|
17
|
+
isReply?: boolean;
|
|
13
18
|
/** Optional initial editor content used to prefill the editor (both edit and post modes). */
|
|
14
19
|
initialContent?: JSONContent | string | null;
|
|
15
20
|
/** Maximum character count. Defaults to 5000. */
|
|
@@ -19,7 +19,12 @@ declare const messages: {
|
|
|
19
19
|
description: string;
|
|
20
20
|
id: string;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
placeholderAddComment: {
|
|
23
|
+
defaultMessage: string;
|
|
24
|
+
description: string;
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
27
|
+
placeholderReply: {
|
|
23
28
|
defaultMessage: string;
|
|
24
29
|
description: string;
|
|
25
30
|
id: string;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare const V2_PLACEHOLDER_ADD_COMMENT = "Add a comment, @ to mention";
|
|
2
|
+
export declare const V2_PLACEHOLDER_REPLY = "Reply, @ to mention";
|
|
1
3
|
export declare const waitForPlaceholderToAppear: (canvasElement: HTMLElement) => Promise<void>;
|
|
2
4
|
/**
|
|
3
5
|
* Waits for the v2 message editor placeholder to disappear (e.g. after typing).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/threaded-annotations",
|
|
3
|
-
"version": "1.91.
|
|
3
|
+
"version": "1.91.8",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@tanstack/react-virtual": "^3.10.8",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"@box/blueprint-web": "^14.33.0",
|
|
20
20
|
"@box/blueprint-web-assets": "^4.119.4",
|
|
21
|
-
"@box/collaboration-popover": "^1.62.
|
|
22
|
-
"@box/readable-time": "^1.41.
|
|
23
|
-
"@box/user-selector": "^1.76.
|
|
21
|
+
"@box/collaboration-popover": "^1.62.19",
|
|
22
|
+
"@box/readable-time": "^1.41.19",
|
|
23
|
+
"@box/user-selector": "^1.76.19",
|
|
24
24
|
"clsx": "^1.2.1",
|
|
25
25
|
"react": "^18.0.0",
|
|
26
26
|
"react-dom": "^18.0.0",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"@box/blueprint-web": "^14.33.0",
|
|
31
31
|
"@box/blueprint-web-assets": "^4.119.4",
|
|
32
32
|
"@box/eslint-plugin-blueprint": "1.2.2",
|
|
33
|
-
"@box/readable-time": "^1.41.
|
|
33
|
+
"@box/readable-time": "^1.41.19",
|
|
34
34
|
"@box/storybook-utils": "^0.19.13",
|
|
35
|
-
"@box/user-selector": "^1.76.
|
|
35
|
+
"@box/user-selector": "^1.76.19",
|
|
36
36
|
"react": "^18.0.0",
|
|
37
37
|
"react-dom": "^18.0.0"
|
|
38
38
|
},
|