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

@zag-js/react

Package Overview
Dependencies
Maintainers
1
Versions
987
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/react - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

2

dist/index.d.ts
import { MachineSchema, Machine, Service } from '@zag-js/core';
export { mergeProps } from '@zag-js/core';
import * as _zag_js_types from '@zag-js/types';
import { HTMLAttributes, CSSProperties, JSX, RefObject, PropsWithChildren } from 'react';
import { JSX, HTMLAttributes, CSSProperties, RefObject, PropsWithChildren } from 'react';

@@ -6,0 +6,0 @@ declare function useMachine<T extends MachineSchema>(machine: Machine<T>, userProps?: Partial<T["props"]>): Service<T>;

@@ -38,3 +38,3 @@ "use client";

const initial = props().value ?? props().defaultValue;
const eq = props().isEqual ?? utils.isEqual;
const eq = props().isEqual ?? Object.is;
const [initialValue] = React.useState(initial);

@@ -297,2 +297,4 @@ const [value, setValue] = React.useState(initialValue);

reactDom.flushSync(() => state.set(target));
} else if (transition.reenter && !changed) {
state.invoke(currentState, currentState);
} else {

@@ -299,0 +301,0 @@ action(transition.actions ?? []);

{
"name": "@zag-js/react",
"version": "1.2.1",
"version": "1.3.0",
"description": "The react wrapper for zag",

@@ -28,6 +28,6 @@ "keywords": [

"dependencies": {
"@zag-js/core": "1.2.1",
"@zag-js/store": "1.2.1",
"@zag-js/types": "1.2.1",
"@zag-js/utils": "1.2.1"
"@zag-js/core": "1.3.0",
"@zag-js/store": "1.3.0",
"@zag-js/types": "1.3.0",
"@zag-js/utils": "1.3.0"
},

@@ -34,0 +34,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