@zag-js/slider
Advanced tools
Comparing version 0.62.1 to 0.63.0
@@ -725,3 +725,3 @@ "use strict"; | ||
invokeOnChangeEnd(ctx2) { | ||
ctx2.onValueChangeEnd?.({ value: ctx2.value }); | ||
invoke.valueChangeEnd(ctx2); | ||
}, | ||
@@ -785,3 +785,3 @@ setClosestThumbIndex(ctx2, evt) { | ||
var invoke = { | ||
change: (ctx) => { | ||
valueChange(ctx) { | ||
ctx.onValueChange?.({ | ||
@@ -792,3 +792,8 @@ value: Array.from(ctx.value) | ||
}, | ||
focusChange: (ctx) => { | ||
valueChangeEnd(ctx) { | ||
ctx.onValueChangeEnd?.({ | ||
value: Array.from(ctx.value) | ||
}); | ||
}, | ||
focusChange(ctx) { | ||
ctx.onFocusChange?.({ | ||
@@ -804,3 +809,3 @@ value: Array.from(ctx.value), | ||
ctx.value[index] = value; | ||
invoke.change(ctx); | ||
invoke.valueChange(ctx); | ||
}, | ||
@@ -810,3 +815,3 @@ value: (ctx, value) => { | ||
assignArray(ctx.value, value); | ||
invoke.change(ctx); | ||
invoke.valueChange(ctx); | ||
}, | ||
@@ -813,0 +818,0 @@ focusedIndex: (ctx, index) => { |
{ | ||
"name": "@zag-js/slider", | ||
"version": "0.62.1", | ||
"version": "0.63.0", | ||
"description": "Core logic for the slider widget implemented as a state machine", | ||
@@ -31,11 +31,11 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/anatomy": "0.62.1", | ||
"@zag-js/core": "0.62.1", | ||
"@zag-js/form-utils": "0.62.1", | ||
"@zag-js/dom-query": "0.62.1", | ||
"@zag-js/dom-event": "0.62.1", | ||
"@zag-js/utils": "0.62.1", | ||
"@zag-js/numeric-range": "0.62.1", | ||
"@zag-js/element-size": "0.62.1", | ||
"@zag-js/types": "0.62.1" | ||
"@zag-js/anatomy": "0.63.0", | ||
"@zag-js/core": "0.63.0", | ||
"@zag-js/form-utils": "0.63.0", | ||
"@zag-js/dom-query": "0.63.0", | ||
"@zag-js/dom-event": "0.63.0", | ||
"@zag-js/utils": "0.63.0", | ||
"@zag-js/numeric-range": "0.63.0", | ||
"@zag-js/element-size": "0.63.0", | ||
"@zag-js/types": "0.63.0" | ||
}, | ||
@@ -42,0 +42,0 @@ "devDependencies": { |
@@ -193,3 +193,3 @@ import { createMachine } from "@zag-js/core" | ||
invokeOnChangeEnd(ctx) { | ||
ctx.onValueChangeEnd?.({ value: ctx.value }) | ||
invoke.valueChangeEnd(ctx) | ||
}, | ||
@@ -256,3 +256,3 @@ setClosestThumbIndex(ctx, evt) { | ||
const invoke = { | ||
change: (ctx: MachineContext) => { | ||
valueChange(ctx: MachineContext) { | ||
ctx.onValueChange?.({ | ||
@@ -263,3 +263,8 @@ value: Array.from(ctx.value), | ||
}, | ||
focusChange: (ctx: MachineContext) => { | ||
valueChangeEnd(ctx: MachineContext) { | ||
ctx.onValueChangeEnd?.({ | ||
value: Array.from(ctx.value), | ||
}) | ||
}, | ||
focusChange(ctx: MachineContext) { | ||
ctx.onFocusChange?.({ | ||
@@ -276,3 +281,3 @@ value: Array.from(ctx.value), | ||
ctx.value[index] = value | ||
invoke.change(ctx) | ||
invoke.valueChange(ctx) | ||
}, | ||
@@ -282,3 +287,3 @@ value: (ctx: MachineContext, value: number[]) => { | ||
assignArray(ctx.value, value) | ||
invoke.change(ctx) | ||
invoke.valueChange(ctx) | ||
}, | ||
@@ -285,0 +290,0 @@ focusedIndex: (ctx: MachineContext, index: number) => { |
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
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
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
217279
3120
+ Added@zag-js/anatomy@0.63.0(transitive)
+ Added@zag-js/core@0.63.0(transitive)
+ Added@zag-js/dom-event@0.63.0(transitive)
+ Added@zag-js/dom-query@0.63.0(transitive)
+ Added@zag-js/element-size@0.63.0(transitive)
+ Added@zag-js/form-utils@0.63.0(transitive)
+ Added@zag-js/numeric-range@0.63.0(transitive)
+ Added@zag-js/store@0.63.0(transitive)
+ Added@zag-js/text-selection@0.63.0(transitive)
+ Added@zag-js/types@0.63.0(transitive)
+ Added@zag-js/utils@0.63.0(transitive)
- Removed@zag-js/anatomy@0.62.1(transitive)
- Removed@zag-js/core@0.62.1(transitive)
- Removed@zag-js/dom-event@0.62.1(transitive)
- Removed@zag-js/dom-query@0.62.1(transitive)
- Removed@zag-js/element-size@0.62.1(transitive)
- Removed@zag-js/form-utils@0.62.1(transitive)
- Removed@zag-js/numeric-range@0.62.1(transitive)
- Removed@zag-js/store@0.62.1(transitive)
- Removed@zag-js/text-selection@0.62.1(transitive)
- Removed@zag-js/types@0.62.1(transitive)
- Removed@zag-js/utils@0.62.1(transitive)
Updated@zag-js/anatomy@0.63.0
Updated@zag-js/core@0.63.0
Updated@zag-js/dom-event@0.63.0
Updated@zag-js/dom-query@0.63.0
Updated@zag-js/element-size@0.63.0
Updated@zag-js/form-utils@0.63.0
Updated@zag-js/numeric-range@0.63.0
Updated@zag-js/types@0.63.0
Updated@zag-js/utils@0.63.0