🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-floater

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-floater - npm Package Compare versions

Comparing version

to
0.9.5-1

27

dist/index.js

@@ -454,3 +454,3 @@ "use strict";

});
let element;
let element = null;
const mergedStyles = {

@@ -461,2 +461,3 @@ ...styles,

};
const wrapperId = `${id}-wrapper`;
let wrapperProps = {

@@ -466,3 +467,2 @@ "aria-describedby": [STATUS.OPENING, STATUS.OPEN, STATUS.CLOSING].includes(

) ? id : void 0,
id: `${id}-wrapper`,
style: mergedStyles

@@ -480,18 +480,15 @@ };

if (import_react5.Children.count(children) === 1 && (0, import_react5.isValidElement)(children) && children.type !== import_react5.Fragment) {
if (import_is_lite4.default.function(children.type)) {
element = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { ref: wrapperRef, children: (0, import_react5.cloneElement)(import_react5.Children.only(children), {
innerRef: childRef,
...wrapperProps
}) });
} else {
element = (0, import_react5.cloneElement)(import_react5.Children.only(children), {
ref: wrapperRef,
...wrapperProps
});
}
element = import_is_lite4.default.function(children.type) ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { ref: wrapperRef, id: wrapperId, children: (0, import_react5.cloneElement)(import_react5.Children.only(children), {
innerRef: childRef,
...wrapperProps
}) }) : (0, import_react5.cloneElement)(import_react5.Children.only(children), {
id: wrapperId,
ref: wrapperRef,
...wrapperProps
});
} else {
element = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { ref: wrapperRef, ...wrapperProps, children });
element = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { ref: wrapperRef, id: wrapperId, ...wrapperProps, children });
}
}
return element ?? null;
return element;
}

@@ -498,0 +495,0 @@ var Wrapper_default = (0, import_react5.memo)(FloaterWrapper);

{
"name": "react-floater",
"version": "0.9.5-0",
"version": "0.9.5-1",
"description": "Floaters everywhere!",

@@ -58,3 +58,3 @@ "author": "Gil Barbara <gilbarbara@gmail.com>",

"@size-limit/preset-small-lib": "^11.1.5",
"@swc/core": "^1.7.24",
"@swc/core": "^1.7.26",
"@testing-library/dom": "^10.4.0",

@@ -68,6 +68,6 @@ "@testing-library/jest-dom": "^6.5.0",

"@vitejs/plugin-react-swc": "^3.7.0",
"@vitest/coverage-v8": "^2.0.5",
"@vitest/coverage-v8": "^2.1.0",
"del-cli": "^5.1.0",
"disable-scroll": "^0.6.0",
"husky": "^9.1.5",
"husky": "^9.1.6",
"is-ci-cli": "^2.2.0",

@@ -85,3 +85,3 @@ "jest-extended": "^4.0.2",

"typescript": "^5.5.4",
"vitest": "^2.0.5"
"vitest": "^2.1.0"
},

@@ -88,0 +88,0 @@ "scripts": {

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