@uspk-ui/react-utils
Advanced tools
Comparing version 2.1.0 to 2.1.1
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -18,2 +20,6 @@ var __export = (target, all) => { | ||
}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
mod | ||
)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
@@ -31,2 +37,5 @@ | ||
// ../../../react-shim.js | ||
var import_react = __toESM(require("react")); | ||
// src/refs.ts | ||
@@ -54,3 +63,3 @@ var import_utils = require("@uspk-ui/utils"); | ||
// src/context.ts | ||
var import_react = require("react"); | ||
var import_react2 = require("react"); | ||
function createContext(options = {}) { | ||
@@ -62,7 +71,7 @@ const { | ||
} = options; | ||
const Context = (0, import_react.createContext)(void 0); | ||
const Context = (0, import_react2.createContext)(void 0); | ||
Context.displayName = name; | ||
function useContext() { | ||
var _a; | ||
const context = (0, import_react.useContext)(Context); | ||
const context = (0, import_react2.useContext)(Context); | ||
if (!context && strict) { | ||
@@ -84,6 +93,6 @@ const error = new Error(errorMessage); | ||
// src/children.ts | ||
var import_react2 = require("react"); | ||
var import_react3 = require("react"); | ||
function getValidChildren(children) { | ||
return import_react2.Children.toArray(children).filter( | ||
(child) => (0, import_react2.isValidElement)(child) | ||
return import_react3.Children.toArray(children).filter( | ||
(child) => (0, import_react3.isValidElement)(child) | ||
); | ||
@@ -90,0 +99,0 @@ } |
@@ -0,1 +1,4 @@ | ||
// ../../../react-shim.js | ||
import React from "react"; | ||
// src/refs.ts | ||
@@ -2,0 +5,0 @@ import { isFunction } from "@uspk-ui/utils"; |
{ | ||
"name": "@uspk-ui/react-utils", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "React utilities and helpers for Uspk UI", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@uspk-ui/utils": "1.0.0" | ||
"@uspk-ui/utils": "1.0.1" | ||
}, | ||
@@ -34,0 +34,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8717
219
0
+ Added@uspk-ui/utils@1.0.1(transitive)
- Removed@uspk-ui/utils@1.0.0(transitive)
Updated@uspk-ui/utils@1.0.1