Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 24 additions & 11 deletions types/office-js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ declare namespace Office {
messageParent(messageObject: any): void;
/**
* Closes the UI container where the JavaScript is executing.
*
*
* Supported hosts: Outlook - Minimum requirement set: Mailbox 1.5
*
*
* The behavior of this method is specified by the following:
*
*
* Called from a UI-less command button: No effect. Any dialog opened by displayDialogAsync will remain open.
*
*
* Called from a taskpane: The taskpane will close. Any dialog opened by displayDialogAsync will also close. If the taskpane supports pinning and was pinned by the user, it will be un-pinned.
*
*
* Called from a module extension: No effect.
*/
closeContainer(): void;
Expand Down Expand Up @@ -2102,6 +2102,19 @@ declare namespace Office {
* Returns string values that match the named regular expression defined in the manifest XML file
*/
getRegExMatchesByName(name: string): Array<string>;
/**
* Gets the entities found in the selected item that are currently selected
*
* [Api set: Mailbox 1.6]
*/
getSelectedEntities(): Entities;
/**
* Returns string values in the currently selected message object that match the regular expressions defined in the manifest XML file and
* are selected in the current item
*
* [Api set: Mailbox 1.6]
*/
getSelectedRegExMatches(): any;
}
export interface LocalClientTime {
month: number;
Expand Down Expand Up @@ -2608,12 +2621,12 @@ declare namespace OfficeExtension {
}

export interface EmbeddedOptions {
sessionKey?: string,
container?: HTMLElement,
id?: string;
timeoutInMilliseconds?: number;
height?: string;
width?: string;
sessionKey?: string,
container?: HTMLElement,
id?: string;
timeoutInMilliseconds?: number;
height?: string;
width?: string;
}

class EmbeddedSession {
Expand Down