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

@zag-js/anatomy

Package Overview
Dependencies
Maintainers
1
Versions
685
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/anatomy - npm Package Compare versions

Comparing version 0.0.0-dev-20221205175201 to 0.0.0-dev-20221215092235

6

dist/index.d.ts

@@ -1,8 +0,8 @@

declare type Part = {
type Part = {
selector: string;
attrs: Record<"data-scope" | "data-part", string>;
};
declare type Anatomy<T extends string> = {
type Anatomy<T extends string> = {
parts: <U extends string>(...parts: U[]) => Omit<Anatomy<U>, "parts">;
extend: <V extends string>(...parts: V[]) => Omit<Anatomy<T | V>, "parts">;
extendWith: <V extends string>(...parts: V[]) => Omit<Anatomy<T | V>, "parts">;
build: () => Record<T, Part>;

@@ -9,0 +9,0 @@ };

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

},
extend: (...values) => createAnatomy(name, [...parts, ...values]),
extendWith: (...values) => createAnatomy(name, [...parts, ...values]),
build: () => [...new Set(parts)].reduce(

@@ -38,0 +38,0 @@ (prev, part) => Object.assign(prev, {

{
"name": "@zag-js/anatomy",
"version": "0.0.0-dev-20221205175201",
"version": "0.0.0-dev-20221215092235",
"main": "dist/index.js",

@@ -29,4 +29,2 @@ "module": "dist/index.mjs",

},
"dependencies": {},
"devDependencies": {},
"scripts": {

@@ -33,0 +31,0 @@ "build-fast": "tsup src/index.ts --format=esm,cjs",

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