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.19 to 0.0.20

dist/prosekit-extensions-strike.d.ts

77

dist/_tsup-dts-rollup.d.ts

@@ -101,2 +101,5 @@ import { CommandArgs } from '@prosekit/core';

MARKS: "code";
COMMAND_ARGS: {
toggleCode: [];
};
}>;

@@ -132,2 +135,8 @@

export declare function defineCodeCommands(): Extension< {
COMMAND_ARGS: {
toggleCode: [];
};
}>;
/**

@@ -198,13 +207,2 @@ * @public

/**
* @public
*/
export declare function defineItalic_alias_1(): Extension< {
MARKS: "link";
COMMAND_ARGS: {
addLink: [attrs: LinkAttrs];
toggleLink: [attrs: LinkAttrs];
};
}>;
export declare function defineItalicCommands(): Extension< {

@@ -218,2 +216,4 @@ COMMAND_ARGS: {

export declare function defineItalicKeymap_alias_1(): Extension<ExtensionTyping<string, string, CommandArgs>>;
export declare function defineItalicSpec(): Extension< {

@@ -223,2 +223,13 @@ MARKS: "italic";

/**
* @public
*/
export declare function defineLink(): Extension< {
MARKS: "link";
COMMAND_ARGS: {
addLink: [attrs: LinkAttrs];
toggleLink: [attrs: LinkAttrs];
};
}>;
export declare function defineLinkCommands(): Extension< {

@@ -300,4 +311,48 @@ COMMAND_ARGS: {

/**
* @public
*/
export declare function defineStrike(): Extension< {
MARKS: "strike";
COMMAND_ARGS: {
toggleStrike: [];
};
}>;
export declare function defineStrikeCommands(): Extension< {
COMMAND_ARGS: {
toggleStrike: [];
};
}>;
export declare function defineStrikeKeymap(): Extension<ExtensionTyping<string, string, CommandArgs>>;
export declare function defineStrikeSpec(): Extension< {
MARKS: "strike";
}>;
export declare function defineSuggestion(options: SuggestionOptions): Extension<ExtensionTyping<string, string, CommandArgs>>;
/**
* @public
*/
export declare function defineUnderline(): Extension< {
MARKS: "underline";
COMMAND_ARGS: {
toggleUnderline: [];
};
}>;
export declare function defineUnderlineCommands(): Extension< {
COMMAND_ARGS: {
toggleUnderline: [];
};
}>;
export declare function defineUnderlineKeymap(): Extension<ExtensionTyping<string, string, CommandArgs>>;
export declare function defineUnderlineSpec(): Extension< {
MARKS: "underline";
}>;
export declare function getPluginState(state: EditorState): PredictionPluginState | undefined;

@@ -304,0 +359,0 @@

export { defineCodeSpec } from './_tsup-dts-rollup';
export { defineCodeCommands } from './_tsup-dts-rollup';
export { defineItalicKeymap } from './_tsup-dts-rollup';
export { defineCode } from './_tsup-dts-rollup';
// src/code/index.ts
import { defineMarkSpec, union } from "@prosekit/core";
import {
defineCommands,
defineKeymap,
defineMarkSpec,
toggleMark,
union
} from "@prosekit/core";
function defineCodeSpec() {

@@ -12,8 +18,20 @@ return defineMarkSpec({

}
function defineCodeCommands() {
return defineCommands({
toggleCode: () => toggleMark({ type: "code" })
});
}
function defineItalicKeymap() {
return defineKeymap({
"Mod-e": toggleMark({ type: "code" })
});
}
function defineCode() {
return union([defineCodeSpec()]);
return union([defineCodeSpec(), defineCodeCommands(), defineItalicKeymap()]);
}
export {
defineCode,
defineCodeSpec
defineCodeCommands,
defineCodeSpec,
defineItalicKeymap
};

2

dist/prosekit-extensions-italic.d.ts
export { defineItalicSpec } from './_tsup-dts-rollup';
export { defineItalicCommands } from './_tsup-dts-rollup';
export { defineItalicKeymap } from './_tsup-dts-rollup';
export { defineItalicKeymap_alias_1 as defineItalicKeymap } from './_tsup-dts-rollup';
export { defineItalic } from './_tsup-dts-rollup';
export { defineLinkSpec } from './_tsup-dts-rollup';
export { defineLinkCommands } from './_tsup-dts-rollup';
export { defineItalic_alias_1 as defineItalic } from './_tsup-dts-rollup';
export { defineLink } from './_tsup-dts-rollup';
export { LinkAttrs } from './_tsup-dts-rollup';

@@ -37,9 +37,9 @@ // src/link/index.ts

}
function defineItalic() {
function defineLink() {
return union([defineLinkSpec(), defineLinkCommands()]);
}
export {
defineItalic,
defineLink,
defineLinkCommands,
defineLinkSpec
};
{
"name": "@prosekit/extensions",
"type": "module",
"version": "0.0.19",
"version": "0.0.20",
"private": false,

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

},
"./strike": {
"types": "./dist/prosekit-extensions-strike.d.ts",
"import": "./dist/prosekit-extensions-strike.js",
"default": "./dist/prosekit-extensions-strike.js"
},
"./suggestion": {

@@ -104,2 +109,7 @@ "types": "./dist/prosekit-extensions-suggestion.d.ts",

"default": "./dist/prosekit-extensions-suggestion.js"
},
"./underline": {
"types": "./dist/prosekit-extensions-underline.d.ts",
"import": "./dist/prosekit-extensions-underline.js",
"default": "./dist/prosekit-extensions-underline.js"
}

@@ -111,3 +121,3 @@ },

"dependencies": {
"@prosekit/core": "^0.0.17",
"@prosekit/core": "^0.0.18",
"@prosekit/pm": "^0.0.7",

@@ -170,4 +180,10 @@ "highlight.js": "^11.9.0",

],
"strike": [
"./dist/prosekit-extensions-strike.d.ts"
],
"suggestion": [
"./dist/prosekit-extensions-suggestion.d.ts"
],
"underline": [
"./dist/prosekit-extensions-underline.d.ts"
]

@@ -174,0 +190,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