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

@zag-js/combobox

Package Overview
Dependencies
Maintainers
1
Versions
1053
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/combobox - npm Package Compare versions

Comparing version 0.76.0 to 0.77.0

11

dist/index.d.ts

@@ -33,7 +33,2 @@ import { InteractOutsideHandlers } from '@zag-js/dismissable';

}
interface SelectionValueDetails<T extends CollectionItem = CollectionItem> {
inputValue: string;
selectedItems: T[];
valueAsString: string;
}
interface ScrollToIndexDetails {

@@ -197,6 +192,2 @@ index: number;

/**
* Function to get the display value of the selected item
*/
getSelectionValue?: ((details: SelectionValueDetails<T>) => string) | undefined;
/**
* Whether to open the combobox on arrow key press

@@ -420,2 +411,2 @@ * @default true

export { type MachineApi as Api, type UserDefinedContext as Context, type ElementIds, type HighlightChangeDetails, type InputValueChangeDetails, type IntlTranslations, type ItemGroupLabelProps, type ItemGroupProps, type ItemProps, type ItemState, type OpenChangeDetails, type ScrollToIndexDetails, type SelectionValueDetails, type Service, type TriggerProps, type ValueChangeDetails, anatomy, collection, connect, machine };
export { type MachineApi as Api, type UserDefinedContext as Context, type ElementIds, type HighlightChangeDetails, type InputValueChangeDetails, type IntlTranslations, type ItemGroupLabelProps, type ItemGroupProps, type ItemProps, type ItemState, type OpenChangeDetails, type ScrollToIndexDetails, type Service, type TriggerProps, type ValueChangeDetails, anatomy, collection, connect, machine };

13

dist/index.js

@@ -1146,3 +1146,3 @@ 'use strict';

set.value(ctx2, ctx2.highlightedValue);
set.inputValue(ctx2, getInputValue(ctx2, true));
set.inputValue(ctx2, getInputValue(ctx2));
},

@@ -1152,3 +1152,3 @@ selectItem(ctx2, evt) {

set.value(ctx2, evt.value);
set.inputValue(ctx2, getInputValue(ctx2, true));
set.inputValue(ctx2, getInputValue(ctx2));
},

@@ -1335,10 +1335,3 @@ clearItem(ctx2, evt) {

}
function getInputValue(ctx, selection) {
if (ctx.getSelectionValue && selection) {
return ctx.getSelectionValue({
inputValue: ctx.inputValue,
selectedItems: Array.from(ctx.selectedItems),
valueAsString: ctx.valueAsString
});
}
function getInputValue(ctx) {
return utils.match(ctx.selectionBehavior, {

@@ -1345,0 +1338,0 @@ preserve: ctx.inputValue,

{
"name": "@zag-js/combobox",
"version": "0.76.0",
"version": "0.77.0",
"description": "Core logic for the combobox widget implemented as a state machine",

@@ -29,12 +29,12 @@ "keywords": [

"dependencies": {
"@zag-js/anatomy": "0.76.0",
"@zag-js/aria-hidden": "0.76.0",
"@zag-js/collection": "0.76.0",
"@zag-js/core": "0.76.0",
"@zag-js/dismissable": "0.76.0",
"@zag-js/dom-query": "0.76.0",
"@zag-js/dom-event": "0.76.0",
"@zag-js/utils": "0.76.0",
"@zag-js/popper": "0.76.0",
"@zag-js/types": "0.76.0"
"@zag-js/anatomy": "0.77.0",
"@zag-js/aria-hidden": "0.77.0",
"@zag-js/collection": "0.77.0",
"@zag-js/core": "0.77.0",
"@zag-js/dismissable": "0.77.0",
"@zag-js/dom-query": "0.77.0",
"@zag-js/dom-event": "0.77.0",
"@zag-js/utils": "0.77.0",
"@zag-js/popper": "0.77.0",
"@zag-js/types": "0.77.0"
},

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