@prosekit/extensions
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -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 | ||
}; |
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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51862
38
1580
+ Added@prosekit/core@0.0.18(transitive)
- Removed@prosekit/core@0.0.17(transitive)
Updated@prosekit/core@^0.0.18