Socket
Socket
Sign inDemoInstall

@zag-js/slider

Package Overview
Dependencies
Maintainers
0
Versions
1017
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/slider - npm Package Compare versions

Comparing version 0.62.1 to 0.63.0

15

dist/index.js

@@ -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

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