Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
FIameCaster committed Mar 12, 2024
1 parent dc67711 commit 7d49c5e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prism-code-editor",
"version": "3.0.1",
"version": "3.1.0",
"type": "module",
"description": "Lightweight, extensible code editor component for the web using Prism",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion package/scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fs.writeFile("dist/themes/index.js", themeMod)
fs.copyFile("../readme.md", "readme.md")
fs.copyFile("../LICENSE", "LICENSE")

const dummyModule = `/** Used for autocompletion, **don't** import this. */
const dummyModule = `/** Used for autocompletion. This module doesn't have a default export. */
declare const _: never;
export default _;
`
Expand Down
9 changes: 5 additions & 4 deletions package/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export interface PrismEditor extends EventHandler<EditorEventMap> {
history?: EditHistory
}
/**
* Set new options for the editor. Ommitted properties will use their previous value.
* Set new options for the editor. Ommitted properties will use their old value.
* @param options New options for the editor
*/
setOptions(options: Partial<EditorOptions>): void
Expand All @@ -163,9 +163,10 @@ export interface PrismEditor extends EventHandler<EditorEventMap> {
getSelection(): InputSelection
/**
* Sets the selection for the `textarea` and synchronously runs the selectionChange listeners.
* @param start New selectionStart
* @param end New selectionEnd
* @param direction New direction
* If you don't want to synchronously run the listeners, use `textarea.setSelectionRange` instead.
* @param start New selectionStart.
* @param end New selectionEnd. Defaults to `start`.
* @param direction New direction.
*/
setSelection(start: number, end?: number, direction?: "backward" | "forward" | "none"): void
/** Adds extensions to the editor and calls their update methods. */
Expand Down
2 changes: 2 additions & 0 deletions package/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@
"cacheBust": true,
"githubPages": false,
"out": "../website/dist/api",
"titleLink": "/",
"name": "Prism code editor API",
}

0 comments on commit 7d49c5e

Please sign in to comment.