Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@liveblocks/react-ui

Package Overview
Dependencies
Maintainers
5
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liveblocks/react-ui - npm Package Compare versions

Comparing version 2.7.0-beta1 to 2.7.0-beta2

5

dist/components/InboxNotification.js

@@ -226,2 +226,4 @@ 'use client';

showHeader: contents.comments.length > 1,
showAttachments,
showReactions,
overrides: overrides$1

@@ -262,3 +264,4 @@ })));

showAttachments,
showReactions
showReactions,
overrides: overrides$1
}));

@@ -265,0 +268,0 @@ return {

27

dist/components/internal/Attachment.js

@@ -28,3 +28,3 @@ 'use client';

function getFileAttachmentIconGlyph(mimeType) {
if (mimeType === "application/zip" || mimeType === "application/x-rar-compressed" || mimeType === "application/x-7z-compressed" || mimeType === "application/x-zip-compressed" || mimeType === "application/x-tar" || mimeType === "application/gzip") {
if (mimeType === "application/zip" || mimeType === "application/gzip" || mimeType === "application/vnd.rar" || mimeType === "application/x-rar-compressed" || mimeType === "application/x-7z-compressed" || mimeType === "application/x-zip-compressed" || mimeType === "application/x-tar" || mimeType === "application/x-bzip" || mimeType === "application/x-bzip2") {
return /* @__PURE__ */ React.createElement("path", {

@@ -34,3 +34,3 @@ d: "M13 15h2v1h-1.5a.5.5 0 0 0 0 1H15v1h-1.5a.5.5 0 0 0 0 1H15v1h-1.5a.5.5 0 0 0 0 1h1a.5.5 0 0 0 .5-.5V20h1.5a.5.5 0 0 0 0-1H15v-1h1.5a.5.5 0 0 0 0-1H15v-1h1.5a.5.5 0 0 0 .5-.5V15a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2Z"

}
if (mimeType.startsWith("text/")) {
if (mimeType.startsWith("text/") || mimeType.startsWith("font/") || mimeType.startsWith("application/")) {
return /* @__PURE__ */ React.createElement("path", {

@@ -98,17 +98,2 @@ d: "M10 16a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5Zm0 2a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5Zm0 2a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5Zm0 2a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 0 1h-8a.5.5 0 0 1-.5-.5Z"

}
function FileAttachmentLocalImagePreview({
attachment
}) {
const [url, setUrl] = React.useState();
React.useEffect(() => {
const url2 = URL.createObjectURL(attachment.file);
setUrl(url2);
return () => {
URL.revokeObjectURL(url2);
};
}, [attachment.file]);
return /* @__PURE__ */ React.createElement(FileAttachmentImagePreview, {
url
});
}
function FileAttachmentRemoteImagePreview({

@@ -126,9 +111,5 @@ attachment

const isInsideRoom = react.useIsInsideRoom();
const isLocal = attachment.type === "localAttachment";
const isUploaded = attachment.type === "attachment" || attachment.status === "uploaded";
if (attachment.mimeType.startsWith("image/") && attachment.size < IMAGE_PREVIEW_MAX_SIZE) {
if (isLocal) {
return /* @__PURE__ */ React.createElement(FileAttachmentLocalImagePreview, {
attachment
});
} else if (isInsideRoom) {
if (isUploaded && isInsideRoom) {
return /* @__PURE__ */ React.createElement(FileAttachmentRemoteImagePreview, {

@@ -135,0 +116,0 @@ attachment

@@ -15,4 +15,4 @@ 'use strict';

showHeader = true,
showAttachments,
showReactions,
showAttachments = true,
showReactions = true,
overrides: overrides$1,

@@ -19,0 +19,0 @@ className,

'use strict';
const PKG_NAME = "@liveblocks/react-ui";
const PKG_VERSION = "2.7.0-beta1";
const PKG_VERSION = "2.7.0-beta2";
const PKG_FORMAT = "cjs";

@@ -6,0 +6,0 @@

{
"name": "@liveblocks/react-ui",
"version": "2.7.0-beta1",
"version": "2.7.0-beta2",
"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.",

@@ -66,5 +66,5 @@ "license": "Apache-2.0",

"@floating-ui/react-dom": "^2.0.8",
"@liveblocks/client": "2.7.0-beta1",
"@liveblocks/core": "2.7.0-beta1",
"@liveblocks/react": "2.7.0-beta1",
"@liveblocks/client": "2.7.0-beta2",
"@liveblocks/core": "2.7.0-beta2",
"@liveblocks/react": "2.7.0-beta2",
"@radix-ui/react-dropdown-menu": "^2.0.6",

@@ -71,0 +71,0 @@ "@radix-ui/react-popover": "^1.0.7",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc