diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b4e7c45473..fdb77c1ebe9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ ## vNEXT (not yet published) +## v3.3.1 + +### `@liveblocks/react-ui` + +- Fix `Composer` uploading attachments on drop when `showAttachments` is set to + `false`. + ## v3.3.0 ### `@liveblocks/react-ui` diff --git a/package-lock.json b/package-lock.json index 84804ab743d..29d4c524a11 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37336,10 +37336,10 @@ }, "packages/liveblocks-client": { "name": "@liveblocks/client", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": { - "@liveblocks/core": "3.3.0" + "@liveblocks/core": "3.3.1" }, "devDependencies": { "@liveblocks/eslint-config": "*", @@ -37348,7 +37348,7 @@ }, "packages/liveblocks-core": { "name": "@liveblocks/core", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "devDependencies": { "@liveblocks/eslint-config": "*", @@ -37366,11 +37366,11 @@ }, "packages/liveblocks-emails": { "name": "@liveblocks/emails", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": { - "@liveblocks/core": "3.3.0", - "@liveblocks/node": "3.3.0" + "@liveblocks/core": "3.3.1", + "@liveblocks/node": "3.3.1" }, "devDependencies": { "@liveblocks/eslint-config": "*", @@ -37484,10 +37484,10 @@ }, "packages/liveblocks-node": { "name": "@liveblocks/node", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": { - "@liveblocks/core": "3.3.0", + "@liveblocks/core": "3.3.1", "@stablelib/base64": "^1.0.1", "fast-sha256": "^1.3.0", "node-fetch": "^2.6.1" @@ -37502,11 +37502,11 @@ }, "packages/liveblocks-node-lexical": { "name": "@liveblocks/node-lexical", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": { - "@liveblocks/core": "3.3.0", - "@liveblocks/node": "3.3.0", + "@liveblocks/core": "3.3.1", + "@liveblocks/node": "3.3.1", "yjs": "^13.6.18" }, "devDependencies": { @@ -37523,11 +37523,11 @@ }, "packages/liveblocks-node-prosemirror": { "name": "@liveblocks/node-prosemirror", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": { - "@liveblocks/core": "3.3.0", - "@liveblocks/node": "3.3.0", + "@liveblocks/core": "3.3.1", + "@liveblocks/node": "3.3.1", "yjs": "^13.6.20" }, "devDependencies": { @@ -37737,11 +37737,11 @@ }, "packages/liveblocks-react": { "name": "@liveblocks/react", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": { - "@liveblocks/client": "3.3.0", - "@liveblocks/core": "3.3.0" + "@liveblocks/client": "3.3.1", + "@liveblocks/core": "3.3.1" }, "devDependencies": { "@liveblocks/eslint-config": "*", @@ -37771,15 +37771,15 @@ }, "packages/liveblocks-react-blocknote": { "name": "@liveblocks/react-blocknote", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": { - "@liveblocks/client": "3.3.0", - "@liveblocks/core": "3.3.0", - "@liveblocks/react": "3.3.0", - "@liveblocks/react-tiptap": "3.3.0", - "@liveblocks/react-ui": "3.3.0", - "@liveblocks/yjs": "3.3.0", + "@liveblocks/client": "3.3.1", + "@liveblocks/core": "3.3.1", + "@liveblocks/react": "3.3.1", + "@liveblocks/react-tiptap": "3.3.1", + "@liveblocks/react-ui": "3.3.1", + "@liveblocks/yjs": "3.3.1", "@tiptap/core": "^2.7.2", "vitest-tsconfig-paths": "^3.4.1" }, @@ -37816,15 +37816,15 @@ }, "packages/liveblocks-react-lexical": { "name": "@liveblocks/react-lexical", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": { "@floating-ui/react-dom": "^2.1.1", - "@liveblocks/client": "3.3.0", - "@liveblocks/core": "3.3.0", - "@liveblocks/react": "3.3.0", - "@liveblocks/react-ui": "3.3.0", - "@liveblocks/yjs": "3.3.0", + "@liveblocks/client": "3.3.1", + "@liveblocks/core": "3.3.1", + "@liveblocks/react": "3.3.1", + "@liveblocks/react-ui": "3.3.1", + "@liveblocks/yjs": "3.3.1", "@radix-ui/react-select": "^2.1.2", "@radix-ui/react-toggle": "^1.1.0", "yjs": "^13.6.18" @@ -38353,15 +38353,15 @@ }, "packages/liveblocks-react-tiptap": { "name": "@liveblocks/react-tiptap", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": { "@floating-ui/react-dom": "^2.1.2", - "@liveblocks/client": "3.3.0", - "@liveblocks/core": "3.3.0", - "@liveblocks/react": "3.3.0", - "@liveblocks/react-ui": "3.3.0", - "@liveblocks/yjs": "3.3.0", + "@liveblocks/client": "3.3.1", + "@liveblocks/core": "3.3.1", + "@liveblocks/react": "3.3.1", + "@liveblocks/react-ui": "3.3.1", + "@liveblocks/yjs": "3.3.1", "@radix-ui/react-select": "^2.1.2", "@radix-ui/react-toggle": "^1.1.0", "@tiptap/core": "^2.7.2", @@ -38886,13 +38886,13 @@ }, "packages/liveblocks-react-ui": { "name": "@liveblocks/react-ui", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": { "@floating-ui/react-dom": "^2.1.2", - "@liveblocks/client": "3.3.0", - "@liveblocks/core": "3.3.0", - "@liveblocks/react": "3.3.0", + "@liveblocks/client": "3.3.1", + "@liveblocks/core": "3.3.1", + "@liveblocks/react": "3.3.1", "@radix-ui/react-dropdown-menu": "^2.1.2", "@radix-ui/react-popover": "^1.1.2", "@radix-ui/react-slot": "^1.1.0", @@ -40067,11 +40067,11 @@ }, "packages/liveblocks-redux": { "name": "@liveblocks/redux", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": { - "@liveblocks/client": "3.3.0", - "@liveblocks/core": "3.3.0" + "@liveblocks/client": "3.3.1", + "@liveblocks/core": "3.3.1" }, "devDependencies": { "@liveblocks/eslint-config": "*", @@ -40198,10 +40198,10 @@ }, "packages/liveblocks-yjs": { "name": "@liveblocks/yjs", - "version": "3.3.0", + "version": "3.3.1", "dependencies": { - "@liveblocks/client": "3.3.0", - "@liveblocks/core": "3.3.0", + "@liveblocks/client": "3.3.1", + "@liveblocks/core": "3.3.1", "@noble/hashes": "^1.8.0", "js-base64": "^3.7.7", "y-indexeddb": "^9.0.12" @@ -40279,11 +40279,11 @@ }, "packages/liveblocks-zustand": { "name": "@liveblocks/zustand", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "dependencies": { - "@liveblocks/client": "3.3.0", - "@liveblocks/core": "3.3.0" + "@liveblocks/client": "3.3.1", + "@liveblocks/core": "3.3.1" }, "devDependencies": { "@liveblocks/eslint-config": "*", diff --git a/packages/liveblocks-client/package.json b/packages/liveblocks-client/package.json index f1e612ae33d..49c819cbb23 100644 --- a/packages/liveblocks-client/package.json +++ b/packages/liveblocks-client/package.json @@ -1,6 +1,6 @@ { "name": "@liveblocks/client", - "version": "3.3.0", + "version": "3.3.1", "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", "type": "module", @@ -34,7 +34,7 @@ "test:watch": "jest --silent --verbose --color=always --passWithNoTests --watch" }, "dependencies": { - "@liveblocks/core": "3.3.0" + "@liveblocks/core": "3.3.1" }, "devDependencies": { "@liveblocks/eslint-config": "*", diff --git a/packages/liveblocks-core/package.json b/packages/liveblocks-core/package.json index 9070be9a93a..489d9807dc2 100644 --- a/packages/liveblocks-core/package.json +++ b/packages/liveblocks-core/package.json @@ -1,6 +1,6 @@ { "name": "@liveblocks/core", - "version": "3.3.0", + "version": "3.3.1", "description": "Private internals for Liveblocks. DO NOT import directly from this package!", "type": "module", "main": "./dist/index.cjs", diff --git a/packages/liveblocks-emails/package.json b/packages/liveblocks-emails/package.json index 022b53c588b..7425e3d7b00 100644 --- a/packages/liveblocks-emails/package.json +++ b/packages/liveblocks-emails/package.json @@ -1,6 +1,6 @@ { "name": "@liveblocks/emails", - "version": "3.3.0", + "version": "3.3.1", "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", "type": "module", @@ -35,8 +35,8 @@ "test:watch": "jest --silent --verbose --color=always --watch" }, "dependencies": { - "@liveblocks/core": "3.3.0", - "@liveblocks/node": "3.3.0" + "@liveblocks/core": "3.3.1", + "@liveblocks/node": "3.3.1" }, "peerDependencies": { "react": "^18 || ^19 || ^19.0.0-rc" diff --git a/packages/liveblocks-node-lexical/package.json b/packages/liveblocks-node-lexical/package.json index 5db7802c8c4..19fc4f3ebc7 100644 --- a/packages/liveblocks-node-lexical/package.json +++ b/packages/liveblocks-node-lexical/package.json @@ -1,6 +1,6 @@ { "name": "@liveblocks/node-lexical", - "version": "3.3.0", + "version": "3.3.1", "description": "A server-side utility that lets you modify lexical documents hosted in Liveblocks.", "license": "Apache-2.0", "type": "module", @@ -34,8 +34,8 @@ "test:watch": "jest --silent --verbose --color=always --watch" }, "dependencies": { - "@liveblocks/core": "3.3.0", - "@liveblocks/node": "3.3.0", + "@liveblocks/core": "3.3.1", + "@liveblocks/node": "3.3.1", "yjs": "^13.6.18" }, "peerDependencies": { diff --git a/packages/liveblocks-node-prosemirror/package.json b/packages/liveblocks-node-prosemirror/package.json index 63b9ed0de3e..a3ccdb6f39a 100644 --- a/packages/liveblocks-node-prosemirror/package.json +++ b/packages/liveblocks-node-prosemirror/package.json @@ -1,6 +1,6 @@ { "name": "@liveblocks/node-prosemirror", - "version": "3.3.0", + "version": "3.3.1", "description": "A server-side utility that lets you modify prosemirror and tiptap documents hosted in Liveblocks.", "license": "Apache-2.0", "type": "module", @@ -34,8 +34,8 @@ "test:watch": "jest --silent --verbose --color=always --watch" }, "dependencies": { - "@liveblocks/core": "3.3.0", - "@liveblocks/node": "3.3.0", + "@liveblocks/core": "3.3.1", + "@liveblocks/node": "3.3.1", "yjs": "^13.6.20" }, "peerDependencies": { diff --git a/packages/liveblocks-node/package.json b/packages/liveblocks-node/package.json index 1ab08986dc9..00eacc992f3 100644 --- a/packages/liveblocks-node/package.json +++ b/packages/liveblocks-node/package.json @@ -1,6 +1,6 @@ { "name": "@liveblocks/node", - "version": "3.3.0", + "version": "3.3.1", "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", "type": "module", @@ -34,7 +34,7 @@ "test:watch": "jest --silent --verbose --color=always --watch" }, "dependencies": { - "@liveblocks/core": "3.3.0", + "@liveblocks/core": "3.3.1", "@stablelib/base64": "^1.0.1", "fast-sha256": "^1.3.0", "node-fetch": "^2.6.1" diff --git a/packages/liveblocks-react-blocknote/package.json b/packages/liveblocks-react-blocknote/package.json index 7be9d739d63..7989aa9891d 100644 --- a/packages/liveblocks-react-blocknote/package.json +++ b/packages/liveblocks-react-blocknote/package.json @@ -1,6 +1,6 @@ { "name": "@liveblocks/react-blocknote", - "version": "3.3.0", + "version": "3.3.1", "description": "An integration of BlockNote + React to enable collaboration, comments, live cursors, and more with Liveblocks.", "license": "Apache-2.0", "type": "module", @@ -42,12 +42,12 @@ "test:watch": "vitest" }, "dependencies": { - "@liveblocks/client": "3.3.0", - "@liveblocks/core": "3.3.0", - "@liveblocks/react": "3.3.0", - "@liveblocks/react-tiptap": "3.3.0", - "@liveblocks/react-ui": "3.3.0", - "@liveblocks/yjs": "3.3.0", + "@liveblocks/client": "3.3.1", + "@liveblocks/core": "3.3.1", + "@liveblocks/react": "3.3.1", + "@liveblocks/react-tiptap": "3.3.1", + "@liveblocks/react-ui": "3.3.1", + "@liveblocks/yjs": "3.3.1", "@tiptap/core": "^2.7.2", "vitest-tsconfig-paths": "^3.4.1" }, diff --git a/packages/liveblocks-react-lexical/package.json b/packages/liveblocks-react-lexical/package.json index 535736292c8..5f975e51eee 100644 --- a/packages/liveblocks-react-lexical/package.json +++ b/packages/liveblocks-react-lexical/package.json @@ -1,6 +1,6 @@ { "name": "@liveblocks/react-lexical", - "version": "3.3.0", + "version": "3.3.1", "description": "An integration of Lexical + React to enable collaboration, comments, live cursors, and more with Liveblocks.", "license": "Apache-2.0", "type": "module", @@ -43,11 +43,11 @@ }, "dependencies": { "@floating-ui/react-dom": "^2.1.1", - "@liveblocks/client": "3.3.0", - "@liveblocks/core": "3.3.0", - "@liveblocks/react": "3.3.0", - "@liveblocks/react-ui": "3.3.0", - "@liveblocks/yjs": "3.3.0", + "@liveblocks/client": "3.3.1", + "@liveblocks/core": "3.3.1", + "@liveblocks/react": "3.3.1", + "@liveblocks/react-ui": "3.3.1", + "@liveblocks/yjs": "3.3.1", "@radix-ui/react-select": "^2.1.2", "@radix-ui/react-toggle": "^1.1.0", "yjs": "^13.6.18" diff --git a/packages/liveblocks-react-tiptap/package.json b/packages/liveblocks-react-tiptap/package.json index a31f5399a1a..96e6cdc7eb7 100644 --- a/packages/liveblocks-react-tiptap/package.json +++ b/packages/liveblocks-react-tiptap/package.json @@ -1,6 +1,6 @@ { "name": "@liveblocks/react-tiptap", - "version": "3.3.0", + "version": "3.3.1", "description": "An integration of TipTap + React to enable collaboration, comments, live cursors, and more with Liveblocks.", "license": "Apache-2.0", "type": "module", @@ -43,11 +43,11 @@ }, "dependencies": { "@floating-ui/react-dom": "^2.1.2", - "@liveblocks/client": "3.3.0", - "@liveblocks/core": "3.3.0", - "@liveblocks/react": "3.3.0", - "@liveblocks/react-ui": "3.3.0", - "@liveblocks/yjs": "3.3.0", + "@liveblocks/client": "3.3.1", + "@liveblocks/core": "3.3.1", + "@liveblocks/react": "3.3.1", + "@liveblocks/react-ui": "3.3.1", + "@liveblocks/yjs": "3.3.1", "@radix-ui/react-select": "^2.1.2", "@radix-ui/react-toggle": "^1.1.0", "@tiptap/core": "^2.7.2", diff --git a/packages/liveblocks-react-ui/package.json b/packages/liveblocks-react-ui/package.json index b4d3923ac51..702b57e25d6 100644 --- a/packages/liveblocks-react-ui/package.json +++ b/packages/liveblocks-react-ui/package.json @@ -1,6 +1,6 @@ { "name": "@liveblocks/react-ui", - "version": "3.3.0", + "version": "3.3.1", "description": "A set of React pre-built components for the Liveblocks products. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.", "license": "Apache-2.0", "type": "module", @@ -76,9 +76,9 @@ }, "dependencies": { "@floating-ui/react-dom": "^2.1.2", - "@liveblocks/client": "3.3.0", - "@liveblocks/core": "3.3.0", - "@liveblocks/react": "3.3.0", + "@liveblocks/client": "3.3.1", + "@liveblocks/core": "3.3.1", + "@liveblocks/react": "3.3.1", "@radix-ui/react-dropdown-menu": "^2.1.2", "@radix-ui/react-popover": "^1.1.2", "@radix-ui/react-slot": "^1.1.0", diff --git a/packages/liveblocks-react-ui/src/components/Composer.tsx b/packages/liveblocks-react-ui/src/components/Composer.tsx index 9b18fa4fd83..4f38bbdc8c9 100644 --- a/packages/liveblocks-react-ui/src/components/Composer.tsx +++ b/packages/liveblocks-react-ui/src/components/Composer.tsx @@ -548,7 +548,7 @@ function ComposerEditorContainer({ }, [showFormattingControls]); const [isDraggingOver, dropAreaProps] = useComposerAttachmentsDropArea({ - disabled: disabled || hasMaxAttachments, + disabled: disabled || !showAttachments || hasMaxAttachments, }); useLayoutEffect(() => { diff --git a/packages/liveblocks-react/package.json b/packages/liveblocks-react/package.json index bca7db5763e..cfc946f249d 100644 --- a/packages/liveblocks-react/package.json +++ b/packages/liveblocks-react/package.json @@ -1,6 +1,6 @@ { "name": "@liveblocks/react", - "version": "3.3.0", + "version": "3.3.1", "description": "A set of React hooks and providers to use Liveblocks declaratively. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.", "license": "Apache-2.0", "type": "module", @@ -61,8 +61,8 @@ "showdeps": "depcruise src --include-only '^src' --exclude='__tests__' --output-type dot | dot -T svg > /tmp/dependency-graph.svg && open /tmp/dependency-graph.svg" }, "dependencies": { - "@liveblocks/client": "3.3.0", - "@liveblocks/core": "3.3.0" + "@liveblocks/client": "3.3.1", + "@liveblocks/core": "3.3.1" }, "peerDependencies": { "@types/react": "*", diff --git a/packages/liveblocks-redux/package.json b/packages/liveblocks-redux/package.json index 56bfcf5e272..2959ba60e7d 100644 --- a/packages/liveblocks-redux/package.json +++ b/packages/liveblocks-redux/package.json @@ -1,6 +1,6 @@ { "name": "@liveblocks/redux", - "version": "3.3.0", + "version": "3.3.1", "description": "A store enhancer to integrate Liveblocks into Redux stores. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.", "license": "Apache-2.0", "type": "module", @@ -33,8 +33,8 @@ "test:watch": "jest --silent --verbose --color=always --watch" }, "dependencies": { - "@liveblocks/client": "3.3.0", - "@liveblocks/core": "3.3.0" + "@liveblocks/client": "3.3.1", + "@liveblocks/core": "3.3.1" }, "peerDependencies": { "redux": "^4 || ^5" diff --git a/packages/liveblocks-yjs/package.json b/packages/liveblocks-yjs/package.json index 4b2b60bfb46..d7cfabf3efe 100644 --- a/packages/liveblocks-yjs/package.json +++ b/packages/liveblocks-yjs/package.json @@ -1,6 +1,6 @@ { "name": "@liveblocks/yjs", - "version": "3.3.0", + "version": "3.3.1", "description": "Integrate your existing or new Yjs documents with Liveblocks.", "icense": "Apache-2.0", "type": "module", @@ -33,8 +33,8 @@ "test:watch": "jest --silent --verbose --color=always --watch" }, "dependencies": { - "@liveblocks/client": "3.3.0", - "@liveblocks/core": "3.3.0", + "@liveblocks/client": "3.3.1", + "@liveblocks/core": "3.3.1", "@noble/hashes": "^1.8.0", "js-base64": "^3.7.7", "y-indexeddb": "^9.0.12" diff --git a/packages/liveblocks-zustand/package.json b/packages/liveblocks-zustand/package.json index a06cef0fb73..67bb3df5135 100644 --- a/packages/liveblocks-zustand/package.json +++ b/packages/liveblocks-zustand/package.json @@ -1,6 +1,6 @@ { "name": "@liveblocks/zustand", - "version": "3.3.0", + "version": "3.3.1", "description": "A middleware for Zustand to automatically synchronize your stores with Liveblocks. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.", "license": "Apache-2.0", "type": "module", @@ -34,8 +34,8 @@ "test:watch": "jest --silent --verbose --color=always --watch" }, "dependencies": { - "@liveblocks/client": "3.3.0", - "@liveblocks/core": "3.3.0" + "@liveblocks/client": "3.3.1", + "@liveblocks/core": "3.3.1" }, "peerDependencies": { "zustand": "^5.0.1"