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.3.12 to 0.3.13

dist/prosekit-web-table-handle.d.ts

306

dist/_tsup-dts-rollup.d.ts

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

import { defaultTooltipTriggerProps } from '@aria-ui/tooltip';
import type { defineTableCommands } from '@prosekit/extensions/table';
import { Editor } from '@prosekit/core';

@@ -17,4 +18,7 @@ import type { EditorView } from '@prosekit/pm/view';

import { FocusChangeHandler } from '@prosekit/core';
import { ItemFilter } from '@aria-ui/collection';
import { Keymap } from '@prosekit/core';
import { ListboxProps } from '@aria-ui/listbox';
import { MenuContentProps } from '@aria-ui/menu';
import { MenuItemProps } from '@aria-ui/menu';
import { Options } from 'tsup';

@@ -381,2 +385,113 @@ import { OverlayPositionerProps } from '@aria-ui/overlay';

declare const defaultTableHandleColumnRootProps: Readonly<{
editor: null;
placement: "top";
strategy: "absolute";
autoUpdate: true;
hoist: false;
transform: false;
offset: null;
flip: false;
shift: false;
overlap: false;
fitViewport: false;
sameWidth: false;
sameHeight: false;
inline: false;
hide: false;
boundary: "clippingAncestors";
rootBoundary: "viewport";
overflowPadding: 0;
elementContext: "floating";
altBoundary: true;
}>;
export { defaultTableHandleColumnRootProps }
export { defaultTableHandleColumnRootProps as defaultTableHandleColumnRootProps_alias_1 }
declare const defaultTableHandleColumnTriggerProps: Readonly<{
editor: null;
}>;
export { defaultTableHandleColumnTriggerProps }
export { defaultTableHandleColumnTriggerProps as defaultTableHandleColumnTriggerProps_alias_1 }
declare const defaultTableHandlePopoverContentProps: Readonly<{
placement: "right-start";
offset: {
mainAxis: number;
crossAxis: number;
};
editor: null;
onKeydownHandlerAdd: null;
hoist: true;
flip: true;
shift: true;
overflowPadding: 4;
onEscapeKeyDown: null;
onPointerDownOutside: null;
onFocusOutside: null;
onInteractOutside: null;
strategy: "absolute";
autoUpdate: true;
transform: false;
overlap: false;
fitViewport: false;
sameWidth: false;
sameHeight: false;
inline: false;
hide: false;
boundary: "clippingAncestors";
rootBoundary: "viewport";
elementContext: "floating";
altBoundary: true;
}>;
export { defaultTableHandlePopoverContentProps }
export { defaultTableHandlePopoverContentProps as defaultTableHandlePopoverContentProps_alias_1 }
declare const defaultTableHandlePopoverItemProps: Readonly<{
disabled: false;
value: "";
query: "";
filter: ItemFilter;
onSelect: null;
}>;
export { defaultTableHandlePopoverItemProps }
export { defaultTableHandlePopoverItemProps as defaultTableHandlePopoverItemProps_alias_1 }
declare const defaultTableHandleRootProps: Readonly<{
editor: null;
}>;
export { defaultTableHandleRootProps }
export { defaultTableHandleRootProps as defaultTableHandleRootProps_alias_1 }
declare const defaultTableHandleRowRootProps: Readonly<{
editor: null;
placement: "left";
strategy: "absolute";
autoUpdate: true;
hoist: false;
transform: false;
offset: null;
flip: false;
shift: false;
overlap: false;
fitViewport: false;
sameWidth: false;
sameHeight: false;
inline: false;
hide: false;
boundary: "clippingAncestors";
rootBoundary: "viewport";
overflowPadding: 0;
elementContext: "floating";
altBoundary: true;
}>;
export { defaultTableHandleRowRootProps }
export { defaultTableHandleRowRootProps as defaultTableHandleRowRootProps_alias_1 }
declare const defaultTableHandleRowTriggerProps: Readonly<{
editor: null;
}>;
export { defaultTableHandleRowTriggerProps }
export { defaultTableHandleRowTriggerProps as defaultTableHandleRowTriggerProps_alias_1 }
declare const defaultTooltipContentProps: {

@@ -412,2 +527,4 @@ shift: true;

export declare function defineCellHoverHandler(handler: (hoveringCell: HoveringCellInfo | null) => void): Extension<ExtensionTyping<any, any, any>>;
export declare function defineCustomElement(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;

@@ -419,4 +536,14 @@

export declare function getHoveringCell(view: EditorView, event: MouseEvent): HoveringCellInfo | undefined;
export declare function getVirtualSelectionElement(view: EditorView): ReferenceElement | undefined;
export declare interface HoveringCellInfo {
rowIndex: number;
colIndex: number;
cellPos: number;
rowFirstCellPos: number;
colFirstCellPos: number;
}
declare class InlinePopoverElement extends InlinePopoverElement_base {

@@ -509,2 +636,4 @@ }

export declare function isHoveringCellInfoEqual(a?: HoveringCellInfo | null, b?: HoveringCellInfo | null): boolean;
/**

@@ -636,5 +765,166 @@ * @internal

declare type TableCommandsExtension = ReturnType<typeof defineTableCommands>;
declare type TableCommandsExtension_2 = ReturnType<typeof defineTableCommands>;
declare class TableHandleColumnRootElement extends TableHandleColumnRootElement_base {
}
export { TableHandleColumnRootElement }
export { TableHandleColumnRootElement as TableHandleColumnRootElement_alias_1 }
declare const TableHandleColumnRootElement_base: {
new (): BaseElement & TableHandleColumnRootProps;
prototype: HTMLElement;
};
declare interface TableHandleColumnRootProps extends Omit<OverlayPositionerProps, 'placement'> {
/**
* The ProseKit editor instance.
*
* @default null
*/
editor: Editor | null;
/**
* The placement of the popover, relative to the hovered table cell.
*
* @default "top"
*/
placement: Placement;
}
export { TableHandleColumnRootProps }
export { TableHandleColumnRootProps as TableHandleColumnRootProps_alias_1 }
declare class TableHandleColumnTriggerElement extends TableHandleColumnTriggerElement_base {
}
export { TableHandleColumnTriggerElement }
export { TableHandleColumnTriggerElement as TableHandleColumnTriggerElement_alias_1 }
declare const TableHandleColumnTriggerElement_base: {
new (): BaseElement & TableHandleColumnTriggerProps;
prototype: HTMLElement;
};
declare interface TableHandleColumnTriggerProps {
editor: Editor<TableCommandsExtension> | null;
}
export { TableHandleColumnTriggerProps }
export { TableHandleColumnTriggerProps as TableHandleColumnTriggerProps_alias_1 }
declare class TableHandlePopoverContentElement extends TableHandlePopoverContentElement_base {
}
export { TableHandlePopoverContentElement }
export { TableHandlePopoverContentElement as TableHandlePopoverContentElement_alias_1 }
declare const TableHandlePopoverContentElement_base: {
new (): BaseElement & TableHandlePopoverContentProps;
prototype: HTMLElement;
};
declare interface TableHandlePopoverContentProps extends Omit<MenuContentProps, 'placement' | 'offset'> {
/**
* @default 'bottom-start'
*/
placement: MenuContentProps['placement'];
/**
* @default {mainAxis: -4, crossAxis: 4}
*/
offset: MenuContentProps['offset'];
editor: Editor | null;
}
export { TableHandlePopoverContentProps }
export { TableHandlePopoverContentProps as TableHandlePopoverContentProps_alias_1 }
declare class TableHandlePopoverItemElement extends TableHandlePopoverItemElement_base {
}
export { TableHandlePopoverItemElement }
export { TableHandlePopoverItemElement as TableHandlePopoverItemElement_alias_1 }
declare const TableHandlePopoverItemElement_base: {
new (): BaseElement & TableHandlePopoverItemProps;
prototype: HTMLElement;
};
declare interface TableHandlePopoverItemProps extends MenuItemProps {
disabled?: boolean;
}
export { TableHandlePopoverItemProps }
export { TableHandlePopoverItemProps as TableHandlePopoverItemProps_alias_1 }
/**
* @internal
*/
export declare type TableHandleRootContext = HoveringCellInfo | null;
/**
* @internal
*/
export declare const tableHandleRootContext: Context<TableHandleRootContext>;
declare class TableHandleRootElement extends TableHandleRootElement_base {
}
export { TableHandleRootElement }
export { TableHandleRootElement as TableHandleRootElement_alias_1 }
declare const TableHandleRootElement_base: {
new (): BaseElement & TableHandleRootProps;
prototype: HTMLElement;
};
declare interface TableHandleRootProps {
/**
* The ProseKit editor instance.
*
* @default null
*/
editor: Editor | null;
}
export { TableHandleRootProps }
export { TableHandleRootProps as TableHandleRootProps_alias_1 }
declare class TableHandleRowRootElement extends TableHandleRowRootElement_base {
}
export { TableHandleRowRootElement }
export { TableHandleRowRootElement as TableHandleRowRootElement_alias_1 }
declare const TableHandleRowRootElement_base: {
new (): BaseElement & TableHandleRowRootProps;
prototype: HTMLElement;
};
declare interface TableHandleRowRootProps extends Omit<OverlayPositionerProps, 'placement'> {
/**
* The ProseKit editor instance.
*
* @default null
*/
editor: Editor | null;
/**
* The placement of the popover, relative to the hovered table cell.
*
* @default "left"
*/
placement: Placement;
}
export { TableHandleRowRootProps }
export { TableHandleRowRootProps as TableHandleRowRootProps_alias_1 }
declare class TableHandleRowTriggerElement extends TableHandleRowTriggerElement_base {
}
export { TableHandleRowTriggerElement }
export { TableHandleRowTriggerElement as TableHandleRowTriggerElement_alias_1 }
declare const TableHandleRowTriggerElement_base: {
new (): BaseElement & TableHandleRowTriggerProps;
prototype: HTMLElement;
};
declare interface TableHandleRowTriggerProps {
editor: Editor<TableCommandsExtension_2> | null;
}
export { TableHandleRowTriggerProps }
export { TableHandleRowTriggerProps as TableHandleRowTriggerProps_alias_1 }
/**
* @internal
*/
export declare function throttle<Args extends any[]>(callback: (...args: Args) => void, wait: number): (...args: Args) => void;

@@ -700,2 +990,4 @@

export declare function useEditorTyping(host: ConnectableElement, editor: ReadonlySignal<Editor | null>): ReadonlySignal<boolean>;
/**

@@ -722,2 +1014,16 @@ * @internal

export declare function useTableHandleColumnRoot(host: ConnectableElement, state: SignalState<TableHandleColumnRootProps>): void;
export declare function useTableHandleColumnTrigger(host: ConnectableElement, state: SignalState<TableHandleColumnTriggerProps>): void;
export declare function useTableHandlePopoverContent(host: ConnectableElement, state: SignalState<TableHandlePopoverContentProps>): void;
export declare function useTableHandlePopoverItem(element: ConnectableElement, state: SignalState<TableHandlePopoverItemProps>): void;
export declare function useTableHandleRoot(host: ConnectableElement, state: SignalState<TableHandleRootProps>): void;
export declare function useTableHandleRowRoot(host: ConnectableElement, state: SignalState<TableHandleRowRootProps>): void;
export declare function useTableHandleRowTrigger(host: ConnectableElement, state: SignalState<TableHandleRowTriggerProps>): void;
export { useTooltipContent }

@@ -724,0 +1030,0 @@

20

package.json
{
"name": "@prosekit/web",
"type": "module",
"version": "0.3.12",
"version": "0.3.13",
"private": false,

@@ -58,2 +58,7 @@ "author": {

},
"./table-handle": {
"types": "./dist/prosekit-web-table-handle.d.ts",
"import": "./dist/prosekit-web-table-handle.js",
"default": "./dist/prosekit-web-table-handle.js"
},
"./tooltip": {

@@ -72,2 +77,3 @@ "types": "./dist/prosekit-web-tooltip.d.ts",

"@aria-ui/listbox": "^0.0.18",
"@aria-ui/menu": "^0.0.12",
"@aria-ui/overlay": "^0.0.19",

@@ -78,7 +84,8 @@ "@aria-ui/popover": "^0.0.20",

"@floating-ui/dom": "^1.6.10",
"@zag-js/dom-query": "^0.65.0",
"@zag-js/dom-query": "^0.65.1",
"just-omit": "^2.2.0",
"@prosekit/extensions": "^0.7.12",
"@prosekit/pm": "^0.1.8",
"@prosekit/core": "^0.7.9"
"prosemirror-tables": "^1.5.0",
"@prosekit/core": "^0.7.9",
"@prosekit/extensions": "^0.7.13",
"@prosekit/pm": "^0.1.8"
},

@@ -116,2 +123,5 @@ "devDependencies": {

],
"table-handle": [
"./dist/prosekit-web-table-handle.d.ts"
],
"tooltip": [

@@ -118,0 +128,0 @@ "./dist/prosekit-web-tooltip.d.ts"

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