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

@chakra-ui/descendant

Package Overview
Dependencies
Maintainers
3
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/descendant - npm Package Compare versions

Comparing version 2.1.3 to 3.0.0-next.0

4

dist/declarations/src/use-descendant.d.ts

@@ -1,2 +0,2 @@

/// <reference types="react" />
import React from "react";
import { DescendantsManager, DescendantOptions } from "./descendant";

@@ -10,3 +10,3 @@ /**

}
export declare function createDescendantContext<T extends HTMLElement = HTMLElement, K = {}>(): readonly [import("react").Provider<DescendantsManager<T, K>>, () => DescendantsManager<T, K>, () => DescendantsManager<T, K>, (options?: DescendantOptions<K> | undefined) => {
export declare function createDescendantContext<T extends HTMLElement = HTMLElement, K = {}>(): readonly [React.Provider<DescendantsManager<T, K>>, () => DescendantsManager<T, K>, () => DescendantsManager<T, K>, (options?: DescendantOptions<K> | undefined) => {
descendants: UseDescendantsReturn;

@@ -13,0 +13,0 @@ index: number;

{
"name": "@chakra-ui/descendant",
"version": "2.1.3",
"version": "3.0.0-next.0",
"description": "Register child nodes of a react element for better accessibility",

@@ -38,3 +38,3 @@ "keywords": [

"dependencies": {
"@chakra-ui/react-utils": "^1.2.3"
"@chakra-ui/react-utils": "^2.0.0-next.0"
},

@@ -45,4 +45,4 @@ "peerDependencies": {

"devDependencies": {
"react": "^17.0.1"
"react": "^18.0.0"
}
}

@@ -23,8 +23,8 @@ # Descendant

Descendants observer is an utility hook for keeping track of descendant elements
Descendants observer is a utility hook for keeping track of descendant elements
and their relative indices.
In short, this package allows each item in a list to know it's relative index
and the parent of the list can keep track of each child, without needing to
render in a loop and pass each component an index.
In short, this package allows each item in a list to know its relative index and
the parent of the list can keep track of each child, without needing to render
in a loop and pass each component an index.

@@ -31,0 +31,0 @@ This enables component composition:

import { createContext, mergeRefs } from "@chakra-ui/react-utils"
import { RefCallback, useRef, useState } from "react"
import React, { RefCallback, useRef, useState } from "react"
import { DescendantsManager, DescendantOptions } from "./descendant"

@@ -4,0 +4,0 @@ import { useSafeLayoutEffect, cast } from "./utils"

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