New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zag-js/collapsible

Package Overview
Dependencies
Maintainers
1
Versions
330
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/collapsible - npm Package Compare versions

Comparing version 0.77.1 to 0.78.0

4

dist/index.d.ts

@@ -71,2 +71,6 @@ import * as _zag_js_anatomy from '@zag-js/anatomy';

setOpen(open: boolean): void;
/**
* Function to measure the size of the content.
*/
measureSize(): void;
getRootProps(): T["element"];

@@ -73,0 +77,0 @@ getTriggerProps(): T["button"];

@@ -33,2 +33,5 @@ 'use strict';

open,
measureSize() {
send("SIZE.MEASURE");
},
setOpen(nextOpen) {

@@ -49,2 +52,3 @@ if (nextOpen === open) return;

...parts.content.attrs,
"data-collapsible": "",
"data-state": skip ? void 0 : open ? "open" : "closed",

@@ -96,3 +100,3 @@ id: dom.getContentId(state.context),

},
exit: ["clearInitial"],
exit: ["clearInitial", "cleanupNode"],
states: {

@@ -160,3 +164,6 @@ closed: {

}
]
],
"SIZE.MEASURE": {
actions: ["measureSize"]
}
}

@@ -208,2 +215,12 @@ }

},
cleanupNode(ctx2) {
ctx2.stylesRef = null;
},
measureSize(ctx2) {
const contentEl = dom.getContentEl(ctx2);
if (!contentEl) return;
const { height, width } = contentEl.getBoundingClientRect();
ctx2.height = height;
ctx2.width = width;
},
computeSize(ctx2, evt) {

@@ -210,0 +227,0 @@ ctx2._rafCleanup?.();

12

package.json
{
"name": "@zag-js/collapsible",
"version": "0.77.1",
"version": "0.78.0",
"description": "Core logic for the collapsible widget implemented as a state machine",

@@ -30,7 +30,7 @@ "keywords": [

"dependencies": {
"@zag-js/anatomy": "0.77.1",
"@zag-js/core": "0.77.1",
"@zag-js/dom-query": "0.77.1",
"@zag-js/utils": "0.77.1",
"@zag-js/types": "0.77.1"
"@zag-js/anatomy": "0.78.0",
"@zag-js/core": "0.78.0",
"@zag-js/dom-query": "0.78.0",
"@zag-js/utils": "0.78.0",
"@zag-js/types": "0.78.0"
},

@@ -37,0 +37,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

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