@inboxsdk/core 2.1.22 → 2.1.24
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 +81 -35
- package/package.json +1 -1
- package/src/inboxsdk.d.ts +2 -2
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-route-view/gmail-route-view.d.ts +0 -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/dom-driver/gmail/views/gmail-thread-row-view.d.ts +1 -6
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-row-view.d.ts.map +1 -1
- package/src/platform-implementation-js/views/conversations/thread-view.d.ts +2 -2
- package/src/platform-implementation-js/views/conversations/thread-view.d.ts.map +1 -1
- package/src/platform-implementation-js/views/thread-row-view.d.ts +6 -39
- package/src/platform-implementation-js/views/thread-row-view.d.ts.map +1 -1
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.24-1701434187910-1d6b0d86d3705d88";
|
|
818
818
|
if (false) {}
|
|
819
819
|
|
|
820
820
|
/***/ }),
|
|
@@ -7727,6 +7727,7 @@ function starGroupEventInterceptor(event) {
|
|
|
7727
7727
|
}
|
|
7728
7728
|
class GmailThreadRowView {
|
|
7729
7729
|
_stopper = js_default()();
|
|
7730
|
+
#counts = null;
|
|
7730
7731
|
_isDestroyed = false;
|
|
7731
7732
|
constructor(element, rowListViewDriver, gmailDriver) {
|
|
7732
7733
|
(0,assert/* assert */.h)(element.hasAttribute('id'), 'check element is main thread row');
|
|
@@ -7783,7 +7784,6 @@ class GmailThreadRowView {
|
|
|
7783
7784
|
this._refresher = null;
|
|
7784
7785
|
this._subjectRefresher = null;
|
|
7785
7786
|
this._imageRefresher = null;
|
|
7786
|
-
this._counts = null;
|
|
7787
7787
|
this._elements[0].setAttribute('data-inboxsdk-thread-row', 'true');
|
|
7788
7788
|
}
|
|
7789
7789
|
destroy() {
|
|
@@ -7851,19 +7851,38 @@ class GmailThreadRowView {
|
|
|
7851
7851
|
setUserView(userView) {
|
|
7852
7852
|
this._userView = userView;
|
|
7853
7853
|
}
|
|
7854
|
-
getCounts() {
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7854
|
+
#getCounts() {
|
|
7855
|
+
if (this.#counts) {
|
|
7856
|
+
return this.#counts;
|
|
7857
|
+
}
|
|
7858
|
+
|
|
7859
|
+
/**
|
|
7860
|
+
* If the SDK is used alongside the https://chrome.google.com/webstore/detail/mailtrack-for-gmail-inbox/ndnaehgpjlnokgebbaldlmgkapkpjkkb/utm_source/gmail/utm_medium/signature/utm_campaign/signaturevirality/th138p9fIBkLHUhniapN extension, the recipientsElement will sometimes be null.
|
|
7861
|
+
*/
|
|
7862
|
+
let recipientsElement;
|
|
7863
|
+
try {
|
|
7864
|
+
recipientsElement = (0,querySelectorOrFail/* default */.Z)(this._elements[0], 'td div.yW');
|
|
7865
|
+
} catch (e) {
|
|
7866
|
+
if (e instanceof querySelectorOrFail/* SelectorError */.u) {
|
|
7867
|
+
this._driver.logger.errorSite(e);
|
|
7868
|
+
} else {
|
|
7869
|
+
throw e;
|
|
7870
|
+
}
|
|
7871
|
+
}
|
|
7872
|
+
if (!recipientsElement) {
|
|
7873
|
+
return this.#counts = {
|
|
7874
|
+
messageCount: 0,
|
|
7875
|
+
draftCount: 0
|
|
7864
7876
|
};
|
|
7865
7877
|
}
|
|
7866
|
-
|
|
7878
|
+
const draftCount = recipientsElement.querySelectorAll('.boq').length;
|
|
7879
|
+
const messageCountMatch = recipientsElement.querySelector('.bx0');
|
|
7880
|
+
const messageCount = messageCountMatch?.innerHTML ? +messageCountMatch.innerHTML : draftCount ? 0 : 1;
|
|
7881
|
+
this.#counts = {
|
|
7882
|
+
messageCount,
|
|
7883
|
+
draftCount
|
|
7884
|
+
};
|
|
7885
|
+
return this.#counts;
|
|
7867
7886
|
}
|
|
7868
7887
|
_expandColumn(colSelector, width) {
|
|
7869
7888
|
this._rowListViewDriver.expandColumn(colSelector, width);
|
|
@@ -8411,10 +8430,10 @@ class GmailThreadRowView {
|
|
|
8411
8430
|
return this._cachedSyncDraftIDPromise;
|
|
8412
8431
|
}
|
|
8413
8432
|
getVisibleDraftCount() {
|
|
8414
|
-
return this
|
|
8433
|
+
return this.#getCounts().draftCount;
|
|
8415
8434
|
}
|
|
8416
8435
|
getVisibleMessageCount() {
|
|
8417
|
-
return this
|
|
8436
|
+
return this.#getCounts().messageCount;
|
|
8418
8437
|
}
|
|
8419
8438
|
getContacts() {
|
|
8420
8439
|
const senderSpans = this._elements[0].querySelectorAll('[email]');
|
|
@@ -10510,7 +10529,7 @@ options.insert = htmlElement => {
|
|
|
10510
10529
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
10511
10530
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
10512
10531
|
///@ts-ignore
|
|
10513
|
-
"2.1.
|
|
10532
|
+
"2.1.24-1701434187910-1d6b0d86d3705d88");
|
|
10514
10533
|
document.head.append(htmlElement);
|
|
10515
10534
|
};
|
|
10516
10535
|
options.domAPI = (styleDomAPI_default());
|
|
@@ -14940,6 +14959,10 @@ class GmailThreadView {
|
|
|
14940
14959
|
|
|
14941
14960
|
const membersMap = new WeakMap();
|
|
14942
14961
|
class ThreadRowView extends safe_event_emitter/* default */.Z {
|
|
14962
|
+
/**
|
|
14963
|
+
* This property is set to true once the view is destroyed
|
|
14964
|
+
*/
|
|
14965
|
+
|
|
14943
14966
|
constructor(threadRowViewDriver) {
|
|
14944
14967
|
super();
|
|
14945
14968
|
const members = {
|
|
@@ -14989,7 +15012,6 @@ class ThreadRowView extends safe_event_emitter/* default */.Z {
|
|
|
14989
15012
|
|
|
14990
15013
|
/** @deprecated */
|
|
14991
15014
|
getThreadID() {
|
|
14992
|
-
// TODO mark deprecated
|
|
14993
15015
|
return (0,get_or_fail/* default */.Z)(membersMap, this).threadRowViewDriver.getThreadID();
|
|
14994
15016
|
}
|
|
14995
15017
|
getThreadIDAsync() {
|
|
@@ -15015,6 +15037,10 @@ class ThreadRowView extends safe_event_emitter/* default */.Z {
|
|
|
15015
15037
|
getDraftID() {
|
|
15016
15038
|
return (0,get_or_fail/* default */.Z)(membersMap, this).threadRowViewDriver.getDraftID();
|
|
15017
15039
|
}
|
|
15040
|
+
|
|
15041
|
+
/**
|
|
15042
|
+
* @returns the {number} of visible draft messages in the row. This is purely an estimate based on what is visible in the row.
|
|
15043
|
+
*/
|
|
15018
15044
|
getVisibleDraftCount() {
|
|
15019
15045
|
return (0,get_or_fail/* default */.Z)(membersMap, this).threadRowViewDriver.getVisibleDraftCount();
|
|
15020
15046
|
}
|
|
@@ -15840,6 +15866,7 @@ function extractDocumentHtmlAndCss() {
|
|
|
15840
15866
|
|
|
15841
15867
|
class GmailRouteView {
|
|
15842
15868
|
_stopper = js_default()();
|
|
15869
|
+
#driver;
|
|
15843
15870
|
#page;
|
|
15844
15871
|
#destroyed = false;
|
|
15845
15872
|
constructor(_ref, gmailRouteProcessor, driver) {
|
|
@@ -15858,7 +15885,7 @@ class GmailRouteView {
|
|
|
15858
15885
|
this._stopper = js_default()();
|
|
15859
15886
|
this._rowListViews = [];
|
|
15860
15887
|
this._gmailRouteProcessor = gmailRouteProcessor;
|
|
15861
|
-
this
|
|
15888
|
+
this.#driver = driver;
|
|
15862
15889
|
this._eventStream = kefir_bus_default()();
|
|
15863
15890
|
this._hasAddedCollapsibleSection = false;
|
|
15864
15891
|
this.#page = makePageParser(document.body, driver.getLogger());
|
|
@@ -15955,7 +15982,7 @@ class GmailRouteView {
|
|
|
15955
15982
|
}
|
|
15956
15983
|
#addCollapsibleSection(collapsibleSectionDescriptorProperty, groupOrderHint, isCollapsible) {
|
|
15957
15984
|
this._hasAddedCollapsibleSection = true;
|
|
15958
|
-
var gmailResultsSectionView = new gmail_collapsible_section_view(this
|
|
15985
|
+
var gmailResultsSectionView = new gmail_collapsible_section_view(this.#driver, groupOrderHint, this.getRouteID() === this._gmailRouteProcessor.NativeRouteIDs.SEARCH, isCollapsible);
|
|
15959
15986
|
kefir_esm.combine([this.#getSectionsContainer(), gmailResultsSectionView.getEventStream().filter(event => {
|
|
15960
15987
|
return event.type === 'update' && event.property === 'orderHint';
|
|
15961
15988
|
})]).onValue(_ref2 => {
|
|
@@ -16012,7 +16039,7 @@ class GmailRouteView {
|
|
|
16012
16039
|
// role=main attribute is not set while page in a loading state
|
|
16013
16040
|
await (0,wait_for/* default */.Z)(() => document.querySelector('[role=main]'), 15_000);
|
|
16014
16041
|
} catch {
|
|
16015
|
-
this.
|
|
16042
|
+
this.#driver.getLogger().error(new querySelectorOrFail/* SelectorError */.u('[role=main]'), {
|
|
16016
16043
|
html: extractDocumentHtmlAndCss()
|
|
16017
16044
|
});
|
|
16018
16045
|
}
|
|
@@ -16028,7 +16055,7 @@ class GmailRouteView {
|
|
|
16028
16055
|
_processRowListElement(rowListElement) {
|
|
16029
16056
|
var rootElement = rowListElement.parentElement;
|
|
16030
16057
|
if (!rootElement) throw new Error('no rootElement');
|
|
16031
|
-
var gmailRowListView = new gmail_row_list_view(rootElement, this, this
|
|
16058
|
+
var gmailRowListView = new gmail_row_list_view(rootElement, this, this.#driver);
|
|
16032
16059
|
this._rowListViews.push(gmailRowListView);
|
|
16033
16060
|
this._eventStream.emit({
|
|
16034
16061
|
eventName: 'newGmailRowListView',
|
|
@@ -16041,7 +16068,7 @@ class GmailRouteView {
|
|
|
16041
16068
|
return;
|
|
16042
16069
|
}
|
|
16043
16070
|
if (parseResult?.threadContainerElement) {
|
|
16044
|
-
var gmailThreadView = new gmail_thread_view(parseResult.threadContainerElement, this, this
|
|
16071
|
+
var gmailThreadView = new gmail_thread_view(parseResult.threadContainerElement, this, this.#driver);
|
|
16045
16072
|
this._threadView = gmailThreadView;
|
|
16046
16073
|
this._eventStream.emit({
|
|
16047
16074
|
eventName: 'newGmailThreadView',
|
|
@@ -16089,8 +16116,8 @@ class GmailRouteView {
|
|
|
16089
16116
|
// avoid logging not found error in this case
|
|
16090
16117
|
} else {
|
|
16091
16118
|
const error = new Error("Thread container element wasn't found");
|
|
16092
|
-
if ((0,isStreakAppId/* default */.Z)(this.
|
|
16093
|
-
this.
|
|
16119
|
+
if ((0,isStreakAppId/* default */.Z)(this.#driver.getAppId())) {
|
|
16120
|
+
this.#driver.getLogger().error(error, {
|
|
16094
16121
|
html: extractDocumentHtmlAndCss()
|
|
16095
16122
|
});
|
|
16096
16123
|
}
|
|
@@ -16116,7 +16143,7 @@ class GmailRouteView {
|
|
|
16116
16143
|
async #startMonitoringPreviewPaneForThread(previewPaneContainer) {
|
|
16117
16144
|
let threadContainerElement;
|
|
16118
16145
|
const selector = 'table.Bs > tr';
|
|
16119
|
-
const
|
|
16146
|
+
const selector_2023_11_30 = '.ao9:has(.a98.iY, .apa)';
|
|
16120
16147
|
try {
|
|
16121
16148
|
threadContainerElement = await (0,wait_for/* default */.Z)(() => {
|
|
16122
16149
|
if (this.#destroyed) {
|
|
@@ -16126,14 +16153,14 @@ class GmailRouteView {
|
|
|
16126
16153
|
if (threadContainerElement) {
|
|
16127
16154
|
return threadContainerElement;
|
|
16128
16155
|
}
|
|
16129
|
-
return previewPaneContainer.querySelector(
|
|
16156
|
+
return previewPaneContainer.querySelector(selector_2023_11_30);
|
|
16130
16157
|
}, 15_000);
|
|
16131
16158
|
} catch {
|
|
16132
|
-
const selectorError = new querySelectorOrFail/* SelectorError */.u(`${selector}, ${
|
|
16159
|
+
const selectorError = new querySelectorOrFail/* SelectorError */.u(`${selector}, ${selector_2023_11_30}`, {
|
|
16133
16160
|
cause: new Error("Thread container for preview pane wasn't found")
|
|
16134
16161
|
});
|
|
16135
|
-
if ((0,isStreakAppId/* default */.Z)(this.
|
|
16136
|
-
this.
|
|
16162
|
+
if ((0,isStreakAppId/* default */.Z)(this.#driver.getAppId())) {
|
|
16163
|
+
this.#driver.getLogger().error(selectorError, {
|
|
16137
16164
|
html: extractDocumentHtmlAndCss()
|
|
16138
16165
|
});
|
|
16139
16166
|
}
|
|
@@ -16142,8 +16169,27 @@ class GmailRouteView {
|
|
|
16142
16169
|
if (threadContainerElement === 'destroyed') {
|
|
16143
16170
|
return;
|
|
16144
16171
|
}
|
|
16145
|
-
const elementStream = (0,make_element_child_stream/* default */.Z)(threadContainerElement).filter(event => !!event.el.querySelector('.if') || !!event.el.querySelector('.PeIF1d') || !!event.el.querySelector('.a98.iY') || event.el.matches('.a98.iY'))
|
|
16146
|
-
|
|
16172
|
+
const elementStream = (0,make_element_child_stream/* default */.Z)(threadContainerElement).filter(event => !!event.el.querySelector('.if') || !!event.el.querySelector('.PeIF1d') || !!event.el.querySelector('.a98.iY') || event.el.matches('.a98.iY')).onValue(_ref4 => {
|
|
16173
|
+
let {
|
|
16174
|
+
el
|
|
16175
|
+
} = _ref4;
|
|
16176
|
+
const versions = [];
|
|
16177
|
+
|
|
16178
|
+
// TODO: remove this once we're sure that all users are on the latest version
|
|
16179
|
+
if (el.matches(":has(.if)")) {
|
|
16180
|
+
versions.push('2014-11-06');
|
|
16181
|
+
} else if (el.matches(":has(.PeIF1d)")) {
|
|
16182
|
+
versions.push('2022-10-12');
|
|
16183
|
+
} else if (el.matches(":has(.a98.iY)")) {
|
|
16184
|
+
return versions.push('2022-11-21');
|
|
16185
|
+
} else if (el.matches(".a98.iY")) {
|
|
16186
|
+
versions.push('2023-11-22');
|
|
16187
|
+
}
|
|
16188
|
+
this.#driver.logger.eventSdkPassive('routeView#startMonitoringPreviewPaneForThread', {
|
|
16189
|
+
versions
|
|
16190
|
+
});
|
|
16191
|
+
});
|
|
16192
|
+
this._eventStream.plug(elementStream.flatMap(makeElementViewStream(element => new gmail_thread_view(element, this, this.#driver, true))).map(view => {
|
|
16147
16193
|
this._threadView = view;
|
|
16148
16194
|
return {
|
|
16149
16195
|
eventName: 'newGmailThreadView',
|
|
@@ -16152,10 +16198,10 @@ class GmailRouteView {
|
|
|
16152
16198
|
}));
|
|
16153
16199
|
}
|
|
16154
16200
|
#getSectionsContainer() {
|
|
16155
|
-
return (0,toItemWithLifetimeStream/* default */.Z)(this.#page.tree.getAllByTag('rowListElementContainer')).takeUntilBy(this._stopper).take(1).map(
|
|
16201
|
+
return (0,toItemWithLifetimeStream/* default */.Z)(this.#page.tree.getAllByTag('rowListElementContainer')).takeUntilBy(this._stopper).take(1).map(_ref5 => {
|
|
16156
16202
|
let {
|
|
16157
16203
|
el
|
|
16158
|
-
} =
|
|
16204
|
+
} = _ref5;
|
|
16159
16205
|
const main = el.getValue();
|
|
16160
16206
|
let sectionsContainer = main.querySelector('.inboxsdk__custom_sections');
|
|
16161
16207
|
if (!sectionsContainer) {
|
|
@@ -16277,7 +16323,7 @@ class GmailRouteView {
|
|
|
16277
16323
|
let threadID;
|
|
16278
16324
|
if (threadContainerElement) {
|
|
16279
16325
|
try {
|
|
16280
|
-
threadID = this.
|
|
16326
|
+
threadID = this.#driver.getPageCommunicator().getCurrentThreadID(threadContainerElement);
|
|
16281
16327
|
} catch (err) {
|
|
16282
16328
|
// leave threadID null to be set below
|
|
16283
16329
|
}
|
|
@@ -19194,7 +19240,7 @@ options.insert = htmlElement => {
|
|
|
19194
19240
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
19195
19241
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
19196
19242
|
///@ts-ignore
|
|
19197
|
-
"2.1.
|
|
19243
|
+
"2.1.24-1701434187910-1d6b0d86d3705d88");
|
|
19198
19244
|
document.head.append(htmlElement);
|
|
19199
19245
|
};
|
|
19200
19246
|
options.domAPI = (styleDomAPI_default());
|
package/package.json
CHANGED
package/src/inboxsdk.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import type GmailRouteProcessor from './platform-implementation-js/dom-driver/gm
|
|
|
13
13
|
import type GmailDriver from './platform-implementation-js/dom-driver/gmail/gmail-driver';
|
|
14
14
|
import type GmailRowListView from './platform-implementation-js/dom-driver/gmail/views/gmail-row-list-view';
|
|
15
15
|
import type { AppLogger } from './platform-implementation-js/lib/logger';
|
|
16
|
-
import type
|
|
16
|
+
import type ThreadRowView from './platform-implementation-js/views/thread-row-view';
|
|
17
17
|
import TypedEventEmitter from 'typed-emitter';
|
|
18
18
|
import { MessageViewEvent } from './platform-implementation-js/views/conversations/message-view';
|
|
19
19
|
import type { ThreadViewEvents } from './platform-implementation-js/views/conversations/thread-view';
|
|
@@ -239,7 +239,7 @@ export interface Lists {
|
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
export {
|
|
242
|
-
|
|
242
|
+
default as ThreadRowView,
|
|
243
243
|
ImageDescriptor,
|
|
244
244
|
} from './platform-implementation-js/views/thread-row-view';
|
|
245
245
|
|
package/src/platform-implementation-js/dom-driver/gmail/views/gmail-route-view/gmail-route-view.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ declare class GmailRouteView {
|
|
|
15
15
|
_stopper: import("kefir-stopper").Stopper;
|
|
16
16
|
_rowListViews: GmailRowListView[];
|
|
17
17
|
_gmailRouteProcessor: GmailRouteProcessor;
|
|
18
|
-
_driver: GmailDriver;
|
|
19
18
|
_eventStream: Bus<{
|
|
20
19
|
eventName: 'newGmailRowListView';
|
|
21
20
|
view: GmailRowListView;
|
|
@@ -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;AASjF,cAAM,cAAc;;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,cAAc,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,QAAQ,kCAAkB;IAC1B,aAAa,EAAE,gBAAgB,EAAE,CAAC;IAClC,oBAAoB,EAAE,mBAAmB,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;AASjF,cAAM,cAAc;;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,cAAc,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,QAAQ,kCAAkB;IAC1B,aAAa,EAAE,gBAAgB,EAAE,CAAC;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AAc,EAAE,GAAG,GAClB,2BAA2B;IAiD9B,uBAAuB;IAUvB,qBAAqB;IAiBrB,2BAA2B;IAgB3B,cAAc;IA+Bd,sBAAsB,CAAC,cAAc,EAAE,WAAW;IAsGlD,kBAAkB;IAkJlB,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"}
|
|
@@ -52,11 +52,8 @@ type Mods = {
|
|
|
52
52
|
claimed: ReplacedDraftLabelMod[];
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
-
type Counts = {
|
|
56
|
-
messageCount: number;
|
|
57
|
-
draftCount: number;
|
|
58
|
-
};
|
|
59
55
|
declare class GmailThreadRowView {
|
|
56
|
+
#private;
|
|
60
57
|
_elements: HTMLElement[];
|
|
61
58
|
_modifications: Mods;
|
|
62
59
|
_alreadyHadModifications: boolean;
|
|
@@ -70,7 +67,6 @@ declare class GmailThreadRowView {
|
|
|
70
67
|
_refresher: Kefir.Observable<any, any> | null | undefined;
|
|
71
68
|
_subjectRefresher: Kefir.Observable<any, any> | null | undefined;
|
|
72
69
|
_imageRefresher: Kefir.Observable<any, any> | null | undefined;
|
|
73
|
-
_counts: Counts | null | undefined;
|
|
74
70
|
_isVertical: boolean;
|
|
75
71
|
_isDestroyed: boolean;
|
|
76
72
|
constructor(element: HTMLElement, rowListViewDriver: GmailRowListView, gmailDriver: GmailDriver);
|
|
@@ -88,7 +84,6 @@ declare class GmailThreadRowView {
|
|
|
88
84
|
*/
|
|
89
85
|
waitForReady(): Kefir.Observable<GmailThreadRowView, unknown>;
|
|
90
86
|
setUserView(userView: Record<string, any>): void;
|
|
91
|
-
getCounts(): Counts;
|
|
92
87
|
_expandColumn(colSelector: string, width: number): void;
|
|
93
88
|
addLabel(label: LabelDescriptor | null | Kefir.Observable<LabelDescriptor | null, unknown>): void;
|
|
94
89
|
addImage(inIconDescriptor: ImageDescriptor | Kefir.Observable<ImageDescriptor | null, any>): void;
|
package/src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-row-view.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gmail-thread-row-view.d.ts","sourceRoot":"","sources":["../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-row-view.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"gmail-thread-row-view.d.ts","sourceRoot":"","sources":["../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-row-view.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,qBAAqB,MAAM,qCAAqC,CAAC;AACxE,OAAO,KAAK,WAAW,MAAM,iBAAiB,CAAC;AAC/C,OAAO,K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AC;IAI/C,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC;IAIzC,UAAU,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAmBhD,oBAAoB,IAAI,MAAM;IAI9B,sBAAsB,IAAI,MAAM;IAIhC,WAAW,IAAI,OAAO,EAAE;IAUxB,UAAU,IAAI,OAAO;IAMrB,eAAe,IAAI,WAAW;IAS9B,gBAAgB,IAAI,WAAW;IAM/B,aAAa;IA0Bb,oBAAoB,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC;IAwBtD,2BAA2B,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC;CAmC9D;AAED,eAAe,kBAAkB,CAAC;AAClC,wBAAgB,wCAAwC,SAevD"}
|
|
@@ -5,7 +5,7 @@ import ContentPanelView from '../content-panel-view';
|
|
|
5
5
|
import type MessageView from './message-view';
|
|
6
6
|
import type { Driver, ThreadViewDriver } from '../../driver-interfaces/driver';
|
|
7
7
|
import type CustomMessageView from '../../views/conversations/custom-message-view';
|
|
8
|
-
import type { Contact
|
|
8
|
+
import type { Contact } from '../../../inboxsdk';
|
|
9
9
|
import type TypedEventEmitter from 'typed-emitter';
|
|
10
10
|
import { type ContentPanelDescriptor } from '../../driver-common/sidebar/ContentPanelViewDriver';
|
|
11
11
|
export type ThreadViewEvents = {
|
|
@@ -17,7 +17,7 @@ export type ThreadViewEvents = {
|
|
|
17
17
|
}): void;
|
|
18
18
|
};
|
|
19
19
|
declare const ThreadView_base: new () => TypedEventEmitter<ThreadViewEvents>;
|
|
20
|
-
declare class ThreadView extends ThreadView_base
|
|
20
|
+
declare class ThreadView extends ThreadView_base {
|
|
21
21
|
destroyed: boolean;
|
|
22
22
|
constructor(threadViewImplementation: ThreadViewDriver, appId: string, driver: Driver, membrane: Membrane);
|
|
23
23
|
addSidebarContentPanel(descriptor: ContentPanelDescriptor | Observable<ContentPanelDescriptor, unknown>): ContentPanelView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread-view.d.ts","sourceRoot":"","sources":["../../../../../../src/platform-implementation-js/views/conversations/thread-view.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,iBAAiB,MAAM,+BAA+B,CAAC;AAEnE,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,gBAAgB,MAAM,uBAAuB,CAAC;AAErD,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,iBAAiB,MAAM,+CAA+C,CAAC;AACnF,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"thread-view.d.ts","sourceRoot":"","sources":["../../../../../../src/platform-implementation-js/views/conversations/thread-view.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,iBAAiB,MAAM,+BAA+B,CAAC;AAEnE,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,gBAAgB,MAAM,uBAAuB,CAAC;AAErD,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,iBAAiB,MAAM,+CAA+C,CAAC;AACnF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AASjG,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,IAAI,IAAI,CAAC;IAChB,YAAY,CAAC,IAAI,EAAE;QACjB,WAAW,EAAE,WAAW,CAAC;QACzB,OAAO,EAAE,OAAO,CAAC;QACjB,UAAU,EAAE,UAAU,CAAC;KACxB,GAAG,IAAI,CAAC;CACV,CAAC;yCAIkD,kBAAkB,gBAAgB,CAAC;AAAvF,cAAM,UAAW,SAAQ,eAA+D;IACtF,SAAS,UAAS;gBAGhB,wBAAwB,EAAE,gBAAgB,EAC1C,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ;IAcpB,sBAAsB,CACpB,UAAU,EACN,sBAAsB,GACtB,UAAU,CAAC,sBAAsB,EAAE,OAAO,CAAC,GAC9C,gBAAgB;IAqBnB,YAAY,IAAI,iBAAiB;IAKjC,yCAAyC,CACvC,QAAQ,EAAE,CACR,0BAA0B,EAAE,MAAM,EAClC,0BAA0B,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACrD,cAAc,EAAE,OAAO,CAAC,IAAI,CAAC,KAC1B,WAAW;IAQlB,gBAAgB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,iBAAiB;IAYpE,eAAe,IAAI,KAAK,CAAC,WAAW,CAAC;IAQrC,kBAAkB,IAAI,KAAK,CAAC,WAAW,CAAC;IAOxC,UAAU,IAAI,MAAM;IAIpB,WAAW,IAAI,MAAM;IAUrB,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC;IAInC,QAAQ,IAAI,iBAAiB;CAG9B;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -11,47 +11,11 @@ export interface ImageDescriptor {
|
|
|
11
11
|
type EmitterType = TypedEventEmitter<{
|
|
12
12
|
destroy: () => void;
|
|
13
13
|
}>;
|
|
14
|
-
|
|
14
|
+
declare const ThreadRowView_base: new () => EmitterType;
|
|
15
|
+
export default class ThreadRowView extends ThreadRowView_base {
|
|
15
16
|
/**
|
|
16
17
|
* This property is set to true once the view is destroyed
|
|
17
18
|
*/
|
|
18
|
-
readonly destroyed: boolean;
|
|
19
|
-
addLabel(labelDescriptor: LabelDescriptor | Observable<LabelDescriptor | null, unknown> | null): void;
|
|
20
|
-
addAttachmentIcon(threadRowAttachmentIconDescriptor: any): void;
|
|
21
|
-
addImage(imageDescriptor: ImageDescriptor | Observable<ImageDescriptor | null, any>): void;
|
|
22
|
-
getElement(): HTMLElement;
|
|
23
|
-
getVisibleDraftCount(): number;
|
|
24
|
-
/** @deprecated */
|
|
25
|
-
getThreadIDIfStable(): string | null | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Gets the Gmail Thread ID of the thread only if the thread ID is stable. Some threads such as those with only a single Draft message in them will occasionally change their thread ID. If you're using the thread ID as a key, you may experience unexpected behavior if you're not careful about this fact. This method provides you with an easy way to tell if the thread has a stable ID.
|
|
28
|
-
*
|
|
29
|
-
* @return a Promise<String> for the thread ID if it is expected to stay the same, otherwise it will return a Promise<null>
|
|
30
|
-
*/
|
|
31
|
-
getThreadIDIfStableAsync(): Promise<string | null>;
|
|
32
|
-
addButton(threadRowButtonDescriptor: any): void;
|
|
33
|
-
/** @deprecated */
|
|
34
|
-
getThreadID(): string;
|
|
35
|
-
/**
|
|
36
|
-
* @returns a Promise<String> of the Gmail Thread ID of the thread
|
|
37
|
-
*/
|
|
38
|
-
getThreadIDAsync(): Promise<string>;
|
|
39
|
-
/**
|
|
40
|
-
* Returns a Promise<String> for the thread row's draft ID, if the thread row represents a single draft. Otherwise the promise may resolve to null.
|
|
41
|
-
*/
|
|
42
|
-
getDraftID(): Promise<string | null | undefined>;
|
|
43
|
-
replaceDate(threadDateDescriptor: ThreadDateDescriptor | null | Observable<ThreadDateDescriptor | null, any>): void;
|
|
44
|
-
getVisibleMessageCount(): number;
|
|
45
|
-
getSubject(): string;
|
|
46
|
-
replaceSubject(newSubjectStr: string): void;
|
|
47
|
-
getContacts(): Array<{
|
|
48
|
-
name: string | null;
|
|
49
|
-
emailAddress: string;
|
|
50
|
-
}>;
|
|
51
|
-
replaceDraftLabel(descriptor: DraftLabelDescriptor | null | Observable<DraftLabelDescriptor | null, any>): void;
|
|
52
|
-
};
|
|
53
|
-
declare const ThreadRowView_base: new () => EmitterType;
|
|
54
|
-
export default class ThreadRowView extends ThreadRowView_base implements IThreadRowView {
|
|
55
19
|
destroyed: boolean;
|
|
56
20
|
constructor(threadRowViewDriver: GmailThreadRowView);
|
|
57
21
|
addLabel(labelDescriptor: LabelDescriptor | null | Observable<LabelDescriptor | null, unknown>): void;
|
|
@@ -69,9 +33,12 @@ export default class ThreadRowView extends ThreadRowView_base implements IThread
|
|
|
69
33
|
getThreadID(): string;
|
|
70
34
|
getThreadIDAsync(): Promise<string>;
|
|
71
35
|
/** @deprecated */
|
|
72
|
-
getThreadIDIfStable(): string | null
|
|
36
|
+
getThreadIDIfStable(): string | null;
|
|
73
37
|
getThreadIDIfStableAsync(): Promise<null | string>;
|
|
74
38
|
getDraftID(): Promise<string | null | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* @returns the {number} of visible draft messages in the row. This is purely an estimate based on what is visible in the row.
|
|
41
|
+
*/
|
|
75
42
|
getVisibleDraftCount(): number;
|
|
76
43
|
getVisibleMessageCount(): number;
|
|
77
44
|
getContacts(): Contact[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread-row-view.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/views/thread-row-view.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,kBAAkB,MAAM,iDAAiD,CAAC;AAEtF,OAAO,KAAK,EACV,OAAO,EACP,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AAEnD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,KAAK,WAAW,GAAG,iBAAiB,CAAC;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"thread-row-view.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/views/thread-row-view.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,kBAAkB,MAAM,iDAAiD,CAAC;AAEtF,OAAO,KAAK,EACV,OAAO,EACP,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AAEnD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,KAAK,WAAW,GAAG,iBAAiB,CAAC;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC,CAAC;;AAO9D,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,kBAAuC;IAChF;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;gBAEP,mBAAmB,EAAE,kBAAkB;IAcnD,QAAQ,CACN,eAAe,EACX,eAAe,GACf,IAAI,GACJ,UAAU,CAAC,eAAe,GAAG,IAAI,EAAE,OAAO,CAAC;IAKjD,QAAQ,CACN,eAAe,EAAE,eAAe,GAAG,UAAU,CAAC,eAAe,GAAG,IAAI,EAAE,GAAG,CAAC;IAK5E,SAAS,CAAC,gBAAgB,EAAE,GAAG;IAI/B,eAAe,CAAC,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAM3D,iBAAiB,CAAC,iCAAiC,EAAE,MAAM,CAAC,MAAM,EAAE,G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