@blocknote/ariakit 0.32.0-hackdays.0 → 0.32.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.
- package/dist/blocknote-ariakit.cjs +1 -1
- package/dist/blocknote-ariakit.cjs.map +1 -1
- package/dist/blocknote-ariakit.js +194 -194
- package/dist/blocknote-ariakit.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +3 -3
- package/src/comments/Comment.tsx +7 -2
package/src/comments/Comment.tsx
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { Group as AriakitGroup } from "@ariakit/react";
|
|
2
2
|
|
|
3
3
|
import { assertEmpty } from "@blocknote/core";
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
ComponentProps,
|
|
6
|
+
useDictionary,
|
|
7
|
+
useFocusWithin,
|
|
8
|
+
} from "@blocknote/react";
|
|
5
9
|
import { forwardRef, useState } from "react";
|
|
6
10
|
|
|
7
11
|
const AuthorInfo = forwardRef<
|
|
@@ -12,6 +16,7 @@ const AuthorInfo = forwardRef<
|
|
|
12
16
|
>
|
|
13
17
|
>((props, _ref) => {
|
|
14
18
|
const { authorInfo, timeString, edited, ...rest } = props;
|
|
19
|
+
const dict = useDictionary();
|
|
15
20
|
|
|
16
21
|
assertEmpty(rest, false);
|
|
17
22
|
|
|
@@ -34,7 +39,7 @@ const AuthorInfo = forwardRef<
|
|
|
34
39
|
<div className={"bn-ak-username"}>
|
|
35
40
|
{authorInfo.username}
|
|
36
41
|
<span>
|
|
37
|
-
{timeString} {edited &&
|
|
42
|
+
{timeString} {edited && `(${dict.comments.edited})`}
|
|
38
43
|
</span>
|
|
39
44
|
</div>
|
|
40
45
|
</AriakitGroup>
|