Skip to content

Commit ba7d3cb

Browse files
committed
Add support for menu icons to fit macOS Tahoe
1 parent 42f91b7 commit ba7d3cb

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Add `markedit-api` to your (TypeScript) project's devDependencies:
1919
```json
2020
{
2121
"devDependencies": {
22-
"markedit-api": "https://github.com/MarkEdit-app/MarkEdit-api#v0.9.0"
22+
"markedit-api": "https://github.com/MarkEdit-app/MarkEdit-api#v0.10.0"
2323
}
2424
}
2525
```

markedit.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,13 @@ export type MenuItem = {
293293
action?: () => void;
294294
state?: () => MenuItemState;
295295

296+
/**
297+
* Icon for the item.
298+
*
299+
* This can be either a base64 string or a SF Symbol name.
300+
*/
301+
icon?: string;
302+
296303
/**
297304
* Whether an item is a separator used to logically group other items.
298305
*/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "markedit-api",
3-
"version": "0.9.0",
3+
"version": "0.10.0",
44
"description": "Type definitions for the latest MakrEdit API.",
55
"main": "main.ts",
66
"types": "markedit.d.ts",

0 commit comments

Comments
 (0)