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

@zag-js/core

Package Overview
Dependencies
Maintainers
1
Versions
903
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/core - npm Package Compare versions

Comparing version 0.0.0-dev-20240411202552 to 0.0.0-dev-20240412181302

5

dist/index.d.ts

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

export { proxy, ref, snapshot, subscribe } from '@zag-js/store';
export { Ref, proxy, ref, snapshot, subscribe } from '@zag-js/store';

@@ -408,2 +408,3 @@ declare function deepMerge<T extends Record<string, any>>(source: T, ...objects: T[]): T;

declare const createMachine: <TContext extends Dict, TState extends StateMachine.StateSchema = StateMachine.StateSchema, TEvent extends StateMachine.EventObject = StateMachine.AnyEventObject>(config: StateMachine.MachineConfig<TContext, TState, TEvent>, options?: StateMachine.MachineOptions<TContext, TState, TEvent>) => Machine<TContext, TState, TEvent>;
declare const isMachine: (value: any) => value is AnyMachine;

@@ -423,2 +424,2 @@ interface Props {

export { type AnyMachine, type ContextFrom, type EventFrom, Machine, type MachineSrc, type StateFrom, StateMachine, choose, createMachine, deepMerge, guards, mergeProps };
export { type AnyMachine, type ContextFrom, type EventFrom, Machine, type MachineSrc, type StateFrom, StateMachine, choose, createMachine, deepMerge, guards, isMachine, mergeProps };

@@ -33,2 +33,3 @@ "use strict";

guards: () => guards,
isMachine: () => isMachine,
mergeProps: () => mergeProps,

@@ -865,2 +866,5 @@ proxy: () => import_store3.proxy,

var createMachine = (config, options) => new Machine(config, options);
var isMachine = (value) => {
return value instanceof Machine || value?.type === "machine" /* Machine */;
};

@@ -922,2 +926,3 @@ // src/merge-props.ts

guards,
isMachine,
mergeProps,

@@ -924,0 +929,0 @@ proxy,

6

package.json
{
"name": "@zag-js/core",
"version": "0.0.0-dev-20240411202552",
"version": "0.0.0-dev-20240412181302",
"description": "A minimal implementation of xstate fsm for UI machines",

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

"klona": "2.0.6",
"@zag-js/store": "0.0.0-dev-20240411202552"
"@zag-js/store": "0.0.0-dev-20240412181302"
},
"devDependencies": {
"clean-package": "2.2.0",
"@zag-js/utils": "0.0.0-dev-20240411202552"
"@zag-js/utils": "0.0.0-dev-20240412181302"
},

@@ -37,0 +37,0 @@ "clean-package": "../../clean-package.config.json",

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

export { proxy, ref, snapshot, subscribe } from "@zag-js/store"
export { proxy, ref, snapshot, subscribe, type Ref } from "@zag-js/store"
export { deepMerge } from "./deep-merge"

@@ -3,0 +3,0 @@ export { choose, guards } from "./guard-utils"

@@ -817,1 +817,5 @@ import { ref, snapshot, subscribe } from "@zag-js/store"

) => new Machine(config, options)
export const isMachine = (value: any): value is AnyMachine => {
return value instanceof Machine || value?.type === MachineType.Machine
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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