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

@prosekit/core

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prosekit/core - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

27

dist/_tsup-dts-rollup.d.ts

@@ -22,2 +22,3 @@ import { AllSelection } from '@prosekit/pm/state';

import { NodeType as NodeType_2 } from 'prosemirror-model';
import { NodeView } from '@prosekit/pm/view';
import { NodeViewConstructor } from '@prosekit/pm/view';

@@ -97,2 +98,28 @@ import { Options } from 'tsup';

/**
* Some basic props for custom node views.
*
* @public
*/
declare interface BaseNodeViewOptions {
/**
* The wrapping DOM element for the node view. Defaults to `div` for block nodes and `span` for inline nodes.
*/
as?: string | HTMLElement | ((node: ProseMirrorNode) => HTMLElement);
/**
* The wrapping DOM element for the node view's content. Defaults to `div` for block nodes and `span` for inline nodes.
*/
contentAs?: string | HTMLElement | ((node: ProseMirrorNode) => HTMLElement);
update?: NodeView['update'];
ignoreMutation?: NodeView['ignoreMutation'];
selectNode?: NodeView['selectNode'];
deselectNode?: NodeView['deselectNode'];
setSelection?: NodeView['setSelection'];
stopEvent?: NodeView['stopEvent'];
destroy?: NodeView['destroy'];
onUpdate?: () => void;
}
export { BaseNodeViewOptions }
export { BaseNodeViewOptions as BaseNodeViewOptions_alias_1 }
export declare function collectNodes(content: NodeContent): ProseMirrorNode[];

@@ -99,0 +126,0 @@

3

dist/prosekit-core.d.ts

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

export { _getId } from './_tsup-dts-rollup';
export { addMark } from './_tsup-dts-rollup';

@@ -40,2 +39,3 @@ export { insertNode } from './_tsup-dts-rollup';

export { FacetOptions } from './_tsup-dts-rollup';
export { BaseNodeViewOptions } from './_tsup-dts-rollup';
export { CommandArgs } from './_tsup-dts-rollup';

@@ -54,2 +54,3 @@ export { Extension } from './_tsup-dts-rollup';

export { SimplifyUnion } from './_tsup-dts-rollup';
export { _getId } from './_tsup-dts-rollup';
export { getMarkType } from './_tsup-dts-rollup';

@@ -56,0 +57,0 @@ export { getNodeType } from './_tsup-dts-rollup';

@@ -1,8 +0,1 @@

// src/utils/get-id.ts
var id = 0;
function getId() {
id = (id + 1) % Number.MAX_SAFE_INTEGER;
return `id:${id}`;
}
// src/commands/add-mark.ts

@@ -1432,2 +1425,9 @@ import "@prosekit/pm/model";

var pluginKey = new PluginKey2("prosekit-event-handler");
// src/utils/get-id.ts
var id = 0;
function getId() {
id = (id + 1) % Number.MAX_SAFE_INTEGER;
return `id:${id}`;
}
export {

@@ -1434,0 +1434,0 @@ Editor,

{
"name": "@prosekit/core",
"type": "module",
"version": "0.1.8",
"version": "0.1.9",
"private": false,

@@ -41,3 +41,3 @@ "author": {

"dependencies": {
"@prosekit/pm": "^0.1.0",
"@prosekit/pm": "^0.1.1",
"orderedmap": "^2.1.1",

@@ -44,0 +44,0 @@ "type-fest": "^4.8.3"

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

export { getId as _getId } from './utils/get-id'
export { addMark } from './commands/add-mark'

@@ -41,2 +40,3 @@ export { insertNode } from './commands/insert-node'

export { Facet, type FacetOptions } from './facets/facet'
export type { BaseNodeViewOptions } from './types/base-node-view-options'
export { type CommandArgs } from './types/command'

@@ -55,2 +55,3 @@ export {

export { type SimplifyUnion } from './types/simplify-union'
export { getId as _getId } from './utils/get-id'
export { getMarkType } from './utils/get-mark-type'

@@ -57,0 +58,0 @@ export { getNodeType } from './utils/get-node-type'

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