@zag-js/core
Advanced tools
Comparing version 0.78.2 to 0.78.3
@@ -351,3 +351,3 @@ export { Ref, proxy, ref, snapshot, subscribe } from '@zag-js/store'; | ||
* | ||
* To achieve this, we split the `after` defintion into `entry` and `exit` | ||
* To achieve this, we split the `after` definition into `entry` and `exit` | ||
* functions and append them to the state's `entry` and `exit` actions | ||
@@ -354,0 +354,0 @@ */ |
@@ -5,3 +5,2 @@ 'use strict'; | ||
var utils = require('@zag-js/utils'); | ||
var full = require('klona/full'); | ||
@@ -27,5 +26,2 @@ var __defProp = Object.defineProperty; | ||
} | ||
function structuredClone(v) { | ||
return full.klona(v); | ||
} | ||
function toEvent(event) { | ||
@@ -424,3 +420,3 @@ const obj = utils.isString(event) ? { type: event } : event; | ||
* | ||
* To achieve this, we split the `after` defintion into `entry` and `exit` | ||
* To achieve this, we split the `after` definition into `entry` and `exit` | ||
* functions and append them to the state's `entry` and `exit` actions | ||
@@ -669,4 +665,4 @@ */ | ||
}); | ||
this.config = structuredClone(config); | ||
this.options = structuredClone(options ?? {}); | ||
this.config = store.clone(config); | ||
this.options = store.clone(options ?? {}); | ||
this.id = this.config.id ?? `machine-${utils.uuid()}`; | ||
@@ -673,0 +669,0 @@ this.guardMap = this.options?.guards ?? {}; |
{ | ||
"name": "@zag-js/core", | ||
"version": "0.78.2", | ||
"version": "0.78.3", | ||
"description": "A minimal implementation of xstate fsm for UI machines", | ||
@@ -28,5 +28,4 @@ "keywords": [ | ||
"dependencies": { | ||
"klona": "2.0.6", | ||
"@zag-js/store": "0.78.2", | ||
"@zag-js/utils": "0.78.2" | ||
"@zag-js/store": "0.78.3", | ||
"@zag-js/utils": "0.78.3" | ||
}, | ||
@@ -33,0 +32,0 @@ "devDependencies": { |
@@ -106,3 +106,3 @@ # @zag-js/core | ||
- `tags`: the tags associated with this state | ||
- `done`: whehter the machine that reached its final state | ||
- `done`: whether the machine that reached its final state | ||
- `context`: the current context value | ||
@@ -109,0 +109,0 @@ - `matches(...)`: a function used to test whether the current state matches one or more state values |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
109855
2009
+ Added@zag-js/store@0.78.3(transitive)
+ Added@zag-js/utils@0.78.3(transitive)
- Removedklona@2.0.6
- Removed@zag-js/store@0.78.2(transitive)
- Removed@zag-js/utils@0.78.2(transitive)
- Removedklona@2.0.6(transitive)
Updated@zag-js/store@0.78.3
Updated@zag-js/utils@0.78.3