@rc-component/util
Advanced tools
@@ -1,7 +0,5 @@ | ||
| type ScrollBarSize = { | ||
| export default function getScrollBarSize(fresh?: boolean): number; | ||
| export declare function getTargetScrollBarSize(target: HTMLElement): { | ||
| width: number; | ||
| height: number; | ||
| }; | ||
| export default function getScrollBarSize(fresh?: boolean): number; | ||
| export declare function getTargetScrollBarSize(target: HTMLElement): ScrollBarSize; | ||
| export {}; |
+8
-1
@@ -13,2 +13,3 @@ export { default as useEvent } from './hooks/useEvent'; | ||
| export { injectCSS, removeCSS, updateCSS } from './Dom/dynamicCSS'; | ||
| export type { Prepend } from './Dom/dynamicCSS'; | ||
| export { getDOM, isDOM } from './Dom/findDOMNode'; | ||
@@ -19,2 +20,3 @@ export { getFocusNodeList, lockFocus, triggerFocus, useLockFocus, } from './Dom/focus'; | ||
| export { getShadowRoot } from './Dom/shadow'; | ||
| export { isStyleSupport } from './Dom/styleChecker'; | ||
| export { default as KeyCode } from './KeyCode'; | ||
@@ -29,6 +31,11 @@ export { default as getScrollBarSize, getTargetScrollBarSize, } from './getScrollBarSize'; | ||
| export { default as toArray } from './Children/toArray'; | ||
| export type { Option as ToArrayOptions } from './Children/toArray'; | ||
| export { default as mergeProps } from './mergeProps'; | ||
| export { default as get } from './utils/get'; | ||
| export { default as set, merge, mergeWith } from './utils/set'; | ||
| export { default as warning, noteOnce } from './warning'; | ||
| export { default as warning, noteOnce, resetWarned } from './warning'; | ||
| export { render, unmount } from './React/render'; | ||
| export { spyElementPrototype, spyElementPrototypes } from './test/domHook'; | ||
| export { default as Portal } from './Portal'; | ||
| export type { PortalProps, PortalRef } from './Portal'; | ||
| export type { GetContainer } from './PortalWrapper'; |
+5
-1
@@ -17,2 +17,3 @@ export { default as useEvent } from "./hooks/useEvent"; | ||
| export { getShadowRoot } from "./Dom/shadow"; | ||
| export { isStyleSupport } from "./Dom/styleChecker"; | ||
| export { default as KeyCode } from "./KeyCode"; | ||
@@ -30,2 +31,5 @@ export { default as getScrollBarSize, getTargetScrollBarSize } from "./getScrollBarSize"; | ||
| export { default as set, merge, mergeWith } from "./utils/set"; | ||
| export { default as warning, noteOnce } from "./warning"; | ||
| export { default as warning, noteOnce, resetWarned } from "./warning"; | ||
| export { render, unmount } from "./React/render"; | ||
| export { spyElementPrototype, spyElementPrototypes } from "./test/domHook"; | ||
| export { default as Portal } from "./Portal"; |
@@ -1,7 +0,5 @@ | ||
| type ScrollBarSize = { | ||
| export default function getScrollBarSize(fresh?: boolean): number; | ||
| export declare function getTargetScrollBarSize(target: HTMLElement): { | ||
| width: number; | ||
| height: number; | ||
| }; | ||
| export default function getScrollBarSize(fresh?: boolean): number; | ||
| export declare function getTargetScrollBarSize(target: HTMLElement): ScrollBarSize; | ||
| export {}; |
+8
-1
@@ -13,2 +13,3 @@ export { default as useEvent } from './hooks/useEvent'; | ||
| export { injectCSS, removeCSS, updateCSS } from './Dom/dynamicCSS'; | ||
| export type { Prepend } from './Dom/dynamicCSS'; | ||
| export { getDOM, isDOM } from './Dom/findDOMNode'; | ||
@@ -19,2 +20,3 @@ export { getFocusNodeList, lockFocus, triggerFocus, useLockFocus, } from './Dom/focus'; | ||
| export { getShadowRoot } from './Dom/shadow'; | ||
| export { isStyleSupport } from './Dom/styleChecker'; | ||
| export { default as KeyCode } from './KeyCode'; | ||
@@ -29,6 +31,11 @@ export { default as getScrollBarSize, getTargetScrollBarSize, } from './getScrollBarSize'; | ||
| export { default as toArray } from './Children/toArray'; | ||
| export type { Option as ToArrayOptions } from './Children/toArray'; | ||
| export { default as mergeProps } from './mergeProps'; | ||
| export { default as get } from './utils/get'; | ||
| export { default as set, merge, mergeWith } from './utils/set'; | ||
| export { default as warning, noteOnce } from './warning'; | ||
| export { default as warning, noteOnce, resetWarned } from './warning'; | ||
| export { render, unmount } from './React/render'; | ||
| export { spyElementPrototype, spyElementPrototypes } from './test/domHook'; | ||
| export { default as Portal } from './Portal'; | ||
| export type { PortalProps, PortalRef } from './Portal'; | ||
| export type { GetContainer } from './PortalWrapper'; |
+46
-0
@@ -12,2 +12,8 @@ "use strict"; | ||
| }); | ||
| Object.defineProperty(exports, "Portal", { | ||
| enumerable: true, | ||
| get: function () { | ||
| return _Portal.default; | ||
| } | ||
| }); | ||
| Object.defineProperty(exports, "canUseDom", { | ||
@@ -109,2 +115,8 @@ enumerable: true, | ||
| }); | ||
| Object.defineProperty(exports, "isStyleSupport", { | ||
| enumerable: true, | ||
| get: function () { | ||
| return _styleChecker.isStyleSupport; | ||
| } | ||
| }); | ||
| Object.defineProperty(exports, "isVisible", { | ||
@@ -176,2 +188,14 @@ enumerable: true, | ||
| }); | ||
| Object.defineProperty(exports, "render", { | ||
| enumerable: true, | ||
| get: function () { | ||
| return _render.render; | ||
| } | ||
| }); | ||
| Object.defineProperty(exports, "resetWarned", { | ||
| enumerable: true, | ||
| get: function () { | ||
| return _warning.resetWarned; | ||
| } | ||
| }); | ||
| Object.defineProperty(exports, "set", { | ||
@@ -183,2 +207,14 @@ enumerable: true, | ||
| }); | ||
| Object.defineProperty(exports, "spyElementPrototype", { | ||
| enumerable: true, | ||
| get: function () { | ||
| return _domHook.spyElementPrototype; | ||
| } | ||
| }); | ||
| Object.defineProperty(exports, "spyElementPrototypes", { | ||
| enumerable: true, | ||
| get: function () { | ||
| return _domHook.spyElementPrototypes; | ||
| } | ||
| }); | ||
| Object.defineProperty(exports, "supportNodeRef", { | ||
@@ -208,2 +244,8 @@ enumerable: true, | ||
| }); | ||
| Object.defineProperty(exports, "unmount", { | ||
| enumerable: true, | ||
| get: function () { | ||
| return _render.unmount; | ||
| } | ||
| }); | ||
| Object.defineProperty(exports, "updateCSS", { | ||
@@ -303,2 +345,3 @@ enumerable: true, | ||
| var _shadow = require("./Dom/shadow"); | ||
| var _styleChecker = require("./Dom/styleChecker"); | ||
| var _KeyCode = _interopRequireDefault(require("./KeyCode")); | ||
@@ -317,4 +360,7 @@ var _getScrollBarSize = _interopRequireWildcard(require("./getScrollBarSize")); | ||
| var _warning = _interopRequireWildcard(require("./warning")); | ||
| var _render = require("./React/render"); | ||
| var _domHook = require("./test/domHook"); | ||
| var _Portal = _interopRequireDefault(require("./Portal")); | ||
| function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
| function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
+3
-3
| { | ||
| "name": "@rc-component/util", | ||
| "version": "1.11.0", | ||
| "version": "1.11.1", | ||
| "description": "Common Utils For React Component", | ||
@@ -45,3 +45,3 @@ "keywords": [ | ||
| "devDependencies": { | ||
| "@rc-component/father-plugin": "^2.0.1", | ||
| "@rc-component/father-plugin": "^2.2.0", | ||
| "@rc-component/np": "^1.0.3", | ||
@@ -65,3 +65,3 @@ "@testing-library/react": "^16.0.0", | ||
| "husky": "^9.1.6", | ||
| "lint-staged": "^16.2.7", | ||
| "lint-staged": "^17.0.3", | ||
| "prettier": "^3.3.2", | ||
@@ -68,0 +68,0 @@ "rc-test": "^7.0.14", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
208802
1.01%6824
0.89%