@inboxsdk/core 2.1.4 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/inboxsdk.js +619 -507
- package/inboxsdk.js.map +1 -1
- package/package.json +2 -2
- package/pageWorld.js +44 -7
- package/pageWorld.js.map +1 -1
- package/src/common/find-parent.d.ts +3 -0
- package/src/common/find-parent.d.ts.map +1 -1
- package/src/inboxsdk.d.ts +6 -17
- package/src/platform-implementation-js/dom-driver/gmail/gmail-driver/gmail-load-event.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/gmail-driver/isIntegratedViewGmail.d.ts +6 -6
- package/src/platform-implementation-js/dom-driver/gmail/gmail-driver/isIntegratedViewGmail.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/gmail-driver.d.ts +13 -59
- package/src/platform-implementation-js/dom-driver/gmail/gmail-driver.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/index.d.ts +4 -7
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/index.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/primary/index.d.ts +10 -36
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/primary/index.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/widgets/gmail-mole-view-driver.d.ts +15 -1
- package/src/platform-implementation-js/dom-driver/gmail/widgets/gmail-mole-view-driver.d.ts.map +1 -1
- package/src/platform-implementation-js/driver-common/sidebar/ContentPanelViewDriver.d.ts +3 -11
- package/src/platform-implementation-js/driver-common/sidebar/ContentPanelViewDriver.d.ts.map +1 -1
- package/src/platform-implementation-js/lib/logger.d.ts +7 -2
- package/src/platform-implementation-js/lib/logger.d.ts.map +1 -1
- package/src/platform-implementation-js/namespaces/widgets.d.ts +1 -1
- package/src/platform-implementation-js/namespaces/widgets.d.ts.map +1 -1
- package/src/platform-implementation-js/views/content-panel-view.d.ts +9 -3
- package/src/platform-implementation-js/views/content-panel-view.d.ts.map +1 -1
- package/src/platform-implementation-js/driver-interfaces/mole-view-driver.d.ts +0 -16
- package/src/platform-implementation-js/driver-interfaces/mole-view-driver.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-parent.d.ts","sourceRoot":"","sources":["../../../../src/common/find-parent.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,EAAE,EAAE,WAAW,EACf,EAAE,EAAE,CAAC,EAAE,EAAE,OAAO,KAAK,OAAO,GAC3B,WAAW,GAAG,IAAI,CASpB"}
|
|
1
|
+
{"version":3,"file":"find-parent.d.ts","sourceRoot":"","sources":["../../../../src/common/find-parent.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,EAAE,EAAE,WAAW,EACf,EAAE,EAAE,CAAC,EAAE,EAAE,OAAO,KAAK,OAAO,GAC3B,WAAW,GAAG,IAAI,CASpB"}
|
package/src/inboxsdk.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ import type { IMoleView as MoleView } from './platform-implementation-js/widgets
|
|
|
24
24
|
export * from './platform-implementation-js/dom-driver/gmail/views/gmail-nav-item-view';
|
|
25
25
|
import type User from './platform-implementation-js/namespaces/user';
|
|
26
26
|
import { ContentPanelDescriptor } from './platform-implementation-js/driver-common/sidebar/ContentPanelViewDriver';
|
|
27
|
+
import type ContentPanelView from './platform-implementation-js/views/content-panel-view';
|
|
28
|
+
import type { MoleOptions } from './platform-implementation-js/dom-driver/gmail/widgets/gmail-mole-view-driver';
|
|
27
29
|
|
|
28
30
|
export type { User };
|
|
29
31
|
|
|
@@ -189,7 +191,7 @@ export interface Widgets {
|
|
|
189
191
|
/** check whether mole view has light title bar as part of gmail new view / original view */
|
|
190
192
|
isMoleViewTitleBarLightColor(): boolean;
|
|
191
193
|
showModalView(descriptor: ModalDescriptor): ModalView;
|
|
192
|
-
showMoleView(descriptor:
|
|
194
|
+
showMoleView(descriptor: MoleOptions): MoleView;
|
|
193
195
|
showDrawerView(descriptor: DrawerDescriptor): DrawerView;
|
|
194
196
|
showTopMessageBarView(opts: { el: Element }): TopMessageBarView;
|
|
195
197
|
}
|
|
@@ -371,16 +373,8 @@ export interface DrawerDescriptor {
|
|
|
371
373
|
matchSidebarContentPanelWidth?: boolean;
|
|
372
374
|
}
|
|
373
375
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
title?: string;
|
|
377
|
-
titleEl?: HTMLElement;
|
|
378
|
-
minimizedTitleEl?: HTMLElement;
|
|
379
|
-
className?: string;
|
|
380
|
-
titleButtons?: Array<ButtonDescriptor>;
|
|
381
|
-
chrome?: boolean;
|
|
382
|
-
}
|
|
383
|
-
|
|
376
|
+
/** @deprecated use MoleOptions interface directly instead */
|
|
377
|
+
export { type MoleOptions as MoleDescriptor };
|
|
384
378
|
export interface ButtonDescriptor {
|
|
385
379
|
title?: string;
|
|
386
380
|
iconUrl?: string;
|
|
@@ -460,12 +454,7 @@ export interface CustomMessageView extends EventEmitter {
|
|
|
460
454
|
getSortDate(): Date | null;
|
|
461
455
|
}
|
|
462
456
|
|
|
463
|
-
export
|
|
464
|
-
close(): void;
|
|
465
|
-
isActive(): boolean;
|
|
466
|
-
open(): void;
|
|
467
|
-
remove(): void;
|
|
468
|
-
}
|
|
457
|
+
export { ContentPanelView };
|
|
469
458
|
|
|
470
459
|
export interface MessageAttachmentIconDescriptor {
|
|
471
460
|
iconUrl?: string;
|
package/src/platform-implementation-js/dom-driver/gmail/gmail-driver/gmail-load-event.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gmail-load-event.d.ts","sourceRoot":"","sources":["../../../../../../../src/platform-implementation-js/dom-driver/gmail/gmail-driver/gmail-load-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"gmail-load-event.d.ts","sourceRoot":"","sources":["../../../../../../../src/platform-implementation-js/dom-driver/gmail/gmail-driver/gmail-load-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,iBAAiB,CAAC;AAgC/C,wBAA8B,cAAc,CAAC,MAAM,EAAE,WAAW,iBAmD/D"}
|
package/src/platform-implementation-js/dom-driver/gmail/gmail-driver/isIntegratedViewGmail.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
- The user is in a pre-Google-Chat Hangouts-only version of Gmail (the Gmail Settings ->
|
|
4
|
-
Chat and Meet -> Chat menu only has the options "Hangouts On" and "Hangouts Off").
|
|
5
|
-
- The user has "Classic Hangouts" picked in Gmail Settings -> Chat and Meet -> Chat.
|
|
6
|
-
- Integrated view gmail.
|
|
2
|
+
* As of writing, @returns true when either Google Chat or Google Meet or both are enabled.
|
|
7
3
|
* @see https://support.google.com/mail/answer/11555490
|
|
8
4
|
*/
|
|
9
5
|
export default function isIntegratedViewGmail(): boolean;
|
|
10
|
-
/** @returns null if the app menu is configured off */
|
|
6
|
+
/** @returns null if the app menu (left side menu containing Mail, Chat/Spaces, and Meet) is configured off */
|
|
11
7
|
export declare function isCollapsiblePanelHidden(): boolean | null;
|
|
8
|
+
/**
|
|
9
|
+
* @note only able to @return true when @see {isIntegratedViewGmail} returns true
|
|
10
|
+
*/
|
|
11
|
+
export declare function isGoogleChatEnabled(): boolean;
|
|
12
12
|
//# sourceMappingURL=isIntegratedViewGmail.d.ts.map
|
package/src/platform-implementation-js/dom-driver/gmail/gmail-driver/isIntegratedViewGmail.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isIntegratedViewGmail.d.ts","sourceRoot":"","sources":["../../../../../../../src/platform-implementation-js/dom-driver/gmail/gmail-driver/isIntegratedViewGmail.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"isIntegratedViewGmail.d.ts","sourceRoot":"","sources":["../../../../../../../src/platform-implementation-js/dom-driver/gmail/gmail-driver/isIntegratedViewGmail.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,IAAI,OAAO,CAGvD;AAED,8GAA8G;AAC9G,wBAAgB,wBAAwB,IAAI,OAAO,GAAG,IAAI,CAMzD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,YAElC"}
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import type LiveSet from 'live-set';
|
|
2
|
-
import t from 'transducers.js';
|
|
3
1
|
import * as Kefir from 'kefir';
|
|
4
|
-
import type { Bus } from 'kefir-bus';
|
|
5
2
|
import type { TagTree } from 'tag-tree';
|
|
6
|
-
import type PageParserTree from 'page-parser-tree';
|
|
7
3
|
import GmailBackdrop from './views/gmail-backdrop';
|
|
8
4
|
import type GmailThreadRowView from './views/gmail-thread-row-view';
|
|
9
5
|
import type GmailAppToolbarButtonView from './views/gmail-app-toolbar-button-view';
|
|
10
6
|
import GmailTopMessageBarDriver from './widgets/gmail-top-message-bar-driver';
|
|
11
7
|
import GmailModalViewDriver from './widgets/gmail-modal-view-driver';
|
|
12
|
-
import GmailMoleViewDriver from './widgets/gmail-mole-view-driver';
|
|
8
|
+
import GmailMoleViewDriver, { type MoleOptions } from './widgets/gmail-mole-view-driver';
|
|
13
9
|
import InboxDrawerView from '../inbox/views/inbox-drawer-view';
|
|
14
|
-
import GmailRouteProcessor from './views/gmail-route-view/gmail-route-processor';
|
|
15
10
|
import KeyboardShortcutHelpModifier from './gmail-driver/keyboard-shortcut-help-modifier';
|
|
16
|
-
import UserInfo from './gmail-driver/user-info';
|
|
17
11
|
import GmailButterBarDriver from './gmail-butter-bar-driver';
|
|
18
12
|
import type KeyboardShortcutHandle from '../../views/keyboard-shortcut-handle';
|
|
19
13
|
import type { GetDraftIdResult } from './gmail-driver/get-draft-id-for-message-id';
|
|
@@ -23,12 +17,10 @@ import type Logger from '../../lib/logger';
|
|
|
23
17
|
import type PageCommunicator from './gmail-page-communicator';
|
|
24
18
|
import type { RouteParams } from '../../namespaces/router';
|
|
25
19
|
import type ButterBar from '../../namespaces/butter-bar';
|
|
26
|
-
import type {
|
|
20
|
+
import type { DrawerViewOptions } from '../../driver-interfaces/driver';
|
|
27
21
|
import type GmailComposeView from './views/gmail-compose-view';
|
|
28
22
|
import type GmailMessageView from './views/gmail-message-view';
|
|
29
23
|
import type GmailThreadView from './views/gmail-thread-view';
|
|
30
|
-
import type GmailToolbarView from './views/gmail-toolbar-view';
|
|
31
|
-
import type GmailRowListView from './views/gmail-row-list-view';
|
|
32
24
|
import type GmailRouteView from './views/gmail-route-view/gmail-route-view';
|
|
33
25
|
import type GmailSupportItemView from './views/gmail-support-item-view';
|
|
34
26
|
import type { SupportItemDescriptor } from './views/gmail-support-item-view';
|
|
@@ -37,50 +29,16 @@ import type NativeGmailNavItemView from './views/native-gmail-nav-item-view';
|
|
|
37
29
|
import type { AppMenuItemDescriptor } from '../../namespaces/app-menu';
|
|
38
30
|
import type ContentPanelViewDriver from '../../driver-common/sidebar/ContentPanelViewDriver';
|
|
39
31
|
import GmailNavItemView, { type NavItemDescriptor } from './views/gmail-nav-item-view';
|
|
40
|
-
import { MoleOptions } from '../../driver-interfaces/mole-view-driver';
|
|
41
32
|
import { Contact } from '../../../inboxsdk';
|
|
42
33
|
import GmailAttachmentCardView from './views/gmail-attachment-card-view';
|
|
43
34
|
import type { PersonDetails } from '../../namespaces/user';
|
|
44
35
|
import { type ContentPanelDescriptor } from '../../driver-common/sidebar/ContentPanelViewDriver';
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
_customRouteIDs: Set<string>;
|
|
51
|
-
_customListRouteIDs: Map<string, Function>;
|
|
52
|
-
_customListSearchStringsToRouteIds: Map<string, string>;
|
|
53
|
-
_messageIDsToThreadIDs: Map<string, string>;
|
|
54
|
-
_threadRowIdentifier: ThreadRowIdentifier;
|
|
55
|
-
_gmailRouteProcessor: GmailRouteProcessor;
|
|
56
|
-
_keyboardShortcutHelpModifier: KeyboardShortcutHelpModifier;
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
declare class GmailDriver {
|
|
40
|
+
#private;
|
|
57
41
|
onready: Promise<void>;
|
|
58
|
-
_page: PageParserTree;
|
|
59
|
-
_pageCommunicator: PageCommunicator;
|
|
60
|
-
_pageCommunicatorPromise: Promise<PageCommunicator>;
|
|
61
|
-
_butterBar: ButterBar | null | undefined;
|
|
62
|
-
_butterBarDriver: GmailButterBarDriver;
|
|
63
|
-
_routeViewDriverStream: Kefir.Observable<GmailRouteView, unknown>;
|
|
64
|
-
_rowListViewDriverStream: Kefir.Observable<any, unknown>;
|
|
65
|
-
_threadRowViewDriverKefirStream: Kefir.Observable<any, unknown>;
|
|
66
|
-
_threadViewDriverLiveSet: LiveSet<GmailThreadView>;
|
|
67
|
-
_toolbarViewDriverLiveSet: LiveSet<GmailToolbarView>;
|
|
68
|
-
_composeViewDriverStream: Kefir.Observable<GmailComposeView, unknown>;
|
|
69
|
-
_xhrInterceptorStream: Kefir.Observable<any, unknown>;
|
|
70
|
-
_messageViewDriverStream: Kefir.Observable<GmailMessageView, unknown>;
|
|
71
|
-
_stopper: import("kefir-stopper").Stopper;
|
|
72
|
-
_navMarkerHiddenChanged: Bus<null, unknown>;
|
|
73
|
-
_addonSidebarHiddenChanged: Bus<null, unknown>;
|
|
74
|
-
_userInfo: UserInfo;
|
|
75
|
-
_timestampAccountSwitcherReady: number | null | undefined;
|
|
76
|
-
_timestampGlobalsFound: number | null | undefined;
|
|
77
|
-
_timestampOnready: number | null | undefined;
|
|
78
|
-
_lastCustomThreadListActivity: {
|
|
79
|
-
customRouteID: string;
|
|
80
|
-
timestamp: Date;
|
|
81
|
-
} | null | undefined;
|
|
82
|
-
_currentRouteViewDriver: GmailRouteView;
|
|
83
|
-
_appSidebarView: GmailAppSidebarView | null | undefined;
|
|
84
42
|
getGmailThreadIdForRfcMessageId: (rfcId: string) => Promise<string>;
|
|
85
43
|
getRfcMessageIdForGmailThreadId: (threadId: string) => Promise<string>;
|
|
86
44
|
getSyncThreadIdForOldGmailThreadId: (threadId: string) => Promise<string>;
|
|
@@ -95,6 +53,7 @@ declare class GmailDriver implements Driver {
|
|
|
95
53
|
getOpts(): PiOpts;
|
|
96
54
|
getPageCommunicator(): PageCommunicator;
|
|
97
55
|
getPageCommunicatorPromise(): Promise<PageCommunicator>;
|
|
56
|
+
get logger(): Logger;
|
|
98
57
|
getLogger(): Logger;
|
|
99
58
|
getTagTree(): TagTree<HTMLElement>;
|
|
100
59
|
getCustomListSearchStringsToRouteIds(): Map<string, string>;
|
|
@@ -118,7 +77,11 @@ declare class GmailDriver implements Driver {
|
|
|
118
77
|
getTimestampOnReady(): number;
|
|
119
78
|
delayToTimeAfterReady(time: number): Kefir.Observable<void, unknown>;
|
|
120
79
|
getTimings(): {
|
|
121
|
-
|
|
80
|
+
readonly piMainStarted: number;
|
|
81
|
+
readonly piLoadStarted: number;
|
|
82
|
+
readonly globalsFound: number | null | undefined;
|
|
83
|
+
readonly accountSwitcherReady: number | null | undefined;
|
|
84
|
+
readonly onready: number | null | undefined;
|
|
122
85
|
};
|
|
123
86
|
registerThreadButton(options: any): () => void;
|
|
124
87
|
hashChangeNoViewChange(hash: string): void;
|
|
@@ -158,12 +121,6 @@ declare class GmailDriver implements Driver {
|
|
|
158
121
|
getUserContact(): Contact;
|
|
159
122
|
getAccountSwitcherContactList(): Contact[];
|
|
160
123
|
activateShortcut(keyboardShortcutHandle: KeyboardShortcutHandle, appName: string | null | undefined, appIconUrl: string | null | undefined): void;
|
|
161
|
-
_setupEventStreams(): void;
|
|
162
|
-
_setupComposeViewDriverStream(): void;
|
|
163
|
-
_setupRouteSubViewDriver(viewName: string): Kefir.Observable<any, unknown>;
|
|
164
|
-
_setupThreadRowViewDriverKefirStream(): void;
|
|
165
|
-
_setupToolbarViewDriverStream(): void;
|
|
166
|
-
_setupMessageViewDriverStream(): void;
|
|
167
124
|
addGlobalSidebarContentPanel(descriptor: Kefir.Observable<ContentPanelDescriptor, unknown>): Promise<ContentPanelViewDriver | null | undefined>;
|
|
168
125
|
waitForGlobalSidebarReady(): Kefir.Observable<void, unknown>;
|
|
169
126
|
getGlobalSidebar(): GmailAppSidebarView;
|
|
@@ -174,13 +131,10 @@ declare class GmailDriver implements Driver {
|
|
|
174
131
|
associateThreadAndMessageIDs(threadID: string, messageID: string): void;
|
|
175
132
|
getThreadIDForMessageID(messageID: string): string;
|
|
176
133
|
getDraftIDForMessageID(messageID: string, skipCache?: boolean): Promise<GetDraftIdResult>;
|
|
177
|
-
_recentSyncDraftIds: Map<string, number>;
|
|
178
134
|
reportRecentSyncDraftId(syncDraftId: string): void;
|
|
179
135
|
reportDraftClosed(syncDraftId: string): void;
|
|
180
136
|
isRecentSyncDraftId(syncMessageId: string): boolean;
|
|
181
|
-
_selectedThreadRows: t.Transducer<GmailRowListView, GmailThreadRowView>;
|
|
182
137
|
getSelectedThreadRowViewDrivers(): ReadonlyArray<GmailThreadRowView>;
|
|
183
|
-
_threadRowViewSelectionChanges: Bus<unknown, unknown>;
|
|
184
138
|
signalThreadRowViewSelectionChange(): void;
|
|
185
139
|
registerThreadRowViewSelectionHandler(handler: () => any): () => void;
|
|
186
140
|
getPersonDetails(emailAddress: string): Promise<PersonDetails | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gmail-driver.d.ts","sourceRoot":"","sources":["../../../../../../src/platform-implementation-js/dom-driver/gmail/gmail-driver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gmail-driver.d.ts","sourceRoot":"","sources":["../../../../../../src/platform-implementation-js/dom-driver/gmail/gmail-driver.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,E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,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAIlD,sBAAsB,CACpB,SAAS,EAAE,MAAM,EACjB,SAAS,GAAE,OAAe,GACzB,OAAO,CAAC,gBAAgB,CAAC;IAM5B,uBAAuB,CAAC,WAAW,EAAE,MAAM;IAM3C,iBAAiB,CAAC,WAAW,EAAE,MAAM;IAyBrC,mBAAmB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO;IAOnD,+BAA+B,IAAI,aAAa,CAAC,kBAAkB,CAAC;IAYpE,kCAAkC;IAIlC,qCAAqC,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,MAAM,IAAI;IAOrE,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;CAG3E;AAED,eAAe,WAAW,CAAC"}
|
package/src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/index.d.ts
CHANGED
|
@@ -2,17 +2,14 @@ import * as Kefir from 'kefir';
|
|
|
2
2
|
import ContentPanelViewDriver, { type ContentPanelDescriptor } from '../../../../driver-common/sidebar/ContentPanelViewDriver';
|
|
3
3
|
import type GmailDriver from '../../gmail-driver';
|
|
4
4
|
import type GmailThreadView from '../gmail-thread-view';
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
5
8
|
declare class GmailAppSidebarView {
|
|
6
|
-
|
|
7
|
-
_driver: GmailDriver;
|
|
8
|
-
_instanceId: string;
|
|
9
|
+
#private;
|
|
9
10
|
constructor(driver: GmailDriver, companionSidebarContentContainerElement: HTMLElement);
|
|
10
11
|
destroy(): void;
|
|
11
12
|
getStopper(): import("kefir-stopper").Stopper;
|
|
12
|
-
_getShouldThreadAppSidebarOpen(): boolean;
|
|
13
|
-
_setShouldThreadAppSidebarOpen(open: boolean): void;
|
|
14
|
-
_getShouldGlobalAppSidebarOpen(): boolean;
|
|
15
|
-
_setShouldGlobalAppSidebarOpen(open: boolean): void;
|
|
16
13
|
addThreadSidebarContentPanel(descriptor: Kefir.Observable<ContentPanelDescriptor, unknown>, threadView: GmailThreadView): ContentPanelViewDriver;
|
|
17
14
|
addGlobalSidebarContentPanel(descriptor: Kefir.Observable<ContentPanelDescriptor, unknown>): ContentPanelViewDriver;
|
|
18
15
|
}
|
package/src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,sBAAsB,EAAE,EAC7B,KAAK,sBAAsB,EAC5B,MAAM,0DAA0D,CAAC;AAClE,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AAGxD,cAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,sBAAsB,EAAE,EAC7B,KAAK,sBAAsB,EAC5B,MAAM,0DAA0D,CAAC;AAClE,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AAGxD;;GAEG;AACH,cAAM,mBAAmB;;gBAMrB,MAAM,EAAE,WAAW,EACnB,uCAAuC,EAAE,WAAW;IAoCtD,OAAO;IAIP,UAAU;IAIV,4BAA4B,CAC1B,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,sBAAsB,EAAE,OAAO,CAAC,EAC7D,UAAU,EAAE,eAAe;IAc7B,4BAA4B,CAC1B,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,sBAAsB,EAAE,OAAO,CAAC;CAahE;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,44 +1,18 @@
|
|
|
1
|
-
import type { Bus } from 'kefir-bus';
|
|
2
|
-
import OrderManager from 'order-manager';
|
|
3
|
-
import AppSidebar from '../../../../../driver-common/sidebar/AppSidebar';
|
|
4
|
-
import type { PanelDescriptor } from '../../../../../driver-common/sidebar/AppSidebar';
|
|
5
1
|
import type GmailDriver from '../../../gmail-driver';
|
|
2
|
+
/** Only one instance of this Primary is ever created within a page, even if
|
|
3
|
+
* there are multiple InboxSDK instances and/or extensions. All other InboxSDK
|
|
4
|
+
* instances (including from other extensions) communicate with this Primary
|
|
5
|
+
* through DOM events. */
|
|
6
6
|
declare class GmailAppSidebarPrimary {
|
|
7
|
-
|
|
8
|
-
_driver: GmailDriver;
|
|
9
|
-
_instanceId: string;
|
|
10
|
-
_companionSidebarContentContainerEl: HTMLElement;
|
|
11
|
-
_instanceIdsToDescriptors: Map<string, Record<string, any>>;
|
|
12
|
-
_threadSidebarComponent: AppSidebar | null | undefined;
|
|
13
|
-
_threadIconArea: HTMLElement | null | undefined;
|
|
14
|
-
_globalIconArea: HTMLElement | null | undefined;
|
|
15
|
-
_globalButtonContainers: Map<string, HTMLElement>;
|
|
16
|
-
_threadButtonContainers: Map<string, HTMLElement>;
|
|
17
|
-
_contentContainers: Map<string, HTMLElement>;
|
|
18
|
-
_threadSidebarContainerEl: HTMLElement | null | undefined;
|
|
19
|
-
_companionSidebarOuterWrapper: HTMLElement;
|
|
20
|
-
_currentIds: Set<string>;
|
|
21
|
-
_orderManager: OrderManager<PanelDescriptor>;
|
|
22
|
-
_containerProp: () => HTMLElement;
|
|
23
|
-
_updateHighlightedAppThreadIconBus: Bus<null, unknown>;
|
|
7
|
+
#private;
|
|
24
8
|
constructor(driver: GmailDriver, companionSidebarContentContainerElement: HTMLElement);
|
|
25
9
|
getInstanceId(): string;
|
|
10
|
+
/**
|
|
11
|
+
* Only use this if a different Primary needs to take over this one's elements.
|
|
12
|
+
* Currently this is only done when hot-reloading in dev. Don't use this when
|
|
13
|
+
* a threadview exits, the sdk.destroy() is called, etc.
|
|
14
|
+
*/
|
|
26
15
|
destroy(): void;
|
|
27
|
-
_getShouldGlobalAppSidebarOpen(): boolean;
|
|
28
|
-
_setShouldGlobalAppSidebarOpen(open: boolean): void;
|
|
29
|
-
_getShouldThreadAppSidebarOpen(): boolean;
|
|
30
|
-
_setShouldThreadAppSidebarOpen(open: boolean): void;
|
|
31
|
-
_createThreadSidebarIfNeeded(): HTMLElement;
|
|
32
|
-
_renderThreadSidebarIfPresent(): void;
|
|
33
|
-
_appSidebarRefSetter: (el: AppSidebar | null | undefined) => void;
|
|
34
|
-
_renderThreadSidebar(): Promise<AppSidebar>;
|
|
35
|
-
_getActiveButtonContainer(): HTMLElement | null | undefined;
|
|
36
|
-
_closeButton: ((userClick: boolean) => void) | null | undefined;
|
|
37
|
-
_addButton(iconArea: HTMLElement, event: Record<string, any>, isGlobal: boolean): void;
|
|
38
|
-
_removeButton(event: Record<string, any>, buttonContainers: Map<string, HTMLElement>, iconArea: HTMLElement | null | undefined): void;
|
|
39
|
-
_closeSidebarAndDeactivateButton(activeButtonContainer: HTMLElement): void;
|
|
40
|
-
_openSidebarAndActivateButton(buttonContainer: HTMLElement, isGlobal: boolean): void;
|
|
41
|
-
_setupElement(): void;
|
|
42
16
|
}
|
|
43
17
|
export default GmailAppSidebarPrimary;
|
|
44
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/primary/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/primary/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,WAAW,MAAM,uBAAuB,CAAC;AAmBrD;;;yBAGyB;AACzB,cAAM,sBAAsB;;gBAuDxB,MAAM,EAAE,WAAW,EACnB,uCAAuC,EAAE,WAAW;IAStD,aAAa,IAAI,MAAM;IAIvB;;;;OAIG;IACH,OAAO;CAw+BR;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
import type { MoleOptions } from '../../../driver-interfaces/mole-view-driver';
|
|
2
1
|
import type GmailDriver from '../gmail-driver';
|
|
2
|
+
export type MoleButtonDescriptor = {
|
|
3
|
+
title: string;
|
|
4
|
+
iconUrl: string;
|
|
5
|
+
iconClass?: string;
|
|
6
|
+
onClick: (...args: Array<any>) => any;
|
|
7
|
+
};
|
|
8
|
+
export type MoleOptions = {
|
|
9
|
+
el: HTMLElement;
|
|
10
|
+
className?: string;
|
|
11
|
+
title?: string;
|
|
12
|
+
titleEl?: HTMLElement;
|
|
13
|
+
minimizedTitleEl?: HTMLElement;
|
|
14
|
+
titleButtons?: MoleButtonDescriptor[];
|
|
15
|
+
chrome?: boolean;
|
|
16
|
+
};
|
|
3
17
|
declare class GmailMoleViewDriver {
|
|
4
18
|
#private;
|
|
5
19
|
constructor(driver: GmailDriver, options: MoleOptions);
|
package/src/platform-implementation-js/dom-driver/gmail/widgets/gmail-mole-view-driver.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gmail-mole-view-driver.d.ts","sourceRoot":"","sources":["../../../../../../../src/platform-implementation-js/dom-driver/gmail/widgets/gmail-mole-view-driver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gmail-mole-view-driver.d.ts","sourceRoot":"","sources":["../../../../../../../src/platform-implementation-js/dom-driver/gmail/widgets/gmail-mole-view-driver.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,WAAW,MAAM,iBAAiB,CAAC;AAK/C,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,WAAW,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAC/B,YAAY,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACtC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAIF,cAAM,mBAAmB;;gBAWX,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW;IAgFrD,IAAI;IA0FJ,YAAY,CAAC,SAAS,EAAE,OAAO;IAwB/B,YAAY,IAAI,OAAO;IAIvB,QAAQ,CAAC,IAAI,EAAE,MAAM;IAkCrB,cAAc;;;IAId,OAAO;CAOR;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -11,22 +11,14 @@ export interface ContentPanelDescriptor {
|
|
|
11
11
|
orderHint?: number;
|
|
12
12
|
primaryColor?: string;
|
|
13
13
|
secondaryColor?: string;
|
|
14
|
-
title
|
|
14
|
+
title?: string;
|
|
15
15
|
}
|
|
16
16
|
declare class ContentPanelViewDriver {
|
|
17
|
-
|
|
18
|
-
_stopper: Kefir.Observable<null, unknown>;
|
|
19
|
-
_eventStream: import("kefir-bus").Bus<{
|
|
20
|
-
eventName: string;
|
|
21
|
-
}, unknown>;
|
|
22
|
-
_isActive: boolean;
|
|
23
|
-
_instanceId: string;
|
|
24
|
-
_sidebarId: string;
|
|
25
|
-
_isGlobal: boolean;
|
|
17
|
+
#private;
|
|
26
18
|
constructor(driver: Driver, descriptor: Kefir.Observable<ContentPanelDescriptor, unknown>, sidebarId: string, isGlobal?: boolean);
|
|
27
19
|
getStopper(): Kefir.Observable<null, unknown>;
|
|
28
20
|
getEventStream(): import("kefir-bus").Bus<{
|
|
29
|
-
eventName:
|
|
21
|
+
eventName: "activate" | "deactivate";
|
|
30
22
|
}, unknown>;
|
|
31
23
|
scrollIntoView(): void;
|
|
32
24
|
close(): void;
|
package/src/platform-implementation-js/driver-common/sidebar/ContentPanelViewDriver.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentPanelViewDriver.d.ts","sourceRoot":"","sources":["../../../../../../src/platform-implementation-js/driver-common/sidebar/ContentPanelViewDriver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAI7D,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,WAAW,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ContentPanelViewDriver.d.ts","sourceRoot":"","sources":["../../../../../../src/platform-implementation-js/driver-common/sidebar/ContentPanelViewDriver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAI7D,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,WAAW,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,cAAM,sBAAsB;;gBAcxB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,sBAAsB,EAAE,OAAO,CAAC,EAC7D,SAAS,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,OAAO;IAkHpB,UAAU;IAIV,cAAc;;;IAKd,cAAc;IAad,KAAK;IAcL,IAAI;IAcJ,QAAQ,IAAI,OAAO;IAInB,MAAM;CAGP;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -3,8 +3,7 @@ export interface AppLogger {
|
|
|
3
3
|
event(name: string, details?: any): void;
|
|
4
4
|
}
|
|
5
5
|
export default class Logger {
|
|
6
|
-
private
|
|
7
|
-
private _isMaster;
|
|
6
|
+
#private;
|
|
8
7
|
constructor(appId: string, opts: any, loaderVersion: string, implVersion: string);
|
|
9
8
|
setUserEmailAddress(email: string): void;
|
|
10
9
|
shouldTrackEverything(): boolean;
|
|
@@ -14,8 +13,14 @@ export default class Logger {
|
|
|
14
13
|
static error(err: Error | unknown, details?: any): void;
|
|
15
14
|
error(err: Error | unknown, details?: any): void;
|
|
16
15
|
errorApp(err: Error | unknown, details?: any): void;
|
|
16
|
+
/** Only the first logger instance reports Site errors. */
|
|
17
17
|
errorSite(err: Error | unknown, details?: any): void;
|
|
18
|
+
/** Should only be used by the InboxSDK users for their own app events. */
|
|
18
19
|
eventApp(name: string, details?: any): void;
|
|
20
|
+
/**
|
|
21
|
+
* For tracking app events that are possibly triggered by the user. Extensions
|
|
22
|
+
* can opt out of this with a flag passed to InboxSDK.load().
|
|
23
|
+
*/
|
|
19
24
|
eventSdkActive(name: string, details?: any): void;
|
|
20
25
|
eventSdkPassive(name: string, details?: any, sensitive?: boolean): void;
|
|
21
26
|
eventSite(name: string, details?: any): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/lib/logger.ts"],"names":[],"mappings":"AAsDA,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,GAAG,EAAE,KAAK,GAAG,OAAO,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IACjD,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;CAC1C;AAED,MAAM,CAAC,OAAO,OAAO,MAAM
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/lib/logger.ts"],"names":[],"mappings":"AAsDA,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,GAAG,EAAE,KAAK,GAAG,OAAO,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IACjD,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;CAC1C;AAED,MAAM,CAAC,OAAO,OAAO,MAAM;;gBAKvB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,GAAG,EACT,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM;IA8CrB,mBAAmB,CAAC,KAAK,EAAE,MAAM;IAIjC,qBAAqB,IAAI,OAAO;IAOhC,iBAAiB,CAAC,OAAO,EAAE,OAAO;IAIlC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,CAAC;IAS5C,GAAG,C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|
import type { Driver, DrawerViewOptions } from '../driver-interfaces/driver';
|
|
6
|
-
import { MoleOptions } from '../driver-
|
|
6
|
+
import { type MoleOptions } from '../dom-driver/gmail/widgets/gmail-mole-view-driver';
|
|
7
7
|
import type { Widgets as IWidgets, ModalDescriptor } from '../../inboxsdk';
|
|
8
8
|
declare class Widgets implements IWidgets {
|
|
9
9
|
constructor(appId: string, driver: Driver);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widgets.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/namespaces/widgets.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAG7E,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"widgets.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/namespaces/widgets.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAG7E,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,KAAK,EAAE,OAAO,IAAI,QAAQ,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3E,cAAM,OAAQ,YAAW,QAAQ;gBACnB,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAOzC,aAAa,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS;IA8BlD,YAAY,CAAC,OAAO,EAAE,WAAW,GAAG,QAAQ;IAW5C,qBAAqB,CAAC,OAAO,EAAE;QAAE,EAAE,EAAE,OAAO,CAAA;KAAE,GAAG,iBAAiB;IAUlE,cAAc,CAAC,OAAO,EAAE,iBAAiB,GAAG,UAAU;IActD,4BAA4B,IAAI,OAAO;CAGxC;AAQD,eAAe,OAAO,CAAC"}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import EventEmitter from '../lib/safe-event-emitter';
|
|
2
1
|
import type ContentPanelViewDriver from '../driver-common/sidebar/ContentPanelViewDriver';
|
|
3
|
-
|
|
2
|
+
import type TypedEventEmitter from 'typed-emitter';
|
|
3
|
+
declare const ContentPanelView_base: new () => TypedEventEmitter<{
|
|
4
|
+
activate(): void;
|
|
5
|
+
deactivate(): void;
|
|
6
|
+
destroy(): void;
|
|
7
|
+
}>;
|
|
8
|
+
export default class ContentPanelView extends ContentPanelView_base {
|
|
9
|
+
#private;
|
|
4
10
|
destroyed: boolean;
|
|
5
11
|
constructor(contentPanelViewImplementation: ContentPanelViewDriver);
|
|
6
12
|
remove(): void;
|
|
7
13
|
close(): void;
|
|
8
14
|
open(): void;
|
|
9
15
|
isActive(): boolean;
|
|
10
|
-
_bindToStreamEvents(): void;
|
|
11
16
|
}
|
|
17
|
+
export {};
|
|
12
18
|
//# sourceMappingURL=content-panel-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-panel-view.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/views/content-panel-view.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"content-panel-view.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/views/content-panel-view.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,sBAAsB,MAAM,iDAAiD,CAAC;AAC1F,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;+CAOsB,kBAAkB;IACzF,QAAQ,IAAI,IAAI,CAAC;IACjB,UAAU,IAAI,IAAI,CAAC;IACnB,OAAO,IAAI,IAAI,CAAC;CACjB,CAAC;AAJF,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,qBAI3C;;IACD,SAAS,EAAE,OAAO,CAAS;gBAEf,8BAA8B,EAAE,sBAAsB;IAUlE,MAAM;IAIN,KAAK;IAIL,IAAI;IAIJ,QAAQ,IAAI,OAAO;CAiBpB"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type MoleButtonDescriptor = {
|
|
2
|
-
title: string;
|
|
3
|
-
iconUrl: string;
|
|
4
|
-
iconClass?: string;
|
|
5
|
-
onClick: (...args: Array<any>) => any;
|
|
6
|
-
};
|
|
7
|
-
export type MoleOptions = {
|
|
8
|
-
el: HTMLElement;
|
|
9
|
-
className?: string;
|
|
10
|
-
title?: string;
|
|
11
|
-
titleEl?: HTMLElement;
|
|
12
|
-
minimizedTitleEl?: HTMLElement;
|
|
13
|
-
titleButtons?: MoleButtonDescriptor[];
|
|
14
|
-
chrome?: boolean;
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=mole-view-driver.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mole-view-driver.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/driver-interfaces/mole-view-driver.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC;CACvC,CAAC;AACF,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,WAAW,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAC/B,YAAY,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACtC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC"}
|