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

@prosekit/extensions

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prosekit/extensions - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

9

dist/_tsup-dts-rollup.d.ts

@@ -151,4 +151,13 @@ import { CommandArgs } from '@prosekit/core';

NODES: "image";
COMMAND_ARGS: {
insertImage: [attrs?: ImageAttrs | undefined];
};
}>;
export declare function defineImageCommands(): Extension< {
COMMAND_ARGS: {
insertImage: [attrs?: ImageAttrs | undefined];
};
}>;
export declare function defineImageSpec(): Extension< {

@@ -155,0 +164,0 @@ NODES: "image";

1

dist/prosekit-extensions-image.d.ts
export { defineImageSpec } from './_tsup-dts-rollup';
export { defineImageCommands } from './_tsup-dts-rollup';
export { defineImage } from './_tsup-dts-rollup';
export { ImageAttrs } from './_tsup-dts-rollup';
// src/image/index.ts
import { defineNodeSpec, union } from "@prosekit/core";
import {
defineCommands,
defineNodeSpec,
insertNode,
union
} from "@prosekit/core";
function defineImageSpec() {

@@ -29,8 +34,16 @@ return defineNodeSpec({

}
function defineImageCommands() {
return defineCommands({
insertImage: (attrs) => {
return insertNode({ type: "image", attrs });
}
});
}
function defineImage() {
return union([defineImageSpec()]);
return union([defineImageSpec(), defineImageCommands()]);
}
export {
defineImage,
defineImageCommands,
defineImageSpec
};

4

package.json
{
"name": "@prosekit/extensions",
"type": "module",
"version": "0.0.15",
"version": "0.0.16",
"private": false,

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

"dependencies": {
"@prosekit/core": "^0.0.13",
"@prosekit/core": "^0.0.14",
"@prosekit/pm": "^0.0.6",

@@ -112,0 +112,0 @@ "highlight.js": "^11.9.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