Skip to content

Commit

Permalink
api update
Browse files Browse the repository at this point in the history
  • Loading branch information
e218736 committed Jan 4, 2024
1 parent a747e97 commit f013646
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 0 additions & 2 deletions review/api/application.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ export class Application<T extends Widget = Widget> {
activatePlugin(id: string): Promise<void>;
protected addEventListeners(): void;
protected attachShell(id: string): void;
get bubblingKeydown(): boolean;
set bubblingKeydown(value: boolean);
readonly commands: CommandRegistry;
readonly contextMenu: ContextMenu;
deactivatePlugin(id: string): Promise<string[]>;
Expand Down
10 changes: 7 additions & 3 deletions review/api/widgets.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ export class CommandPalette extends Widget {
handleEvent(event: Event): void;
get inputNode(): HTMLInputElement;
get items(): ReadonlyArray<CommandPalette.IItem>;
// (undocumented)
readonly keyToText: CommandPalette.IRenderer['keyToText'];
protected onActivateRequest(msg: Message): void;
protected onAfterDetach(msg: Message): void;
Expand Down Expand Up @@ -237,7 +236,6 @@ export namespace CommandPalette {
renderer?: IRenderer;
}
export interface IRenderer {
// (undocumented)
keyToText?: {
[key: string]: string;
};
Expand All @@ -256,7 +254,6 @@ export namespace CommandPalette {
formatItemCaption(data: IItemRenderData): h.Child;
formatItemLabel(data: IItemRenderData): h.Child;
formatItemShortcut(data: IItemRenderData): h.Child;
// (undocumented)
keyToText?: {
[key: string]: string;
};
Expand Down Expand Up @@ -707,6 +704,7 @@ export class Menu extends Widget {
handleEvent(event: Event): void;
insertItem(index: number, options: Menu.IItemOptions): Menu.IItem;
get items(): ReadonlyArray<Menu.IItem>;
readonly keyToText: Menu.IRenderer['keyToText'];
get leafMenu(): Menu;
get menuRequested(): ISignal<this, 'next' | 'previous'>;
protected onActivateRequest(msg: Message): void;
Expand Down Expand Up @@ -765,6 +763,9 @@ export namespace Menu {
readonly onfocus?: () => void;
}
export interface IRenderer {
keyToText?: {
[key: string]: string;
};
renderItem(data: IRenderData): VirtualElement;
}
export type ItemType = 'command' | 'submenu' | 'separator';
Expand All @@ -777,6 +778,9 @@ export namespace Menu {
formatShortcut(data: IRenderData): h.Child;
// (undocumented)
formatShortcutText(data: IRenderData): h.Child;
keyToText?: {
[key: string]: string;
};
renderIcon(data: IRenderData): VirtualElement;
renderItem(data: IRenderData): VirtualElement;
renderLabel(data: IRenderData): VirtualElement;
Expand Down

0 comments on commit f013646

Please sign in to comment.