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

@melt-ui/svelte

Package Overview
Dependencies
Maintainers
1
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@melt-ui/svelte - npm Package Compare versions

Comparing version 0.39.5 to 0.40.0

2

dist/builders/combobox/create.js
import { useEscapeKeydown, usePopper } from '../../internal/actions/index.js';
import { FIRST_LAST_KEYS, addHighlight, addMeltEventListener, back, builder, createElHelpers, derivedVisible, effect, executeCallbacks, forward, generateId, getOptions, getPortalDestination, isBrowser, isElementDisabled, isHTMLElement, isHTMLInputElement, kbd, last, next, noop, omit, overridable, prev, removeHighlight, removeScroll, sleep, styleToString, toWritableStores, } from '../../internal/helpers/index.js';
import { debounceable } from '../../internal/helpers/store/debounceable.js';
import deepEqual from 'deep-equal';
import { dequal as deepEqual } from 'dequal';
import { onMount, tick } from 'svelte';

@@ -6,0 +6,0 @@ import { derived, get, readonly, writable } from 'svelte/store';

@@ -103,2 +103,3 @@ /// <reference types="svelte" />

defaultOpen: import("svelte/store").Writable<false>;
typeahead: import("svelte/store").Writable<true>;
};

@@ -179,3 +180,4 @@ };

forceVisible: import("svelte/store").Writable<boolean>;
typeahead?: import("svelte/store").Writable<boolean | undefined> | undefined;
};
};

@@ -122,2 +122,3 @@ /// <reference types="svelte" />

defaultOpen: import("svelte/store").Writable<false>;
typeahead: import("svelte/store").Writable<true>;
};

@@ -172,3 +173,4 @@ };

forceVisible: import("svelte/store").Writable<boolean>;
typeahead: import("svelte/store").Writable<boolean>;
};
};

@@ -17,2 +17,3 @@ import { overridable, toWritableStores } from '../../internal/helpers/index.js';

forceVisible: false,
typeahead: true,
};

@@ -19,0 +20,0 @@ export function createDropdownMenu(props) {

@@ -53,2 +53,3 @@ /// <reference types="svelte" />

forceVisible: Writable<boolean>;
typeahead: Writable<boolean>;
};

@@ -124,2 +125,3 @@ createCheckboxItem: (props?: _CheckboxItemProps) => {

defaultOpen: Writable<false>;
typeahead: Writable<true>;
};

@@ -126,0 +128,0 @@ };

@@ -26,6 +26,7 @@ import { createSeparator } from '../index.js';

defaultOpen: false,
typeahead: true,
};
export function createMenuBuilder(opts) {
const { name, selector } = createElHelpers(opts.selector);
const { preventScroll, arrowSize, positioning, closeOnEscape, closeOnOutsideClick, portal, forceVisible, } = opts.rootOptions;
const { preventScroll, arrowSize, positioning, closeOnEscape, closeOnOutsideClick, portal, forceVisible, typeahead, } = opts.rootOptions;
const rootOpen = opts.rootOpen;

@@ -146,3 +147,3 @@ const rootActiveTrigger = opts.rootActiveTrigger;

const isModifierKey = e.ctrlKey || e.altKey || e.metaKey;
if (!isModifierKey && isCharacterKey) {
if (!isModifierKey && isCharacterKey && get(typeahead) === true) {
handleTypeaheadSearch(e.key, getMenuItems(menuEl));

@@ -608,3 +609,3 @@ }

}
if (!isModifierKey && isCharacterKey) {
if (!isModifierKey && isCharacterKey && get(typeahead) === true) {
// typeahead logic

@@ -611,0 +612,0 @@ handleTypeaheadSearch(e.key, getMenuItems(menuEl));

@@ -84,2 +84,7 @@ import type { FloatingConfig } from '../../internal/actions/index.js';

forceVisible?: boolean;
/**
* Whether to use typeahead to automatically focus elements.
* @default true
*/
typeahead?: boolean;
};

@@ -129,2 +134,3 @@ export type _CreateSubmenuProps = Pick<_CreateMenuProps, 'arrowSize' | 'positioning'> & {

forceVisible: Writable<boolean>;
typeahead: Writable<boolean>;
};

@@ -131,0 +137,0 @@ disableTriggerRefocus?: boolean;

@@ -135,2 +135,3 @@ /// <reference types="svelte" />

defaultOpen: import("svelte/store").Writable<false>;
typeahead: import("svelte/store").Writable<true>;
};

@@ -188,2 +189,3 @@ };

forceVisible: import("svelte/store").Writable<boolean>;
typeahead?: import("svelte/store").Writable<boolean | undefined> | undefined;
};

@@ -190,0 +192,0 @@ };

import { createLabel, createSeparator } from '../index.js';
import { usePopper, usePortal } from '../../internal/actions/index.js';
import { usePopper } from '../../internal/actions/index.js';
import { FIRST_LAST_KEYS, SELECTION_KEYS, addEventListener, addHighlight, addMeltEventListener, back, builder, createElHelpers, createTypeaheadSearch, derivedVisible, effect, executeCallbacks, forward, generateId, getFirstOption, getNextFocusable, getOptions, getPortalDestination, getPreviousFocusable, handleRovingFocus, isBrowser, isElementDisabled, isHTMLElement, kbd, last, next, noop, omit, overridable, prev, removeHighlight, removeScroll, sleep, styleToString, toWritableStores, toggle, } from '../../internal/helpers/index.js';

@@ -4,0 +4,0 @@ import { onMount, tick } from 'svelte';

@@ -661,3 +661,3 @@ import { builder, createElHelpers, effect, executeCallbacks, generateId, getElementByMeltId, isBrowser, isHTMLElement, kbd, omit, overridable, styleToString, toWritableStores, addMeltEventListener, } from '../../internal/helpers/index.js';

updateTag,
removeTag
removeTag,
},

@@ -664,0 +664,0 @@ options,

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

import deepEqual from 'deep-equal';
import { dequal as deepEqual } from 'dequal';
/**

@@ -3,0 +3,0 @@ * Returns the element some number before the given index. If the target index is out of bounds:

{
"name": "@melt-ui/svelte",
"version": "0.39.5",
"version": "0.40.0",
"license": "MIT",

@@ -42,3 +42,3 @@ "exports": {

"@floating-ui/dom": "^1.4.5",
"deep-equal": "^2.2.2",
"dequal": "^2.0.3",
"focus-trap": "^7.5.2",

@@ -72,3 +72,2 @@ "nanoid": "^4.0.2"

"@testing-library/user-event": "^14.4.3",
"@types/deep-equal": "^1.0.1",
"@types/jest-axe": "^3.5.5",

@@ -75,0 +74,0 @@ "@types/prettier": "^2.7.3",

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