Skip to content

Commit 99edbf9

Browse files
authored
Update docs and types for show_cc, show_bcc and is_peoplekit_compose (#660)
1 parent b8cb7ea commit 99edbf9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ Compose methods:
11421142
- **.close()** - close compose window
11431143
- **.dom(lookup)** - retrieve preconfigured dom elements for this compose window.
11441144
Lookup can be one of `'to' | 'cc' | 'bcc' | 'id' | 'draft' | 'subject' | 'subjectbox'
1145-
| 'all_subjects' | 'body' | 'quoted_reply' | 'reply' | 'forward' | 'from' | 'send_button'`
1145+
| 'all_subjects' | 'body' | 'quoted_reply' | 'reply' | 'forward' | 'from' | 'send_button' | 'show_cc' | 'show_bcc'`
11461146

11471147
### gmail.dom.email(email_el or email_id)
11481148

src/gmail.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,10 @@ interface GmailCheck {
295295
Returns True if the user is running Gmail with the new 2018 GUI
296296
*/
297297
is_new_gui(): boolean;
298+
/**
299+
Returns True if the compose UI uses new UI as announced [here](https://workspaceupdates.googleblog.com/2021/10/visual-updates-for-composing-email-in-gmail.html)
300+
*/
301+
is_peoplekit_compose(composeElement: HTMLElement): boolean;
298302
/**
299303
Returns True if the conversation is threaded False otherwise
300304
*/
@@ -485,7 +489,7 @@ interface GmailDomEmail {
485489

486490
declare type GmailDomComposeLookup =
487491
'to' | 'cc' | 'bcc' | 'id' | 'draft' | 'subject' | 'subjectbox'
488-
| 'all_subjects' | 'body' | 'quoted_reply' |'reply' | 'forward' | 'from' | 'send_button';
492+
| 'all_subjects' | 'body' | 'quoted_reply' |'reply' | 'forward' | 'from' | 'send_button' | 'show_cc' | 'show_bcc';
489493

490494
interface GmailMessageRow {
491495
summary: string;

0 commit comments

Comments
 (0)