Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions docs/pages/get-started/nextjs-comments-ag-grid.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ components from
```tsx file="app/CommentCell.tsx"
"use client";

import { FloatingComposer, FloatingThread } from "@liveblocks/react-ui";
import {
Comment,
FloatingComposer,
FloatingThread,
} from "@liveblocks/react-ui";
import { CustomCellRendererProps } from "ag-grid-react";
import { useCellThread } from "./CellThreadContext";

Expand Down Expand Up @@ -249,7 +253,15 @@ components from
style={{ zIndex: 10 }}
autoFocus
>
<button>💬</button>
<Comment.Avatar
style={{
width: 28,
height: 28,
borderRadius: "100%",
cursor: "pointer",
}}
userId={thread.comments[0]?.userId}
/>
</FloatingThread>
)}
</div>
Expand Down
17 changes: 15 additions & 2 deletions docs/pages/get-started/nextjs-comments-table.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@ components from

import { useState } from "react";
import { useThreads } from "@liveblocks/react/suspense";
import { FloatingComposer, FloatingThread } from "@liveblocks/react-ui";
import {
Comment,
FloatingComposer,
FloatingThread,
} from "@liveblocks/react-ui";

const TABLE_DATA = [
{ id: "1", name: "Laptop", price: 1000 },
Expand Down Expand Up @@ -226,7 +230,16 @@ components from
}}
autoFocus
>
<button style={{ marginLeft: 16 }}>💬</button>
<Comment.Avatar
style={{
marginLeft: 16,
width: 28,
height: 28,
borderRadius: "100%",
cursor: "pointer",
}}
userId={thread.comments[0]?.userId}
/>
</FloatingThread>
) : (
<FloatingComposer
Expand Down
5 changes: 0 additions & 5 deletions examples/nextjs-comments-ag-grid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
<img src="https://img.shields.io/badge/next.js-message?style=flat&logo=next.js&color=07f&logoColor=fff" alt="Next.js" />
</p>

<p>
<img src="https://img.shields.io/badge/react-message?style=flat&logo=react&color=0bd&logoColor=fff" alt="React" />
<img src="https://img.shields.io/badge/next.js-message?style=flat&logo=next.js&color=07f&logoColor=fff" alt="Next.js" />
</p>

This example shows how to build commenting to your
[AG Grid](https://www.ag-grid.com/) table with
[Liveblocks](https://liveblocks.io) and [Next.js](https://nextjs.org/).
Expand Down
98 changes: 49 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/liveblocks-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@liveblocks/client",
"version": "3.14.1",
"version": "3.15.0",
"description": "A client that lets you interact with Liveblocks servers. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
"license": "Apache-2.0",
"author": "Liveblocks Inc.",
Expand Down Expand Up @@ -36,7 +36,7 @@
"test:watch": "NODE_OPTIONS=\"--no-deprecation\" vitest"
},
"dependencies": {
"@liveblocks/core": "3.14.1"
"@liveblocks/core": "3.15.0"
},
"devDependencies": {
"@liveblocks/eslint-config": "*",
Expand Down
2 changes: 1 addition & 1 deletion packages/liveblocks-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@liveblocks/core",
"version": "3.14.1",
"version": "3.15.0",
"description": "Private internals for Liveblocks. DO NOT import directly from this package!",
"type": "module",
"main": "./dist/index.cjs",
Expand Down
6 changes: 3 additions & 3 deletions packages/liveblocks-emails/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@liveblocks/emails",
"version": "3.14.1",
"version": "3.15.0",
"description": "A set of functions and utilities to make sending emails based on Liveblocks notification events easy. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
"license": "Apache-2.0",
"author": "Liveblocks Inc.",
Expand Down Expand Up @@ -37,8 +37,8 @@
"test:watch": "NODE_OPTIONS=\"--no-deprecation\" vitest"
},
"dependencies": {
"@liveblocks/core": "3.14.1",
"@liveblocks/node": "3.14.1"
"@liveblocks/core": "3.15.0",
"@liveblocks/node": "3.15.0"
},
"peerDependencies": {
"react": "^18 || ^19 || ^19.0.0-rc"
Expand Down
6 changes: 3 additions & 3 deletions packages/liveblocks-node-lexical/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@liveblocks/node-lexical",
"version": "3.14.1",
"version": "3.15.0",
"description": "A server-side utility that lets you modify lexical documents hosted in Liveblocks.",
"license": "Apache-2.0",
"author": "Liveblocks Inc.",
Expand Down Expand Up @@ -36,8 +36,8 @@
"test:watch": "NODE_OPTIONS=\"--no-deprecation\" vitest"
},
"dependencies": {
"@liveblocks/core": "3.14.1",
"@liveblocks/node": "3.14.1",
"@liveblocks/core": "3.15.0",
"@liveblocks/node": "3.15.0",
"yjs": "^13.6.18"
},
"peerDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/liveblocks-node-prosemirror/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@liveblocks/node-prosemirror",
"version": "3.14.1",
"version": "3.15.0",
"description": "A server-side utility that lets you modify prosemirror and tiptap documents hosted in Liveblocks.",
"license": "Apache-2.0",
"author": "Liveblocks Inc.",
Expand Down Expand Up @@ -36,8 +36,8 @@
"test:watch": "NODE_OPTIONS=\"--no-deprecation\" vitest"
},
"dependencies": {
"@liveblocks/core": "3.14.1",
"@liveblocks/node": "3.14.1",
"@liveblocks/core": "3.15.0",
"@liveblocks/node": "3.15.0",
"yjs": "^13.6.20"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/liveblocks-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@liveblocks/node",
"version": "3.14.1",
"version": "3.15.0",
"description": "A server-side utility that lets you set up a Liveblocks authentication endpoint. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
"license": "Apache-2.0",
"author": "Liveblocks Inc.",
Expand Down Expand Up @@ -36,7 +36,7 @@
"test:watch": "NODE_OPTIONS=\"--no-deprecation\" vitest"
},
"dependencies": {
"@liveblocks/core": "3.14.1",
"@liveblocks/core": "3.15.0",
"@stablelib/base64": "^1.0.1",
"fast-sha256": "^1.3.0",
"node-fetch": "^2.6.1"
Expand Down
Loading
Loading