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

@prosekit/web

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prosekit/web - npm Package Compare versions

Comparing version 0.0.0-next-20240421132240 to 0.0.0-next-20240427133255

28

dist/prosekit-web-autocomplete.js

@@ -97,3 +97,2 @@ import {

createSignal,
mapSignals,
useEffect as useEffect2

@@ -108,20 +107,23 @@ } from "@aria-ui/core";

function useAutocompleteList(element, props) {
const state = mapSignals(assignProps(defaultAutocompleteListProps, props));
const fullProps = assignProps(defaultAutocompleteListProps, props);
const editor = createSignal(fullProps.editor);
const open = openContext.consume(element);
const query = queryContext.consume(element);
const onSubmit = onSubmitContext.consume(element);
const onKeydownHandlerAdd = useKeyboardHandler(element, open, state.editor);
const onKeydownHandlerAdd = useKeyboardHandler(element, open, editor);
const onValueChange = (value) => {
var _a;
if (value) {
(_a = onSubmit.peek()) == null ? void 0 : _a();
}
};
const {
query: listboxQuery,
value: listboxValue,
filter,
autoFocus
} = useListbox(element, {
onKeydownHandlerAdd,
// This function will be called before `onSubmit()`.
onValueChange: (value) => {
var _a;
if (value) {
(_a = onSubmit.value) == null ? void 0 : _a.call(onSubmit);
}
}
onValueChange,
filter: fullProps.filter
});

@@ -157,3 +159,3 @@ useEffect2(element, () => {

});
return state;
return { editor, filter };
}

@@ -232,3 +234,3 @@ function useKeyboardHandler(element, open, editor) {

createSignal as createSignal2,
mapSignals as mapSignals2,
mapSignals,
useEffect as useEffect3

@@ -250,3 +252,3 @@ } from "@aria-ui/core";

function useAutocompletePopover(host, props) {
const state = mapSignals2(assignProps2(defaultAutocompletePopoverProps, props));
const state = mapSignals(assignProps2(defaultAutocompletePopoverProps, props));
useAutocompletePopoverState(host, state);

@@ -253,0 +255,0 @@ return state;

{
"name": "@prosekit/web",
"type": "module",
"version": "0.0.0-next-20240421132240",
"version": "0.0.0-next-20240427133255",
"private": false,

@@ -76,6 +76,6 @@ "author": {

"@floating-ui/dom": "^1.6.3",
"@prosekit/core": "0.0.0-next-20240421132240",
"@prosekit/extensions": "0.0.0-next-20240421132240",
"@prosekit/pm": "0.0.0-next-20240421132240",
"@zag-js/dom-query": "^0.47.0"
"@prosekit/core": "0.0.0-next-20240427133255",
"@prosekit/extensions": "0.0.0-next-20240427133255",
"@prosekit/pm": "0.0.0-next-20240427133255",
"@zag-js/dom-query": "^0.48.0"
},

@@ -86,3 +86,3 @@ "devDependencies": {

"typescript": "^5.4.5",
"vitest": "^1.5.0"
"vitest": "^1.5.2"
},

@@ -89,0 +89,0 @@ "scripts": {

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