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.7 to 0.1.8

38

dist/_tsup-dts-rollup.d.ts

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

import type { UnionToIntersection } from 'type-fest';
import { UserProjectConfigExport } from 'vitest/dist/config.js';

@@ -141,3 +140,7 @@ declare type Action = (options: {

export declare const default_alias_1: UserProjectConfigExport;
export declare const default_alias_1: {
test: {
environment: "jsdom";
};
};

@@ -307,5 +310,8 @@ declare interface DefaultStateOptions {

declare function defineNodeViewEffect(options: NodeViewEffectOptions): Extension;
export { defineNodeViewEffect }
export { defineNodeViewEffect as defineNodeViewEffect_alias_1 }
/**
* @internal
*/
declare function defineNodeViewFactory<T>(options: NodeViewFactoryOptions<T>): Extension;
export { defineNodeViewFactory }
export { defineNodeViewFactory as defineNodeViewFactory_alias_1 }

@@ -585,4 +591,13 @@ /**

/**
* Returns a unique id in the current process that can be used in various places.
*
* @internal
*/
declare function getId(): string;
export { getId as _getId }
export { getId }
/**
* @internal
*/
declare function getMarkType(schema: Schema, type: string | MarkType): MarkType;

@@ -789,13 +804,16 @@ export { getMarkType }

declare type NodeViewEffectOptions = {
/**
* @internal
*/
declare type NodeViewFactoryOptions<T> = {
group: string;
name: string;
args: unknown;
args: T;
} | {
group: string;
name?: undefined;
factory: (args: unknown) => NodeViewConstructor;
factory: (args: T) => NodeViewConstructor;
};
export { NodeViewEffectOptions }
export { NodeViewEffectOptions as NodeViewEffectOptions_alias_1 }
export { NodeViewFactoryOptions }
export { NodeViewFactoryOptions as NodeViewFactoryOptions_alias_1 }

@@ -802,0 +820,0 @@ declare interface NodeViewOptions {

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

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

@@ -29,4 +30,4 @@ export { insertNode } from './_tsup-dts-rollup';

export { NodeViewOptions } from './_tsup-dts-rollup';
export { defineNodeViewEffect } from './_tsup-dts-rollup';
export { NodeViewEffectOptions } from './_tsup-dts-rollup';
export { defineNodeViewFactory } from './_tsup-dts-rollup';
export { NodeViewFactoryOptions } from './_tsup-dts-rollup';
export { defineParagraph } from './_tsup-dts-rollup';

@@ -33,0 +34,0 @@ export { definePlugin } from './_tsup-dts-rollup';

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

// 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

@@ -1328,6 +1335,6 @@ import "@prosekit/pm/model";

import "@prosekit/pm/view";
function defineNodeViewEffect(options) {
return nodeViewEffectFacet.extension([options]);
function defineNodeViewFactory(options) {
return nodeViewFactoryFacet.extension([options]);
}
var nodeViewEffectFacet = Facet.define({
var nodeViewFactoryFacet = Facet.define({
convert: (inputs) => {

@@ -1355,3 +1362,3 @@ const nodeViews = {};

}
return () => Object.keys(nodeViews).length > 0 ? [new ProseMirrorPlugin2({ props: { nodeViews } })] : [];
return () => [new ProseMirrorPlugin2({ props: { nodeViews } })];
},

@@ -1432,2 +1439,3 @@ next: pluginFacet

ProseKitError,
getId as _getId,
addMark,

@@ -1446,3 +1454,3 @@ createEditor,

defineNodeView,
defineNodeViewEffect,
defineNodeViewFactory,
defineParagraph,

@@ -1449,0 +1457,0 @@ definePlugin,

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

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

"orderedmap": "^2.1.1",
"type-fest": "^4.8.2"
"type-fest": "^4.8.3"
},

@@ -49,4 +49,4 @@ "devDependencies": {

"tsup": "^8.0.1",
"typescript": "^5.3.2",
"vitest": "^0.34.6"
"typescript": "^5.3.3",
"vitest": "^1.0.4"
},

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

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

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

@@ -28,4 +29,4 @@ export { insertNode } from './commands/insert-node'

export {
defineNodeViewEffect,
type NodeViewEffectOptions,
defineNodeViewFactory,
type NodeViewFactoryOptions,
} from './extensions/node-view-effect'

@@ -32,0 +33,0 @@ export { defineParagraph } from './extensions/paragraph'

Sorry, the diff of this file is not supported yet

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