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.0.3 to 0.0.4

7

./src/index.ts

@@ -15,3 +15,8 @@ export { toggleMark } from './commands/toggle-mark'

export { addParagraph } from './extensions/paragraph'
export { addPlugin, type PluginOptions } from './extensions/plugin'
export {
addPlugin,
type PluginOptions,
type PluginFacetInput,
pluginFacet,
} from './extensions/plugin'
export { addText } from './extensions/text'

@@ -18,0 +23,0 @@ export { type CommandArgs as CommandArgs } from './types/command'

18

dist/prosekit-core.d.ts

@@ -58,2 +58,7 @@ import { MarkType, Attrs, Schema, ProseMirrorNode, NodeType, MarkSpec, NodeSpec } from '@prosekit/pm/model';

/**
* @intneral
*/
type SimplifyUnion<T> = Simplify<UnionToIntersection<T>>;
/**
* @public

@@ -267,2 +272,8 @@ */

declare function addPlugin({ plugins }: PluginOptions): Extension;
/** @internal */
type PluginFacetInput = (context: {
schema: Schema;
}) => Plugin[];
/** @internal */
declare const pluginFacet: Facet<PluginFacetInput, StateConfigCallback>;

@@ -274,7 +285,2 @@ /** @public */

/**
* @intneral
*/
type SimplifyUnion<T> = Simplify<UnionToIntersection<T>>;
/** @internal */

@@ -286,2 +292,2 @@ declare function getMarkType(schema: Schema, type: string | MarkType): MarkType;

export { CommandArgs, Editor, EditorOptions, Extension, ExtensionTyping, ExtractCommandCreators, ExtractCommandDispatchers, ExtractMarks, ExtractNodes, Facet, FacetExtension, FacetOptions, Keymap, MarkSpecOptions, NodeSpecOptions, NodeViewOptions, PluginOptions, Priority, ProseKitError, SimplifyUnion, StateConfigCallback, StateConfigContext, ViewProps, addBaseCommands, addBaseKeymap, addCommands, addDoc, addInputRule, addKeymap, addMarkSpec, addNodeSpec, addNodeView, addParagraph, addPlugin, addText, createEditor, defineExtension, getMarkType, getNodeType, toggleMark, withPriority };
export { CommandArgs, Editor, EditorOptions, Extension, ExtensionTyping, ExtractCommandCreators, ExtractCommandDispatchers, ExtractMarks, ExtractNodes, Facet, FacetExtension, FacetOptions, Keymap, MarkSpecOptions, NodeSpecOptions, NodeViewOptions, PluginFacetInput, PluginOptions, Priority, ProseKitError, SimplifyUnion, StateConfigCallback, StateConfigContext, ViewProps, addBaseCommands, addBaseKeymap, addCommands, addDoc, addInputRule, addKeymap, addMarkSpec, addNodeSpec, addNodeView, addParagraph, addPlugin, addText, createEditor, defineExtension, getMarkType, getNodeType, pluginFacet, toggleMark, withPriority };
// src/commands/toggle-mark.ts
import { toggleMark as baseToggleMark } from "@prosekit/pm/commands";
import "@prosekit/pm/model";
import "@prosekit/pm/state";
// src/utils/get-mark-type.ts
import "@prosekit/pm/model";
// src/error.ts

@@ -31,3 +36,3 @@ var ProseKitError = class extends Error {

// src/editor/editor.ts
import { Schema } from "@prosekit/pm/model";
import { Schema as Schema2 } from "@prosekit/pm/model";
import { EditorState } from "@prosekit/pm/state";

@@ -267,3 +272,3 @@ import { EditorView } from "@prosekit/pm/view";

}
const schema = new Schema(schemaInput);
const schema = new Schema2(schemaInput);
const stateConfig = stateInput ? stateInput({ schema }) : { schema };

@@ -432,2 +437,3 @@ const state = EditorState.create(stateConfig);

// src/extensions/command.ts
import "@prosekit/pm/model";
import { AllSelection, Selection } from "@prosekit/pm/state";

@@ -542,4 +548,8 @@ import { findWrapping, insertPoint } from "@prosekit/pm/transform";

import { inputRules } from "@prosekit/pm/inputrules";
import "@prosekit/pm/model";
import "@prosekit/pm/state";
// src/extensions/plugin.ts
import "@prosekit/pm/model";
import "@prosekit/pm/state";
function addPlugin({ plugins }) {

@@ -581,2 +591,3 @@ if (typeof plugins === "function") {

import { keymap as createKeymapPlugin } from "@prosekit/pm/keymap";
import "@prosekit/pm/state";
function addKeymap(keymap) {

@@ -632,3 +643,4 @@ return keymapFacet.extension([keymap]);

// src/extensions/node-view.ts
import { Plugin as Plugin2 } from "@prosekit/pm/state";
import { Plugin as Plugin4 } from "@prosekit/pm/state";
import "@prosekit/pm/view";
function addNodeView(options) {

@@ -645,3 +657,3 @@ return nodeViewFacet.extension([options]);

}
return () => [new Plugin2({ props: { nodeViews } })];
return () => [new Plugin4({ props: { nodeViews } })];
},

@@ -677,2 +689,3 @@ next: pluginFacet

// src/utils/get-node-type.ts
import "@prosekit/pm/model";
function getNodeType(schema, type) {

@@ -710,4 +723,5 @@ if (typeof type === "string") {

getNodeType,
pluginFacet,
toggleMark,
withPriority
};
{
"name": "@prosekit/core",
"type": "module",
"version": "0.0.3",
"version": "0.0.4",
"private": false,

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

"orderedmap": "^2.1.1",
"type-fest": "^3.12.0"
"type-fest": "^3.13.1"
},

@@ -46,0 +46,0 @@ "devDependencies": {

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