Socket
Socket
Sign inDemoInstall

@filerobot/common

Package Overview
Dependencies
41
Maintainers
5
Versions
1248
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.47.1 to 3.48.0

12

lib/AssetPreview.js
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
var _excluded = ["file", "getItemIcon", "filePreviewToggle", "isDevEnv", "viewLayout", "is3rdPartyData", "floaty", "container", "lazyloading"];
var _excluded = ["file", "getItemIcon", "filePreviewToggle", "isDevEnv", "viewLayout", "noImgTransformations", "floaty", "container", "lazyloading", "isSmallSizePreview"];
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }

@@ -24,6 +24,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }

viewLayout = _ref.viewLayout,
is3rdPartyData = _ref.is3rdPartyData,
_ref$noImgTransformat = _ref.noImgTransformations,
noImgTransformations = _ref$noImgTransformat === void 0 ? false : _ref$noImgTransformat,
floaty = _ref.floaty,
container = _ref.container,
lazyloading = _ref.lazyloading,
_ref$isSmallSizePrevi = _ref.isSmallSizePreview,
isSmallSizePreview = _ref$isSmallSizePrevi === void 0 ? false : _ref$isSmallSizePrevi,
props = _objectWithoutProperties(_ref, _excluded);

@@ -43,3 +46,3 @@ var extension = getFileExtension(file);

extension: extension,
noImgTransformations: is3rdPartyData,
noImgTransformations: noImgTransformations,
isDevEnv: isDevEnv,

@@ -50,5 +53,6 @@ isHubMode: floaty,

isTransparencySupported: isTransparencySupported(file),
isRemoteUpload: file === null || file === void 0 ? void 0 : file.isRemote
isRemoteUpload: file === null || file === void 0 ? void 0 : file.isRemote,
isSmallSizePreview: isSmallSizePreview
}, props));
};
export default AssetPreview;

@@ -51,2 +51,4 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }

renderImageOverlayContent = _ref.renderImageOverlayContent,
_ref$isSmallSizePrevi = _ref.isSmallSizePreview,
isSmallSizePreview = _ref$isSmallSizePrevi === void 0 ? false : _ref$isSmallSizePrevi,
children = _ref.children,

@@ -143,3 +145,3 @@ _ref$isRemoteUpload = _ref.isRemoteUpload,

}
var isIconTypeDetected = isFileTypeIcon || isFallbackSrcTypeIconRef.current;
var isIconTypeDetected = (isFileTypeIcon || isFallbackSrcTypeIconRef.current) && !isSmallSizePreview;
return /*#__PURE__*/_jsxs(Styled.ImagePreviewWrapper, {

@@ -146,0 +148,0 @@ onMouseOver: onMouseOver,

{
"name": "@filerobot/common",
"version": "3.47.1",
"version": "3.48.0",
"description": "The common components shared between Filerobot Media Asset Widget modules",

@@ -17,4 +17,4 @@ "homepage": "",

"dependencies": {
"@filerobot/icons": "^3.47.1",
"@filerobot/utils": "^3.47.1",
"@filerobot/icons": "^3.48.0",
"@filerobot/utils": "^3.48.0",
"@scaleflex/icons": "^2.8.3",

@@ -32,3 +32,3 @@ "@scaleflex/ui": "2.9.1",

},
"gitHead": "26abc02ed3117808d2df7ed11b13ee25d281d112"
"gitHead": "ab025089801bc4474bfb7b1c37926bd2fb2d9a62"
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc