@inboxsdk/core 2.1.28 → 2.1.29
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 +40 -27
- package/package.json +1 -1
- package/pageWorld.js +4 -0
- package/src/inboxsdk.d.ts +5 -2
- package/src/injected-js/gmail/setup-gmail-interceptor.d.ts.map +1 -1
- package/src/platform-implementation-js/constants/router.d.ts +52 -28
- package/src/platform-implementation-js/constants/router.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-button.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-route-view/gmail-route-processor.d.ts +52 -28
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-route-view/gmail-route-processor.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-route-view/gmail-route-view.d.ts +2 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-route-view/gmail-route-view.d.ts.map +1 -1
- package/src/platform-implementation-js/driver-interfaces/compose-view-driver.d.ts +3 -0
- package/src/platform-implementation-js/driver-interfaces/compose-view-driver.d.ts.map +1 -1
- package/src/platform-implementation-js/driver-interfaces/route-view-driver.d.ts +3 -1
- package/src/platform-implementation-js/driver-interfaces/route-view-driver.d.ts.map +1 -1
- package/src/platform-implementation-js/namespaces/router.d.ts +52 -28
- package/src/platform-implementation-js/namespaces/router.d.ts.map +1 -1
- package/src/platform-implementation-js/views/compose-view.d.ts +7 -2
- package/src/platform-implementation-js/views/compose-view.d.ts.map +1 -1
- package/src/platform-implementation-js/views/route-view/dummy-route-view-driver.d.ts +2 -2
- package/src/platform-implementation-js/views/route-view/dummy-route-view-driver.d.ts.map +1 -1
- package/src/platform-implementation-js/views/route-view/list-route-view.d.ts +3 -3
- package/src/platform-implementation-js/views/route-view/list-route-view.d.ts.map +1 -1
- package/src/platform-implementation-js/views/route-view/route-view.d.ts +9 -0
- package/src/platform-implementation-js/views/route-view/route-view.d.ts.map +1 -1
- package/src/platform-implementation-js/views/section-view.d.ts +8 -0
- package/src/platform-implementation-js/views/section-view.d.ts.map +1 -1
- package/src/types/descriptor.d.ts +10 -0
package/inboxsdk.js
CHANGED
|
@@ -814,7 +814,7 @@ function isElementVisible(el) {
|
|
|
814
814
|
|
|
815
815
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- SDK_VERSION is injected by webpack
|
|
816
816
|
///@ts-ignore
|
|
817
|
-
const BUILD_VERSION = "2.1.
|
|
817
|
+
const BUILD_VERSION = "2.1.29-1707947517546-0a2f60e3e3450a0e";
|
|
818
818
|
if (false) {}
|
|
819
819
|
|
|
820
820
|
/***/ }),
|
|
@@ -10529,7 +10529,7 @@ options.insert = htmlElement => {
|
|
|
10529
10529
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
10530
10530
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
10531
10531
|
///@ts-ignore
|
|
10532
|
-
"2.1.
|
|
10532
|
+
"2.1.29-1707947517546-0a2f60e3e3450a0e");
|
|
10533
10533
|
document.head.append(htmlElement);
|
|
10534
10534
|
};
|
|
10535
10535
|
options.domAPI = (styleDomAPI_default());
|
|
@@ -12087,6 +12087,11 @@ function _bindToEventStream(collapsibleSectionView, collapsibleSectionViewDriver
|
|
|
12087
12087
|
/* harmony default export */ const collapsible_section_view = (CollapsibleSectionView);
|
|
12088
12088
|
;// CONCATENATED MODULE: ./src/platform-implementation-js/views/section-view.ts
|
|
12089
12089
|
|
|
12090
|
+
/**
|
|
12091
|
+
* {@link SectionView}s allow you to display additional content on ListRouteViews. They are typically rendered as additional content above the list of threads below. The visual style is similar to that of multiple inbox sections used in native Gmail. Note that the rendering may vary slightly depending on the actual ListRouteView that the SectionView is rendered in. For example, SectionViews rendered on search results pages use different header styles to match Gmail's style more accurately.
|
|
12092
|
+
|
|
12093
|
+
* You can either render rows (that are visually similar to Gmail rows) or custom content in your SectionView. Until content is provided, the SectionView will simply display a "Loading..." indicator. See ListRouteView.addSection for more information.
|
|
12094
|
+
*/
|
|
12090
12095
|
class SectionView extends safe_event_emitter/* default */.Z {
|
|
12091
12096
|
#sectionViewDriver;
|
|
12092
12097
|
constructor(sectionViewDriver, driver) {
|
|
@@ -12095,6 +12100,10 @@ class SectionView extends safe_event_emitter/* default */.Z {
|
|
|
12095
12100
|
this.destroyed = false;
|
|
12096
12101
|
section_view_bindToEventStream(this, sectionViewDriver, driver);
|
|
12097
12102
|
}
|
|
12103
|
+
|
|
12104
|
+
/**
|
|
12105
|
+
* Removes this section from the current Route.
|
|
12106
|
+
*/
|
|
12098
12107
|
remove() {
|
|
12099
12108
|
this.destroy();
|
|
12100
12109
|
}
|
|
@@ -19232,7 +19241,7 @@ options.insert = htmlElement => {
|
|
|
19232
19241
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
19233
19242
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
19234
19243
|
///@ts-ignore
|
|
19235
|
-
"2.1.
|
|
19244
|
+
"2.1.29-1707947517546-0a2f60e3e3450a0e");
|
|
19236
19245
|
document.head.append(htmlElement);
|
|
19237
19246
|
};
|
|
19238
19247
|
options.domAPI = (styleDomAPI_default());
|
|
@@ -24246,6 +24255,12 @@ class ComposeView extends safe_event_emitter/* default */.Z {
|
|
|
24246
24255
|
this.emit(event.eventName, event.data);
|
|
24247
24256
|
});
|
|
24248
24257
|
}
|
|
24258
|
+
|
|
24259
|
+
/**
|
|
24260
|
+
* Inserts a button into the compose bar. This method also accepts a stream of {@link ComposeButtonDescriptor}s so that you can change the appearance of your button after you've added it.
|
|
24261
|
+
*
|
|
24262
|
+
* @param buttonDescriptor The details of the button to add to the compose bar.
|
|
24263
|
+
*/
|
|
24249
24264
|
addButton(buttonDescriptor) {
|
|
24250
24265
|
const members = (0,get_or_fail/* default */.Z)(compose_view_memberMap, this);
|
|
24251
24266
|
const buttonDescriptorStream = kefir_cast_default()(kefir_esm["default"], buttonDescriptor);
|
|
@@ -24958,9 +24973,6 @@ const membersMap = (0,ud__WEBPACK_IMPORTED_MODULE_2__.defonce)(module, () => new
|
|
|
24958
24973
|
class DummyRouteViewDriver {
|
|
24959
24974
|
_eventStream = kefir_bus__WEBPACK_IMPORTED_MODULE_0___default()();
|
|
24960
24975
|
_stopper = kefir_stopper__WEBPACK_IMPORTED_MODULE_1___default()();
|
|
24961
|
-
constructor() {
|
|
24962
|
-
this;
|
|
24963
|
-
}
|
|
24964
24976
|
getRouteType() {
|
|
24965
24977
|
return 'UNKNOWN';
|
|
24966
24978
|
}
|
|
@@ -24993,43 +25005,44 @@ class DummyRouteViewDriver {
|
|
|
24993
25005
|
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
24994
25006
|
/* harmony export */ });
|
|
24995
25007
|
/* harmony import */ var _lib_safe_event_emitter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6666);
|
|
24996
|
-
/* harmony import */ var _common_get_or_fail__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7791);
|
|
24997
25008
|
|
|
25009
|
+
/**
|
|
25010
|
+
* {@link RouteView}s represent pages within Gmail that a user can navigate to. RouteViews can be "custom", those that the application developer registers, or they can be "builtin" which are those that the email client natively supports like "Sent", "Drafts", or "Inbox"
|
|
24998
25011
|
|
|
24999
|
-
|
|
25012
|
+
* This class mostly just gives you metadata about the route, most of the functionality to modify the route are defined in subclasses like ListRouteView and CustomRouteView, which you get by handling those types specifically in the Router.
|
|
25013
|
+
*/
|
|
25000
25014
|
class RouteView extends _lib_safe_event_emitter__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z {
|
|
25015
|
+
#routeID = null;
|
|
25016
|
+
#routeType = null;
|
|
25017
|
+
#params = null;
|
|
25018
|
+
#routeViewDriver;
|
|
25001
25019
|
constructor(routeViewDriver) {
|
|
25002
25020
|
super();
|
|
25003
|
-
const members = {
|
|
25004
|
-
routeID: null,
|
|
25005
|
-
routeType: null,
|
|
25006
|
-
params: null,
|
|
25007
|
-
routeViewDriver
|
|
25008
|
-
};
|
|
25009
|
-
membersMap.set(this, members);
|
|
25010
25021
|
this.destroyed = false;
|
|
25022
|
+
this.#routeViewDriver = routeViewDriver;
|
|
25011
25023
|
_bindToEventStream(routeViewDriver, this);
|
|
25012
25024
|
}
|
|
25025
|
+
|
|
25026
|
+
/**
|
|
25027
|
+
* @returns a string of the ID of the RouteView. This is the same routeID that you give Router.goto() or Router.createLink(). This will be a value from NativeRouteIDs.
|
|
25028
|
+
*/
|
|
25013
25029
|
getRouteID() {
|
|
25014
|
-
|
|
25015
|
-
|
|
25016
|
-
members.routeID = members.routeViewDriver.getRouteID();
|
|
25030
|
+
if (!this.#routeID) {
|
|
25031
|
+
this.#routeID = this.#routeViewDriver.getRouteID();
|
|
25017
25032
|
}
|
|
25018
|
-
return
|
|
25033
|
+
return this.#routeID;
|
|
25019
25034
|
}
|
|
25020
25035
|
getRouteType() {
|
|
25021
|
-
|
|
25022
|
-
|
|
25023
|
-
members.routeType = members.routeViewDriver.getRouteType();
|
|
25036
|
+
if (!this.#routeType) {
|
|
25037
|
+
this.#routeType = this.#routeViewDriver.getRouteType();
|
|
25024
25038
|
}
|
|
25025
|
-
return
|
|
25039
|
+
return this.#routeType;
|
|
25026
25040
|
}
|
|
25027
25041
|
getParams() {
|
|
25028
|
-
|
|
25029
|
-
|
|
25030
|
-
members.params = members.routeViewDriver.getParams();
|
|
25042
|
+
if (!this.#params) {
|
|
25043
|
+
this.#params = this.#routeViewDriver.getParams();
|
|
25031
25044
|
}
|
|
25032
|
-
return
|
|
25045
|
+
return this.#params;
|
|
25033
25046
|
}
|
|
25034
25047
|
}
|
|
25035
25048
|
function _bindToEventStream(routeViewDriver, routeView) {
|
package/package.json
CHANGED
package/pageWorld.js
CHANGED
|
@@ -2722,6 +2722,10 @@ function setupGmailInterceptorOnFrames(mainFrame, jsFrame) {
|
|
|
2722
2722
|
return (0,modify_suggestions/* default */.Z)(responseText, modifications);
|
|
2723
2723
|
}
|
|
2724
2724
|
}
|
|
2725
|
+
injected_logger.eventSdkPassive('suggestionsModified.skipped', {
|
|
2726
|
+
query: currentQuery,
|
|
2727
|
+
originalResponseText: responseText
|
|
2728
|
+
}, true);
|
|
2725
2729
|
return responseText;
|
|
2726
2730
|
}
|
|
2727
2731
|
});
|
package/src/inboxsdk.d.ts
CHANGED
|
@@ -351,8 +351,11 @@ export interface RowDescriptor {
|
|
|
351
351
|
* The properties required to create a {@link SectionView} or {@link CollapsibleSectionView}.
|
|
352
352
|
*/
|
|
353
353
|
export interface SectionDescriptor {
|
|
354
|
-
/** Main title
|
|
355
|
-
|
|
354
|
+
/** Main title.
|
|
355
|
+
*
|
|
356
|
+
* @note required in docs, but in {@link SectionView} we have spots not passing it.
|
|
357
|
+
*/
|
|
358
|
+
title?: string;
|
|
356
359
|
/** Subtitle */
|
|
357
360
|
subtitle?: string | null;
|
|
358
361
|
/** Link to display in the summary area of the {@link SectionView}. Typically page counts are displayed here. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-gmail-interceptor.d.ts","sourceRoot":"","sources":["../../../../../src/injected-js/gmail/setup-gmail-interceptor.ts"],"names":[],"mappings":"AAuCA,MAAM,CAAC,OAAO,UAAU,qBAAqB,SAW5C;AAGD,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"setup-gmail-interceptor.d.ts","sourceRoot":"","sources":["../../../../../src/injected-js/gmail/setup-gmail-interceptor.ts"],"names":[],"mappings":"AAuCA,MAAM,CAAC,OAAO,UAAU,qBAAqB,SAW5C;AAGD,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,QAinCxC"}
|
|
@@ -1,37 +1,61 @@
|
|
|
1
1
|
export declare const NATIVE_ROUTE_IDS: Readonly<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
INBOX: "inbox/:page";
|
|
3
|
+
ALL_MAIL: "all/:page";
|
|
4
|
+
SENT: "sent/:page";
|
|
5
|
+
STARRED: "starred/:page";
|
|
6
|
+
DRAFTS: "drafts/:page";
|
|
7
|
+
SNOOZED: "snoozed/:page";
|
|
8
|
+
DONE: "done";
|
|
9
|
+
REMINDERS: "reminders";
|
|
10
|
+
LABEL: "label/:labelName/:page";
|
|
11
|
+
TRASH: "trash/:page";
|
|
12
|
+
SPAM: "spam/:page";
|
|
13
|
+
IMPORTANT: "imp/:page";
|
|
14
|
+
SEARCH: "search/:query/:page";
|
|
15
|
+
THREAD: "inbox/:threadID";
|
|
16
|
+
CHATS: "chats/:page";
|
|
17
|
+
CHAT: "chats/:chatID";
|
|
18
|
+
CONTACTS: "contacts/:page";
|
|
19
|
+
CONTACT: "contacts/:contactID";
|
|
20
|
+
SETTINGS: "settings/:section";
|
|
21
21
|
/** DEC 2022 */
|
|
22
|
-
|
|
22
|
+
SCHEDULED: "scheduled";
|
|
23
23
|
/** FEB 2023 */
|
|
24
|
-
|
|
24
|
+
CHAT_WELCOME: "chat/welcome";
|
|
25
25
|
/** FEB 2023 */
|
|
26
|
-
|
|
26
|
+
CHAT_DM: "chat/dm/:chatID";
|
|
27
27
|
/** FEB 2023 */
|
|
28
|
-
|
|
28
|
+
SPACES_WELCOME: "rooms/welcome";
|
|
29
29
|
/** FEB 2023 */
|
|
30
|
-
|
|
30
|
+
SPACE: "chat/space/:spaceID";
|
|
31
31
|
/** FEB 2023 */
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
MEET: "calls";
|
|
33
|
+
ANY_LIST: "*";
|
|
34
|
+
}>;
|
|
35
|
+
export declare const NATIVE_LIST_ROUTE_IDS: Readonly<{
|
|
36
|
+
INBOX: "inbox/:page";
|
|
37
|
+
ALL_MAIL: "all/:page";
|
|
38
|
+
SENT: "sent/:page";
|
|
39
|
+
STARRED: "starred/:page";
|
|
40
|
+
DRAFTS: "drafts/:page";
|
|
41
|
+
SNOOZED: "snoozed/:page";
|
|
42
|
+
DONE: "done";
|
|
43
|
+
REMINDERS: "reminders";
|
|
44
|
+
LABEL: "label/:labelName/:page";
|
|
45
|
+
TRASH: "trash/:page";
|
|
46
|
+
SPAM: "spam/:page";
|
|
47
|
+
IMPORTANT: "imp/:page";
|
|
48
|
+
SEARCH: "search/:query/:page";
|
|
49
|
+
ANY_LIST: "*";
|
|
50
|
+
}>;
|
|
51
|
+
export declare const ROUTE_TYPES: Readonly<{
|
|
52
|
+
LIST: "LIST";
|
|
53
|
+
THREAD: "THREAD";
|
|
54
|
+
SETTINGS: "SETTINGS";
|
|
55
|
+
CHAT: "CHAT";
|
|
56
|
+
SPACE: "SPACE";
|
|
57
|
+
MEET: "MEET";
|
|
58
|
+
CUSTOM: "CUSTOM";
|
|
59
|
+
UNKNOWN: "UNKNOWN";
|
|
34
60
|
}>;
|
|
35
|
-
export declare const NATIVE_LIST_ROUTE_IDS: Record<string, string>;
|
|
36
|
-
export declare const ROUTE_TYPES: Record<string, string>;
|
|
37
61
|
//# sourceMappingURL=router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/constants/router.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;IAoB3B,eAAe;;IAEf,eAAe;;IAEf,eAAe;;IAEf,eAAe;;IAEf,eAAe;;IAEf,eAAe;;;
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/constants/router.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;IAoB3B,eAAe;;IAEf,eAAe;;IAEf,eAAe;;IAEf,eAAe;;IAEf,eAAe;;IAEf,eAAe;;;EAGf,CAAC;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAehC,CAAC;AACH,eAAO,MAAM,WAAW;;;;;;;;;EAStB,CAAC"}
|
package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-button.d.ts","sourceRoot":"","sources":["../../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-button.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"add-button.d.ts","sourceRoot":"","sources":["../../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-button.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAEhE,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,gBAAgB,EAAE,gBAAgB,EAClC,sBAAsB,EAAE,KAAK,CAAC,UAAU,CACtC,uBAAuB,GAAG,IAAI,GAAG,SAAS,EAC1C,OAAO,CACR,EACD,cAAc,EAAE,MAAM,EACtB,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,2BAsCzC"}
|
|
@@ -4,35 +4,59 @@ export default class GmailRouteProcessor {
|
|
|
4
4
|
_compatibleRouteIDMap: Record<string, string>;
|
|
5
5
|
constructor();
|
|
6
6
|
NativeRouteIDs: Readonly<{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
7
|
+
INBOX: "inbox/:page";
|
|
8
|
+
ALL_MAIL: "all/:page";
|
|
9
|
+
SENT: "sent/:page";
|
|
10
|
+
STARRED: "starred/:page";
|
|
11
|
+
DRAFTS: "drafts/:page";
|
|
12
|
+
SNOOZED: "snoozed/:page";
|
|
13
|
+
DONE: "done";
|
|
14
|
+
REMINDERS: "reminders";
|
|
15
|
+
LABEL: "label/:labelName/:page";
|
|
16
|
+
TRASH: "trash/:page";
|
|
17
|
+
SPAM: "spam/:page";
|
|
18
|
+
IMPORTANT: "imp/:page";
|
|
19
|
+
SEARCH: "search/:query/:page";
|
|
20
|
+
THREAD: "inbox/:threadID";
|
|
21
|
+
CHATS: "chats/:page";
|
|
22
|
+
CHAT: "chats/:chatID";
|
|
23
|
+
CONTACTS: "contacts/:page";
|
|
24
|
+
CONTACT: "contacts/:contactID";
|
|
25
|
+
SETTINGS: "settings/:section";
|
|
26
|
+
SCHEDULED: "scheduled";
|
|
27
|
+
CHAT_WELCOME: "chat/welcome";
|
|
28
|
+
CHAT_DM: "chat/dm/:chatID";
|
|
29
|
+
SPACES_WELCOME: "rooms/welcome";
|
|
30
|
+
SPACE: "chat/space/:spaceID";
|
|
31
|
+
MEET: "calls";
|
|
32
|
+
ANY_LIST: "*";
|
|
33
|
+
}>;
|
|
34
|
+
NativeListRouteIDs: Readonly<{
|
|
35
|
+
INBOX: "inbox/:page";
|
|
36
|
+
ALL_MAIL: "all/:page";
|
|
37
|
+
SENT: "sent/:page";
|
|
38
|
+
STARRED: "starred/:page";
|
|
39
|
+
DRAFTS: "drafts/:page";
|
|
40
|
+
SNOOZED: "snoozed/:page";
|
|
41
|
+
DONE: "done";
|
|
42
|
+
REMINDERS: "reminders";
|
|
43
|
+
LABEL: "label/:labelName/:page";
|
|
44
|
+
TRASH: "trash/:page";
|
|
45
|
+
SPAM: "spam/:page";
|
|
46
|
+
IMPORTANT: "imp/:page";
|
|
47
|
+
SEARCH: "search/:query/:page";
|
|
48
|
+
ANY_LIST: "*";
|
|
49
|
+
}>;
|
|
50
|
+
RouteTypes: Readonly<{
|
|
51
|
+
LIST: "LIST";
|
|
52
|
+
THREAD: "THREAD";
|
|
53
|
+
SETTINGS: "SETTINGS";
|
|
54
|
+
CHAT: "CHAT";
|
|
55
|
+
SPACE: "SPACE";
|
|
56
|
+
MEET: "MEET";
|
|
57
|
+
CUSTOM: "CUSTOM";
|
|
58
|
+
UNKNOWN: "UNKNOWN";
|
|
33
59
|
}>;
|
|
34
|
-
NativeListRouteIDs: Record<string, string>;
|
|
35
|
-
RouteTypes: Record<string, string>;
|
|
36
60
|
isListRouteName(routeName: string): boolean;
|
|
37
61
|
isSettingsRouteName(routeName: string): boolean;
|
|
38
62
|
isContactRouteName(routeName: string): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gmail-route-processor.d.ts","sourceRoot":"","sources":["../../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-route-view/gmail-route-processor.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,OAAO,mBAAmB;IACtC,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAS;IACvD,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAS;IACxD,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAS;;IAQtD,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAoB;IAClC,kBAAkB
|
|
1
|
+
{"version":3,"file":"gmail-route-processor.d.ts","sourceRoot":"","sources":["../../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-route-view/gmail-route-processor.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,OAAO,mBAAmB;IACtC,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAS;IACvD,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAS;IACxD,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAS;;IAQtD,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAoB;IAClC,kBAAkB;;;;;;;;;;;;;;;OAAyB;IAC3C,UAAU;;;;;;;;;OAAe;IACzB,eAAe,CAAC,SAAS,EAAE,MAAM;IASjC,mBAAmB,CAAC,SAAS,EAAE,MAAM;IAKrC,kBAAkB,CAAC,SAAS,EAAE,MAAM;IAMpC,UAAU,CAAC,SAAS,EAAE,MAAM;IAI5B,YAAY,CAAC,OAAO,EAAE,MAAM;IAS5B,aAAa,CAAC,SAAS,EAAE,MAAM;IAG/B,oBAAoB,CAAC,OAAO,EAAE,MAAM;IAGpC,2BAA2B;IA8B3B,0BAA0B;CA0B3B"}
|
package/src/platform-implementation-js/dom-driver/gmail/views/gmail-route-view/gmail-route-view.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ import GmailCollapsibleSectionView from '../gmail-collapsible-section-view';
|
|
|
6
6
|
import type GmailDriver from '../../gmail-driver';
|
|
7
7
|
import type GmailRouteProcessor from '../gmail-route-view/gmail-route-processor';
|
|
8
8
|
import { type SectionDescriptor } from '../../../../../inboxsdk';
|
|
9
|
-
|
|
9
|
+
import type { RouteViewDriver } from '../../../../driver-interfaces/route-view-driver';
|
|
10
|
+
declare class GmailRouteView implements RouteViewDriver {
|
|
10
11
|
#private;
|
|
11
12
|
_type: string;
|
|
12
13
|
_hash: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gmail-route-view.d.ts","sourceRoot":"","sources":["../../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-route-view/gmail-route-view.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAOrC,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AACtD,OAAO,eAAe,MAAM,sBAAsB,CAAC;AACnD,OAAO,2BAA2B,MAAM,mCAAmC,CAAC;AAG5E,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,mBAAmB,MAAM,2CAA2C,CAAC;AAQjF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"gmail-route-view.d.ts","sourceRoot":"","sources":["../../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-route-view/gmail-route-view.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAOrC,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AACtD,OAAO,eAAe,MAAM,sBAAsB,CAAC;AACnD,OAAO,2BAA2B,MAAM,mCAAmC,CAAC;AAG5E,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,mBAAmB,MAAM,2CAA2C,CAAC;AAQjF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAEvF,cAAM,cAAe,YAAW,eAAe;;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,cAAc,EAAE,MAAM,GAA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AAG,SAAS,EACpC,OAAO,CACR,EACD,cAAc,EAAE,MAAM,GACrB,2BAA2B;IAoD9B,uBAAuB;IAUvB,qBAAqB;IAiBrB,2BAA2B;IAgB3B,cAAc;IA+Bd,sBAAsB,CAAC,cAAc,EAAE,WAAW;IAsGlD,kBAAkB;IAiHlB,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAyBvC,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAcvC,cAAc,IAAI,OAAO;IAOzB,mBAAmB,IAAI,OAAO;IAI9B,cAAc,IAAI,OAAO;IAQzB,qBAAqB,IAAI,OAAO;IAMhC,aAAa,IAAI,OAAO;IAQxB,YAAY,IAAI,OAAO;IAKvB,YAAY,IAAI,MAAM;IAoBtB,cAAc,IAAI,OAAO;IAIzB,YAAY,IAAI,OAAO;IASvB,gBAAgB,IAAI,OAAO;IAI3B,qBAAqB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAQ5C,mBAAmB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAe1C,qBAAqB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAuC5C,uBAAuB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAM9C,aAAa,IAAI,MAAM;IAUvB,UAAU,IAAI,MAAM;IAmBpB,OAAO;IAoBP,kBAAkB;IAClB,YAAY;IAIZ,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE;IAOvD,0BAA0B;CAG3B;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -14,6 +14,9 @@ export type StatusBar = EventEmitter & {
|
|
|
14
14
|
el: HTMLElement;
|
|
15
15
|
setHeight(height: number): void;
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* This type is passed into the ComposeViewDriver#addButton method as a way to configure the button shown.
|
|
19
|
+
*/
|
|
17
20
|
export interface ComposeButtonDescriptor {
|
|
18
21
|
title?: string;
|
|
19
22
|
iconUrl?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose-view-driver.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/driver-interfaces/compose-view-driver.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EAAE,6BAA6B,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,KAAK,EACV,sBAAsB,EACtB,sBAAsB,EACvB,MAAM,yEAAyE,CAAC;AACjF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEtF,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG;IACzC,OAAO,IAAI,IAAI,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,EAAE,EAAE,WAAW,CAAC;CACjB,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG;IACrC,OAAO,IAAI,IAAI,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,EAAE,EAAE,WAAW,CAAC;IAChB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,KAAK,EAAE,6BAA6B,GAAG,IAAI,CAAC;IACpD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;CACt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1
|
+
{"version":3,"file":"compose-view-driver.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/driver-interfaces/compose-view-driver.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EAAE,6BAA6B,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,KAAK,EACV,sBAAsB,EACtB,sBAAsB,EACvB,MAAM,yEAAyE,CAAC;AACjF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEtF,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG;IACzC,OAAO,IAAI,IAAI,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,EAAE,EAAE,WAAW,CAAC;CACjB,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG;IACrC,OAAO,IAAI,IAAI,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,EAAE,EAAE,WAAW,CAAC;IAChB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,KAAK,EAAE,6BAA6B,GAAG,IAAI,CAAC;IACpD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,sBAAsB,GAC9B;IACE,SAAS,EACL,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';
|
|
2
2
|
import type GmailCollapsibleSectionView from '../dom-driver/gmail/views/gmail-collapsible-section-view';
|
|
3
3
|
import { SectionDescriptor } from '../../inboxsdk';
|
|
4
|
+
/** The necessary interface that Router and RouteView expect. */
|
|
4
5
|
export type MinRouteViewDriver = {
|
|
5
6
|
getRouteType(): string;
|
|
6
7
|
getRouteID(): string;
|
|
@@ -8,11 +9,12 @@ export type MinRouteViewDriver = {
|
|
|
8
9
|
getEventStream(): Kefir.Observable<Record<string, any>, unknown>;
|
|
9
10
|
getStopper(): Kefir.Observable<any, unknown>;
|
|
10
11
|
};
|
|
12
|
+
/** The necessary interface that ListRouteView and CustomRouteView expect. */
|
|
11
13
|
export type RouteViewDriver = MinRouteViewDriver & {
|
|
12
14
|
refresh(): void;
|
|
13
15
|
getType(): string;
|
|
14
16
|
getHash(): string;
|
|
15
|
-
addSection(sectionDescriptorProperty: Kefir.Observable<
|
|
17
|
+
addSection(sectionDescriptorProperty: Kefir.Observable<SectionDescriptor | null | undefined, unknown>, groupOrderHint: any): GmailCollapsibleSectionView;
|
|
16
18
|
addCollapsibleSection(sectionDescriptorProperty: Kefir.Observable<SectionDescriptor | null | undefined, unknown>, groupOrderHint: any): GmailCollapsibleSectionView;
|
|
17
19
|
getCustomViewElement(): HTMLElement | null | undefined;
|
|
18
20
|
setFullWidth(fullWidth: boolean): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-view-driver.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/driver-interfaces/route-view-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,2BAA2B,MAAM,0DAA0D,CAAC;AACxG,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,IAAI,MAAM,CAAC;IACvB,UAAU,IAAI,MAAM,CAAC;IACrB,SAAS,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,cAAc,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;IACjE,UAAU,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,kBAAkB,GAAG;IACjD,OAAO,IAAI,IAAI,CAAC;IAChB,OAAO,IAAI,MAAM,CAAC;IAClB,OAAO,IAAI,MAAM,CAAC;IAClB,UAAU,CACR,yBAAyB,EAAE,KAAK,CAAC,UAAU,CACzC,
|
|
1
|
+
{"version":3,"file":"route-view-driver.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/driver-interfaces/route-view-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,2BAA2B,MAAM,0DAA0D,CAAC;AACxG,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,gEAAgE;AAChE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,IAAI,MAAM,CAAC;IACvB,UAAU,IAAI,MAAM,CAAC;IACrB,SAAS,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,cAAc,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;IACjE,UAAU,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;CAC9C,CAAC;AAEF,6EAA6E;AAC7E,MAAM,MAAM,eAAe,GAAG,kBAAkB,GAAG;IACjD,OAAO,IAAI,IAAI,CAAC;IAChB,OAAO,IAAI,MAAM,CAAC;IAClB,OAAO,IAAI,MAAM,CAAC;IAClB,UAAU,CACR,yBAAyB,EAAE,KAAK,CAAC,UAAU,CACzC,iBAAiB,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,CACR,EACD,cAAc,EAAE,GAAG,GAClB,2BAA2B,CAAC;IAC/B,qBAAqB,CACnB,yBAAyB,EAAE,KAAK,CAAC,UAAU,CACzC,iBAAiB,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,CACR,EACD,cAAc,EAAE,GAAG,GAClB,2BAA2B,CAAC;IAC/B,oBAAoB,IAAI,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IACvD,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;CACxC,CAAC"}
|
|
@@ -8,35 +8,59 @@ import type { Handler } from '../lib/handler-registry';
|
|
|
8
8
|
export type RouteParams = Record<string, string | number>;
|
|
9
9
|
declare class Router {
|
|
10
10
|
NativeRouteIDs: Readonly<{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
11
|
+
INBOX: "inbox/:page";
|
|
12
|
+
ALL_MAIL: "all/:page";
|
|
13
|
+
SENT: "sent/:page";
|
|
14
|
+
STARRED: "starred/:page";
|
|
15
|
+
DRAFTS: "drafts/:page";
|
|
16
|
+
SNOOZED: "snoozed/:page";
|
|
17
|
+
DONE: "done";
|
|
18
|
+
REMINDERS: "reminders";
|
|
19
|
+
LABEL: "label/:labelName/:page";
|
|
20
|
+
TRASH: "trash/:page";
|
|
21
|
+
SPAM: "spam/:page";
|
|
22
|
+
IMPORTANT: "imp/:page";
|
|
23
|
+
SEARCH: "search/:query/:page";
|
|
24
|
+
THREAD: "inbox/:threadID";
|
|
25
|
+
CHATS: "chats/:page";
|
|
26
|
+
CHAT: "chats/:chatID";
|
|
27
|
+
CONTACTS: "contacts/:page";
|
|
28
|
+
CONTACT: "contacts/:contactID";
|
|
29
|
+
SETTINGS: "settings/:section";
|
|
30
|
+
SCHEDULED: "scheduled";
|
|
31
|
+
CHAT_WELCOME: "chat/welcome";
|
|
32
|
+
CHAT_DM: "chat/dm/:chatID";
|
|
33
|
+
SPACES_WELCOME: "rooms/welcome";
|
|
34
|
+
SPACE: "chat/space/:spaceID";
|
|
35
|
+
MEET: "calls";
|
|
36
|
+
ANY_LIST: "*";
|
|
37
|
+
}>;
|
|
38
|
+
NativeListRouteIDs: Readonly<{
|
|
39
|
+
INBOX: "inbox/:page";
|
|
40
|
+
ALL_MAIL: "all/:page";
|
|
41
|
+
SENT: "sent/:page";
|
|
42
|
+
STARRED: "starred/:page";
|
|
43
|
+
DRAFTS: "drafts/:page";
|
|
44
|
+
SNOOZED: "snoozed/:page";
|
|
45
|
+
DONE: "done";
|
|
46
|
+
REMINDERS: "reminders";
|
|
47
|
+
LABEL: "label/:labelName/:page";
|
|
48
|
+
TRASH: "trash/:page";
|
|
49
|
+
SPAM: "spam/:page";
|
|
50
|
+
IMPORTANT: "imp/:page";
|
|
51
|
+
SEARCH: "search/:query/:page";
|
|
52
|
+
ANY_LIST: "*";
|
|
53
|
+
}>;
|
|
54
|
+
RouteTypes: Readonly<{
|
|
55
|
+
LIST: "LIST";
|
|
56
|
+
THREAD: "THREAD";
|
|
57
|
+
SETTINGS: "SETTINGS";
|
|
58
|
+
CHAT: "CHAT";
|
|
59
|
+
SPACE: "SPACE";
|
|
60
|
+
MEET: "MEET";
|
|
61
|
+
CUSTOM: "CUSTOM";
|
|
62
|
+
UNKNOWN: "UNKNOWN";
|
|
37
63
|
}>;
|
|
38
|
-
NativeListRouteIDs: Record<string, string>;
|
|
39
|
-
RouteTypes: Record<string, string>;
|
|
40
64
|
constructor(appId: string, driver: Driver, membrane: Membrane);
|
|
41
65
|
createLink(routeID: string, params?: (RouteParams | null | undefined) | string): string;
|
|
42
66
|
goto(routeID: string, params?: (RouteParams | null | undefined) | string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/namespaces/router.ts"],"names":[],"mappings":"AAGA,OAAO,eAAe,MAAM,yBAAyB,CAAC;AAEtD,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,aAAa,MAAM,qCAAqC,CAAC;AAChE,OAAO,eAAe,MAAM,uCAAuC,CAAC;AAEpE,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAM5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAEvD,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAgB1D,cAAM,MAAM;IACV,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAoB;IAClC,kBAAkB
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/namespaces/router.ts"],"names":[],"mappings":"AAGA,OAAO,eAAe,MAAM,yBAAyB,CAAC;AAEtD,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,aAAa,MAAM,qCAAqC,CAAC;AAChE,OAAO,eAAe,MAAM,uCAAuC,CAAC;AAEpE,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAM5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAEvD,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAgB1D,cAAM,MAAM;IACV,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAoB;IAClC,kBAAkB;;;;;;;;;;;;;;;OAAyB;IAC3C,UAAU;;;;;;;;;OAAe;gBAEb,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;IAkC7D,UAAU,CACR,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,CAAC,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,MAAM,GACjD,MAAM;IAIT,IAAI,CACF,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,CAAC,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,MAAM,GACjD,OAAO,CAAC,IAAI,CAAC;IAmBhB,iBAAiB,CACf,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,eAAe,CAAC,eAAe,CAAC,GACxC,MAAM,IAAI;IAsBb,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,IAAI;IAMlD,eAAe,CACb,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,GAC9B,MAAM,IAAI;IAUb,qBAAqB,CACnB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,GAAG,GACpC,MAAM,IAAI;IAIb,mBAAmB,IAAI,SAAS;CAIjC;AAkFD,eAAe,MAAM,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Observable } from 'kefir';
|
|
2
1
|
import ComposeButtonView from './compose-button-view';
|
|
3
2
|
import type Membrane from '../lib/Membrane';
|
|
4
3
|
import type { Driver } from '../driver-interfaces/driver';
|
|
@@ -6,6 +5,7 @@ import type { ComposeViewDriver, ComposeNotice, StatusBar, ComposeButtonDescript
|
|
|
6
5
|
import type { Contact } from '../../inboxsdk';
|
|
7
6
|
import type TypedEventEmitter from 'typed-emitter';
|
|
8
7
|
import type { AddressChangeEventName, RecipientsChangedEvent } from '../dom-driver/gmail/views/gmail-compose-view/get-address-changes-stream';
|
|
8
|
+
import type { Descriptor } from '../../types/descriptor';
|
|
9
9
|
export type LinkPopOver = {
|
|
10
10
|
getLinkElement(): HTMLAnchorElement;
|
|
11
11
|
addSection(): LinkPopOverSection;
|
|
@@ -68,7 +68,12 @@ declare const ComposeView_base: new () => TypedEventEmitter<ComposeViewEvent>;
|
|
|
68
68
|
export default class ComposeView extends ComposeView_base {
|
|
69
69
|
destroyed: boolean;
|
|
70
70
|
constructor(driver: Driver, composeViewImplementation: ComposeViewDriver, membrane: Membrane);
|
|
71
|
-
|
|
71
|
+
/**
|
|
72
|
+
* Inserts a button into the compose bar. This method also accepts a stream of {@link ComposeButtonDescriptor}s so that you can change the appearance of your button after you've added it.
|
|
73
|
+
*
|
|
74
|
+
* @param buttonDescriptor The details of the button to add to the compose bar.
|
|
75
|
+
*/
|
|
76
|
+
addButton(buttonDescriptor: Descriptor<ComposeButtonDescriptor | null | undefined>): ComposeButtonView;
|
|
72
77
|
addComposeNotice(composeNoticeDescriptor?: {
|
|
73
78
|
height?: number;
|
|
74
79
|
orderHint?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose-view.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/views/compose-view.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compose-view.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/views/compose-view.ts"],"names":[],"mappings":"AAKA,OAAO,iBAAiB,MAAM,uBAAuB,CAAC;AAEtD,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,uBAAuB,EACxB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EA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,CAAC;IAOR,iBAAiB,CAAC,EAAE,EAAE,EAAE,EAAE;QAAE,EAAE,EAAE,WAAW,CAAA;KAAE,GAAG,MAAM,IAAI;IAI1D,iBAAiB,IAAI,MAAM,IAAI;IAI/B,+BAA+B;IAO/B,gCAAgC;IAQhC,mBAAmB;CAUpB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as Kefir from 'kefir';
|
|
2
|
-
|
|
2
|
+
import type { MinRouteViewDriver } from '../../driver-interfaces/route-view-driver';
|
|
3
|
+
declare class DummyRouteViewDriver implements MinRouteViewDriver {
|
|
3
4
|
_eventStream: import("kefir-bus").Bus<Record<string, any>, unknown>;
|
|
4
5
|
_stopper: import("kefir-stopper").Stopper;
|
|
5
|
-
constructor();
|
|
6
6
|
getRouteType(): string;
|
|
7
7
|
getRouteID(): string;
|
|
8
8
|
getParams(): {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dummy-route-view-driver.d.ts","sourceRoot":"","sources":["../../../../../../src/platform-implementation-js/views/route-view/dummy-route-view-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"dummy-route-view-driver.d.ts","sourceRoot":"","sources":["../../../../../../src/platform-implementation-js/views/route-view/dummy-route-view-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAEpF,cAAM,oBAAqB,YAAW,kBAAkB;IACtD,YAAY,wDAA4C;IACxD,QAAQ,kCAAkB;IAE1B,YAAY;IAIZ,UAAU;IAIV,SAAS;IAIT,cAAc;IAId,UAAU,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC;IAI5C,OAAO;CAKR;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import RouteView from './route-view';
|
|
2
|
-
import { Observable } from 'kefir';
|
|
3
2
|
import CollapsibleSectionView from '../collapsible-section-view';
|
|
4
3
|
import SectionView from '../section-view';
|
|
5
4
|
import type { RouteViewDriver } from '../../driver-interfaces/route-view-driver';
|
|
6
5
|
import type { Driver } from '../../driver-interfaces/driver';
|
|
7
6
|
import type { SectionDescriptor } from '../../../inboxsdk';
|
|
7
|
+
import type { Descriptor } from '../../../types/descriptor';
|
|
8
8
|
/**
|
|
9
9
|
* Extends {@link RouteView}. {@link ListRouteView}s represent pages within Gmail that show a list of emails. Typical examples are the Inbox, Sent Mail, Drafts, etc. However, views like the Conversation view or Settings would not be a ListRouteView.
|
|
10
10
|
*/
|
|
@@ -14,9 +14,9 @@ declare class ListRouteView extends RouteView {
|
|
|
14
14
|
/**
|
|
15
15
|
* Adds a collapsible section to the top of the page.
|
|
16
16
|
*/
|
|
17
|
-
addCollapsibleSection(collapsibleSectionDescriptor:
|
|
17
|
+
addCollapsibleSection(collapsibleSectionDescriptor: Descriptor<SectionDescriptor | null | undefined>): CollapsibleSectionView;
|
|
18
18
|
/** Adds a non-collapsible section to the top of the page. */
|
|
19
|
-
addSection(sectionDescriptor:
|
|
19
|
+
addSection(sectionDescriptor: Descriptor<SectionDescriptor | null | undefined>): SectionView;
|
|
20
20
|
/** Simulates a click on the Gmail thread list refresh button. */
|
|
21
21
|
refresh(): void;
|
|
22
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-route-view.d.ts","sourceRoot":"","sources":["../../../../../../src/platform-implementation-js/views/route-view/list-route-view.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"list-route-view.d.ts","sourceRoot":"","sources":["../../../../../../src/platform-implementation-js/views/route-view/list-route-view.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAGrC,OAAO,sBAAsB,MAAM,6BAA6B,CAAC;AACjE,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D;;GAEG;AACH,cAAM,aAAc,SAAQ,SAAS;;gBAMvB,eAAe,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAS3E;;OAEG;IACH,qBAAqB,CACnB,4BAA4B,EAAE,UAAU,CACtC,iBAAiB,GAAG,IAAI,GAAG,SAAS,CACrC,GACA,sBAAsB;IAoBzB,6DAA6D;IAC7D,UAAU,CACR,iBAAiB,EAAE,UAAU,CAAC,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAC,GAClE,WAAW;IAad,iEAAiE;IACjE,OAAO;CAWR;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import EventEmitter from '../../lib/safe-event-emitter';
|
|
2
2
|
import type { MinRouteViewDriver } from '../../driver-interfaces/route-view-driver';
|
|
3
|
+
/**
|
|
4
|
+
* {@link RouteView}s represent pages within Gmail that a user can navigate to. RouteViews can be "custom", those that the application developer registers, or they can be "builtin" which are those that the email client natively supports like "Sent", "Drafts", or "Inbox"
|
|
5
|
+
|
|
6
|
+
* This class mostly just gives you metadata about the route, most of the functionality to modify the route are defined in subclasses like ListRouteView and CustomRouteView, which you get by handling those types specifically in the Router.
|
|
7
|
+
*/
|
|
3
8
|
declare class RouteView extends EventEmitter {
|
|
9
|
+
#private;
|
|
4
10
|
destroyed: boolean;
|
|
5
11
|
constructor(routeViewDriver: MinRouteViewDriver);
|
|
12
|
+
/**
|
|
13
|
+
* @returns a string of the ID of the RouteView. This is the same routeID that you give Router.goto() or Router.createLink(). This will be a value from NativeRouteIDs.
|
|
14
|
+
*/
|
|
6
15
|
getRouteID(): string;
|
|
7
16
|
getRouteType(): string;
|
|
8
17
|
getParams(): Record<string, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-view.d.ts","sourceRoot":"","sources":["../../../../../../src/platform-implementation-js/views/route-view/route-view.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"route-view.d.ts","sourceRoot":"","sources":["../../../../../../src/platform-implementation-js/views/route-view/route-view.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,8BAA8B,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAEpF;;;;GAIG;AACH,cAAM,SAAU,SAAQ,YAAY;;IAClC,SAAS,EAAE,OAAO,CAAC;gBAMP,eAAe,EAAE,kBAAkB;IAQ/C;;OAEG;IACH,UAAU,IAAI,MAAM;IAQpB,YAAY,IAAI,MAAM;IAQtB,SAAS,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAOpC;AAaD,eAAe,SAAS,CAAC"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import EventEmitter from '../lib/safe-event-emitter';
|
|
2
2
|
import type { Driver } from '../driver-interfaces/driver';
|
|
3
3
|
import type GmailCollapsibleSectionView from '../dom-driver/gmail/views/gmail-collapsible-section-view';
|
|
4
|
+
/**
|
|
5
|
+
* {@link SectionView}s allow you to display additional content on ListRouteViews. They are typically rendered as additional content above the list of threads below. The visual style is similar to that of multiple inbox sections used in native Gmail. Note that the rendering may vary slightly depending on the actual ListRouteView that the SectionView is rendered in. For example, SectionViews rendered on search results pages use different header styles to match Gmail's style more accurately.
|
|
6
|
+
|
|
7
|
+
* You can either render rows (that are visually similar to Gmail rows) or custom content in your SectionView. Until content is provided, the SectionView will simply display a "Loading..." indicator. See ListRouteView.addSection for more information.
|
|
8
|
+
*/
|
|
4
9
|
declare class SectionView extends EventEmitter {
|
|
5
10
|
#private;
|
|
6
11
|
destroyed: boolean;
|
|
7
12
|
constructor(sectionViewDriver: GmailCollapsibleSectionView, driver: Driver);
|
|
13
|
+
/**
|
|
14
|
+
* Removes this section from the current Route.
|
|
15
|
+
*/
|
|
8
16
|
remove(): void;
|
|
9
17
|
destroy(): void;
|
|
10
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-view.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/views/section-view.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,2BAA2B,MAAM,0DAA0D,CAAC;AAExG,cAAM,WAAY,SAAQ,YAAY;;IACpC,SAAS,EAAE,OAAO,CAAC;gBAGP,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,EAAE,MAAM;IAQ1E,MAAM;IAIN,OAAO;CAIR;AAoDD,eAAe,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"section-view.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/views/section-view.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,2BAA2B,MAAM,0DAA0D,CAAC;AAExG;;;;GAIG;AACH,cAAM,WAAY,SAAQ,YAAY;;IACpC,SAAS,EAAE,OAAO,CAAC;gBAGP,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,EAAE,MAAM;IAQ1E;;OAEG;IACH,MAAM;IAIN,OAAO;CAIR;AAoDD,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Observable } from 'kefir';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @type {T} The descriptor as either an object or Observable<object>.
|
|
5
|
+
* @typedef {U} @optional The type of errors emitted. We use either `unknown` or `any` in most cases.
|
|
6
|
+
*
|
|
7
|
+
* We generally run passed descriptors through `kefir-cast` and flatten them
|
|
8
|
+
* to Observable<T, U>.
|
|
9
|
+
*/
|
|
10
|
+
export type Descriptor<T, U = unknown> = T | Observable<T, U>;
|