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

@prosekit/web

Package Overview
Dependencies
Maintainers
0
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-20240707065442 to 0.0.0-next-20240715024943

17

dist/_tsup-dts-rollup.d.ts

@@ -14,2 +14,3 @@ import { BaseElement } from '@aria-ui/core';

import { FocusChangeHandler } from '@prosekit/core';
import { Keymap } from '@prosekit/core';
import { ListboxProps } from '@aria-ui/listbox';

@@ -325,2 +326,3 @@ import { Options } from 'tsup';

onOpenChange: null;
dismissOnEscape: true;
placement: "top";

@@ -450,3 +452,4 @@ offset: 12;

*
* Notice that the popover will be always hidden if the inline selection is empty.
* Notice that the popover will be always hidden if the inline selection is
* empty.
*

@@ -457,3 +460,4 @@ * @default false

/**
* Event handler called when the open state changed caused by user interaction (i.e. select or unselect inline content).
* Event handler called when the open state changed caused by user interaction
* (i.e. select or unselect inline content).
*

@@ -464,2 +468,9 @@ * @default null

/**
* Whether the inline popover should be dismissed when the editor receives an
* Escape key press.
*
* @default true
*/
dismissOnEscape: boolean;
/**
* The placement of the popover, relative to the selected inline content.

@@ -702,2 +713,4 @@ *

export declare function useKeymap(host: ConnectableElement, editor: ReadonlySignal<Editor | null>, keymap: Keymap): void;
export { usePopoverContent }

@@ -704,0 +717,0 @@

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

onOpenChange: null,
dismissOnEscape: !0,
placement: "top",

@@ -59,2 +60,9 @@ offset: 12,

// src/hooks/use-keymap.ts
import { defineKeymap } from "@prosekit/core";
function useKeymap(host, editor, keymap) {
let extension = defineKeymap(keymap);
return useEditorExtension(host, editor, extension);
}
// src/components/inline-popover/inline-popover/virtual-selection-element.ts

@@ -119,2 +127,7 @@ import { isTextSelection } from "@prosekit/core";

hasReferenceValue && defaultOpenValue ? open.set(!0) : hasReferenceValue || open.set(!1);
}), useKeymap(host, editor, {
Escape: () => {
var _a;
return !state.dismissOnEscape.get() || !open.get() ? !1 : (open.set(!1), (_a = onOpenChange.peek()) == null || _a(!1), !0);
}
}), useOverlayPositionerState(host, overlayState, { reference }), useAttribute(host, "data-state", () => open.get() ? "open" : "closed"), usePresence(host, open);

@@ -121,0 +134,0 @@ }

12

package.json
{
"name": "@prosekit/web",
"type": "module",
"version": "0.0.0-next-20240707065442",
"version": "0.0.0-next-20240715024943",
"private": false,

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

"@floating-ui/dom": "^1.6.7",
"@zag-js/dom-query": "^0.60.0",
"@prosekit/core": "^0.0.0-next-20240707065442",
"@prosekit/extensions": "^0.0.0-next-20240707065442",
"@prosekit/pm": "^0.0.0-next-20240707065442"
"@zag-js/dom-query": "^0.61.0",
"@prosekit/core": "^0.0.0-next-20240715024943",
"@prosekit/extensions": "^0.0.0-next-20240715024943",
"@prosekit/pm": "^0.0.0-next-20240715024943"
},

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

"typescript": "^5.5.3",
"vitest": "^2.0.0-beta.13",
"vitest": "^2.0.2",
"@prosekit/dev": "0.0.0"

@@ -88,0 +88,0 @@ },

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