@inboxsdk/core 2.1.34 → 2.1.36
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 +65 -76
- package/package.json +1 -1
- package/src/inboxsdk.d.ts +2 -2
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-collapsible-section-view.d.ts +20 -2
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-collapsible-section-view.d.ts.map +1 -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 +9 -8
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-row-view.d.ts.map +1 -1
- package/src/platform-implementation-js/views/collapsible-section-view.d.ts +11 -2
- package/src/platform-implementation-js/views/collapsible-section-view.d.ts.map +1 -1
- package/src/platform-implementation-js/views/section-view.d.ts +4 -2
- package/src/platform-implementation-js/views/section-view.d.ts.map +1 -1
package/inboxsdk.js
CHANGED
|
@@ -875,7 +875,7 @@ function isElementVisible(el) {
|
|
|
875
875
|
|
|
876
876
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- SDK_VERSION is injected by webpack
|
|
877
877
|
///@ts-ignore
|
|
878
|
-
const BUILD_VERSION = "2.1.
|
|
878
|
+
const BUILD_VERSION = "2.1.36-1709734898365-8d7c09f56e6cda19-MODIFIED";
|
|
879
879
|
if (false) {}
|
|
880
880
|
|
|
881
881
|
/***/ }),
|
|
@@ -7955,8 +7955,7 @@ class GmailThreadRowView {
|
|
|
7955
7955
|
}
|
|
7956
7956
|
const prop = kefir_cast_default()(kefir_esm, label).takeUntilBy(this._stopper).toProperty();
|
|
7957
7957
|
let labelMod = null;
|
|
7958
|
-
prop.combine(this._getRefresher()).takeUntilBy(this._stopper).onValue(
|
|
7959
|
-
let [labelDescriptor] = _ref;
|
|
7958
|
+
prop.combine(this._getRefresher(), (value, _ignored) => value).takeUntilBy(this._stopper).onValue(labelDescriptor => {
|
|
7960
7959
|
if (!labelDescriptor) {
|
|
7961
7960
|
if (labelMod) {
|
|
7962
7961
|
labelMod.remove();
|
|
@@ -7991,10 +7990,11 @@ class GmailThreadRowView {
|
|
|
7991
7990
|
console.warn('addImage called on destroyed thread row');
|
|
7992
7991
|
return;
|
|
7993
7992
|
}
|
|
7994
|
-
const prop = kefir_cast_default()(kefir_esm, inIconDescriptor).toProperty().combine(kefir_esm.merge([this._getRefresher(), this._getSubjectRefresher(), this._getImageContainerRefresher()])
|
|
7993
|
+
const prop = kefir_cast_default()(kefir_esm, inIconDescriptor).toProperty().combine(kefir_esm.merge([this._getRefresher(), this._getSubjectRefresher(), this._getImageContainerRefresher()]), function (value) {
|
|
7994
|
+
return value;
|
|
7995
|
+
}).takeUntilBy(this._stopper);
|
|
7995
7996
|
let imageMod = null;
|
|
7996
|
-
prop.onValue(
|
|
7997
|
-
let [iconDescriptor] = _ref2;
|
|
7997
|
+
prop.onValue(iconDescriptor => {
|
|
7998
7998
|
if (!iconDescriptor) {
|
|
7999
7999
|
if (imageMod) {
|
|
8000
8000
|
imageMod.remove();
|
|
@@ -8058,8 +8058,7 @@ class GmailThreadRowView {
|
|
|
8058
8058
|
buttonMod.buttonSpan.onclick = null;
|
|
8059
8059
|
}
|
|
8060
8060
|
});
|
|
8061
|
-
prop.combine(this._getRefresher()).onValue(
|
|
8062
|
-
let [_buttonDescriptor] = _ref3;
|
|
8061
|
+
prop.combine(this._getRefresher(), (value, _ignored) => value).onValue(_buttonDescriptor => {
|
|
8063
8062
|
const buttonDescriptor = _buttonDescriptor;
|
|
8064
8063
|
if (!buttonDescriptor) {
|
|
8065
8064
|
if (buttonMod) {
|
|
@@ -8243,8 +8242,7 @@ class GmailThreadRowView {
|
|
|
8243
8242
|
var added = false;
|
|
8244
8243
|
var currentIconUrl;
|
|
8245
8244
|
var prop = kefir_cast_default()(kefir_esm, opts).toProperty();
|
|
8246
|
-
prop.combine(this._getRefresher()).takeUntilBy(this._stopper).onValue(
|
|
8247
|
-
let [opts] = _ref4;
|
|
8245
|
+
prop.combine(this._getRefresher(), (value, _ignored) => value).takeUntilBy(this._stopper).onValue(opts => {
|
|
8248
8246
|
const attachmentDiv = (0,querySelectorOrFail/* default */.Z)(this._elements[0], 'td.yf.xY');
|
|
8249
8247
|
if (!opts) {
|
|
8250
8248
|
if (added) {
|
|
@@ -8308,8 +8306,7 @@ class GmailThreadRowView {
|
|
|
8308
8306
|
let labelMod;
|
|
8309
8307
|
let draftElement, countElement;
|
|
8310
8308
|
const prop = kefir_cast_default()(kefir_esm, opts).toProperty();
|
|
8311
|
-
prop.combine(this._getRefresher()).takeUntilBy(this._stopper).onValue(
|
|
8312
|
-
let [opts] = _ref5;
|
|
8309
|
+
prop.combine(this._getRefresher(), (value, _ignored) => value).takeUntilBy(this._stopper).onValue(opts => {
|
|
8313
8310
|
const originalLabel = (0,querySelectorOrFail/* default */.Z)(this._elements[0], 'td > div.yW');
|
|
8314
8311
|
const recipientsContainer = originalLabel.parentElement;
|
|
8315
8312
|
if (!recipientsContainer) throw new Error('Should not happen');
|
|
@@ -8378,8 +8375,7 @@ class GmailThreadRowView {
|
|
|
8378
8375
|
}
|
|
8379
8376
|
let dateMod;
|
|
8380
8377
|
const prop = kefir_cast_default()(kefir_esm, opts).toProperty();
|
|
8381
|
-
prop.combine(this._getRefresher()).takeUntilBy(this._stopper).onValue(
|
|
8382
|
-
let [opts] = _ref6;
|
|
8378
|
+
prop.combine(this._getRefresher(), (value, _ignored) => value).takeUntilBy(this._stopper).onValue(opts => {
|
|
8383
8379
|
const dateContainer = (0,querySelectorOrFail/* default */.Z)(this._elements[0], 'td.xW, td.yf > div.apm');
|
|
8384
8380
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8385
8381
|
const originalDateSpan = dateContainer.firstElementChild;
|
|
@@ -10590,7 +10586,7 @@ options.insert = htmlElement => {
|
|
|
10590
10586
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
10591
10587
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
10592
10588
|
///@ts-ignore
|
|
10593
|
-
"2.1.
|
|
10589
|
+
"2.1.36-1709734898365-8d7c09f56e6cda19-MODIFIED");
|
|
10594
10590
|
document.head.append(htmlElement);
|
|
10595
10591
|
};
|
|
10596
10592
|
options.domAPI = (styleDomAPI_default());
|
|
@@ -12092,21 +12088,22 @@ class CollapsibleSectionView extends safe_event_emitter/* default */.Z {
|
|
|
12092
12088
|
}
|
|
12093
12089
|
}
|
|
12094
12090
|
function _bindToEventStream(collapsibleSectionView, collapsibleSectionViewDriver, driver) {
|
|
12095
|
-
collapsibleSectionViewDriver.
|
|
12096
|
-
|
|
12091
|
+
collapsibleSectionViewDriver.eventStream.onValue(event => {
|
|
12092
|
+
if (!('eventName' in event)) {
|
|
12093
|
+
return;
|
|
12094
|
+
}
|
|
12095
|
+
const {
|
|
12097
12096
|
eventName
|
|
12098
|
-
} =
|
|
12097
|
+
} = event;
|
|
12099
12098
|
collapsibleSectionView.emit(eventName);
|
|
12100
12099
|
});
|
|
12101
|
-
collapsibleSectionViewDriver.
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
}
|
|
12105
|
-
|
|
12106
|
-
}).onValue(_ref3 => {
|
|
12107
|
-
let {
|
|
12100
|
+
collapsibleSectionViewDriver.eventStream.onValue(event => {
|
|
12101
|
+
if (!('eventName' in event) || event.eventName !== 'rowClicked') {
|
|
12102
|
+
return;
|
|
12103
|
+
}
|
|
12104
|
+
const {
|
|
12108
12105
|
rowDescriptor
|
|
12109
|
-
} =
|
|
12106
|
+
} = event;
|
|
12110
12107
|
if (rowDescriptor.routeID) {
|
|
12111
12108
|
driver.goto(rowDescriptor.routeID, rowDescriptor.routeParams);
|
|
12112
12109
|
}
|
|
@@ -12114,33 +12111,29 @@ function _bindToEventStream(collapsibleSectionView, collapsibleSectionViewDriver
|
|
|
12114
12111
|
rowDescriptor.onClick();
|
|
12115
12112
|
}
|
|
12116
12113
|
});
|
|
12117
|
-
collapsibleSectionViewDriver.
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
}
|
|
12121
|
-
|
|
12122
|
-
}).onValue(_ref5 => {
|
|
12123
|
-
let {
|
|
12114
|
+
collapsibleSectionViewDriver.eventStream.onValue(event => {
|
|
12115
|
+
if (!('eventName' in event) || event.eventName !== 'titleLinkClicked') {
|
|
12116
|
+
return;
|
|
12117
|
+
}
|
|
12118
|
+
const {
|
|
12124
12119
|
sectionDescriptor
|
|
12125
|
-
} =
|
|
12120
|
+
} = event;
|
|
12126
12121
|
if (sectionDescriptor.onTitleLinkClick) {
|
|
12127
12122
|
sectionDescriptor.onTitleLinkClick(collapsibleSectionView);
|
|
12128
12123
|
}
|
|
12129
12124
|
});
|
|
12130
|
-
collapsibleSectionViewDriver.
|
|
12131
|
-
|
|
12132
|
-
|
|
12133
|
-
}
|
|
12134
|
-
|
|
12135
|
-
}).onValue(_ref7 => {
|
|
12136
|
-
let {
|
|
12125
|
+
collapsibleSectionViewDriver.eventStream.onValue(event => {
|
|
12126
|
+
if (!('eventName' in event) || event.eventName !== 'footerClicked') {
|
|
12127
|
+
return;
|
|
12128
|
+
}
|
|
12129
|
+
const {
|
|
12137
12130
|
sectionDescriptor
|
|
12138
|
-
} =
|
|
12131
|
+
} = event;
|
|
12139
12132
|
if (sectionDescriptor.onFooterLinkClick) {
|
|
12140
12133
|
sectionDescriptor.onFooterLinkClick(collapsibleSectionView);
|
|
12141
12134
|
}
|
|
12142
12135
|
});
|
|
12143
|
-
collapsibleSectionViewDriver.
|
|
12136
|
+
collapsibleSectionViewDriver.eventStream.onEnd(() => {
|
|
12144
12137
|
collapsibleSectionView.destroyed = true;
|
|
12145
12138
|
collapsibleSectionView.emit('destroy');
|
|
12146
12139
|
});
|
|
@@ -12174,18 +12167,18 @@ class SectionView extends safe_event_emitter/* default */.Z {
|
|
|
12174
12167
|
}
|
|
12175
12168
|
}
|
|
12176
12169
|
function section_view_bindToEventStream(sectionView, sectionViewDriver, driver) {
|
|
12177
|
-
sectionViewDriver.
|
|
12178
|
-
|
|
12170
|
+
sectionViewDriver.eventStream.onValue(e => {
|
|
12171
|
+
if (e != null && 'eventName' in e) {
|
|
12172
|
+
sectionView.emit(e.eventName);
|
|
12173
|
+
}
|
|
12179
12174
|
});
|
|
12180
|
-
sectionViewDriver.
|
|
12181
|
-
|
|
12182
|
-
|
|
12183
|
-
}
|
|
12184
|
-
|
|
12185
|
-
}).onValue(_ref2 => {
|
|
12186
|
-
let {
|
|
12175
|
+
sectionViewDriver.eventStream.onValue(event => {
|
|
12176
|
+
if (!('eventName' in event) || event.eventName !== 'rowClicked') {
|
|
12177
|
+
return;
|
|
12178
|
+
}
|
|
12179
|
+
const {
|
|
12187
12180
|
rowDescriptor
|
|
12188
|
-
} =
|
|
12181
|
+
} = event;
|
|
12189
12182
|
if (rowDescriptor.routeID) {
|
|
12190
12183
|
driver.goto(rowDescriptor.routeID, rowDescriptor.routeParams);
|
|
12191
12184
|
}
|
|
@@ -12193,33 +12186,29 @@ function section_view_bindToEventStream(sectionView, sectionViewDriver, driver)
|
|
|
12193
12186
|
rowDescriptor.onClick();
|
|
12194
12187
|
}
|
|
12195
12188
|
});
|
|
12196
|
-
sectionViewDriver.
|
|
12197
|
-
|
|
12198
|
-
|
|
12199
|
-
}
|
|
12200
|
-
|
|
12201
|
-
}).onValue(_ref4 => {
|
|
12202
|
-
let {
|
|
12189
|
+
sectionViewDriver.eventStream.onValue(event => {
|
|
12190
|
+
if (!('eventName' in event) || event.eventName !== 'titleLinkClicked') {
|
|
12191
|
+
return;
|
|
12192
|
+
}
|
|
12193
|
+
const {
|
|
12203
12194
|
sectionDescriptor
|
|
12204
|
-
} =
|
|
12195
|
+
} = event;
|
|
12205
12196
|
if (sectionDescriptor.onTitleLinkClick) {
|
|
12206
12197
|
sectionDescriptor.onTitleLinkClick(sectionView);
|
|
12207
12198
|
}
|
|
12208
12199
|
});
|
|
12209
|
-
sectionViewDriver.
|
|
12210
|
-
|
|
12211
|
-
|
|
12212
|
-
}
|
|
12213
|
-
|
|
12214
|
-
}).onValue(_ref6 => {
|
|
12215
|
-
let {
|
|
12200
|
+
sectionViewDriver.eventStream.onValue(event => {
|
|
12201
|
+
if (!('eventName' in event) || event.eventName !== 'footerClicked') {
|
|
12202
|
+
return;
|
|
12203
|
+
}
|
|
12204
|
+
const {
|
|
12216
12205
|
sectionDescriptor
|
|
12217
|
-
} =
|
|
12218
|
-
if (sectionDescriptor
|
|
12206
|
+
} = event;
|
|
12207
|
+
if (sectionDescriptor?.onFooterLinkClick) {
|
|
12219
12208
|
sectionDescriptor.onFooterLinkClick(sectionView);
|
|
12220
12209
|
}
|
|
12221
12210
|
});
|
|
12222
|
-
sectionViewDriver.
|
|
12211
|
+
sectionViewDriver.eventStream.onEnd(() => {
|
|
12223
12212
|
sectionView.destroyed = true;
|
|
12224
12213
|
sectionView.emit('destroy');
|
|
12225
12214
|
});
|
|
@@ -15320,7 +15309,7 @@ options.insert = htmlElement => {
|
|
|
15320
15309
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
15321
15310
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
15322
15311
|
///@ts-ignore
|
|
15323
|
-
"2.1.
|
|
15312
|
+
"2.1.36-1709734898365-8d7c09f56e6cda19-MODIFIED");
|
|
15324
15313
|
document.head.append(htmlElement);
|
|
15325
15314
|
};
|
|
15326
15315
|
options.domAPI = (styleDomAPI_default());
|
|
@@ -15396,7 +15385,7 @@ class GmailCollapsibleSectionView {
|
|
|
15396
15385
|
if (!element) throw new Error('tried to access element that does not exist');
|
|
15397
15386
|
return element;
|
|
15398
15387
|
}
|
|
15399
|
-
|
|
15388
|
+
get eventStream() {
|
|
15400
15389
|
return this.#eventStream;
|
|
15401
15390
|
}
|
|
15402
15391
|
setCollapsibleSectionDescriptorProperty(collapsibleSectionDescriptorProperty) {
|
|
@@ -16162,8 +16151,8 @@ class GmailRouteView {
|
|
|
16162
16151
|
#addCollapsibleSection(collapsibleSectionDescriptorProperty, groupOrderHint, isCollapsible) {
|
|
16163
16152
|
this._hasAddedCollapsibleSection = true;
|
|
16164
16153
|
var gmailResultsSectionView = new gmail_collapsible_section_view(this.#driver, groupOrderHint, this.getRouteID() === this._gmailRouteProcessor.NativeRouteIDs.SEARCH, isCollapsible);
|
|
16165
|
-
kefir_esm.combine([this.#getSectionsContainer(), gmailResultsSectionView.
|
|
16166
|
-
return event.type === 'update' && event.property === 'orderHint';
|
|
16154
|
+
kefir_esm.combine([this.#getSectionsContainer(), gmailResultsSectionView.eventStream.filter(event => {
|
|
16155
|
+
return 'type' in event && event.type === 'update' && event.property === 'orderHint';
|
|
16167
16156
|
})]).onValue(_ref2 => {
|
|
16168
16157
|
let [sectionsContainer] = _ref2;
|
|
16169
16158
|
const children = sectionsContainer.children;
|
|
@@ -19410,7 +19399,7 @@ mole_view_module_options.insert = htmlElement => {
|
|
|
19410
19399
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
19411
19400
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
19412
19401
|
///@ts-ignore
|
|
19413
|
-
"2.1.
|
|
19402
|
+
"2.1.36-1709734898365-8d7c09f56e6cda19-MODIFIED");
|
|
19414
19403
|
document.head.append(htmlElement);
|
|
19415
19404
|
};
|
|
19416
19405
|
mole_view_module_options.domAPI = (styleDomAPI_default());
|
package/package.json
CHANGED
package/src/inboxsdk.d.ts
CHANGED
|
@@ -410,7 +410,7 @@ export interface SectionDescriptor {
|
|
|
410
410
|
/** Link to display in the summary area of the {@link SectionView}. Typically page counts are displayed here. */
|
|
411
411
|
titleLinkText?: string;
|
|
412
412
|
/** A function to call when the title link has been clicked. */
|
|
413
|
-
onTitleLinkClick?(e:
|
|
413
|
+
onTitleLinkClick?(e: CollapsibleSectionView | SectionView): void;
|
|
414
414
|
/** Whether to display a dropdown arrow for more options on the collapsible section. */
|
|
415
415
|
hasDropdown?: boolean;
|
|
416
416
|
/**
|
|
@@ -424,7 +424,7 @@ export interface SectionDescriptor {
|
|
|
424
424
|
/** A link to place in the footer of the {@link SectionView}. */
|
|
425
425
|
footerLinkText?: string;
|
|
426
426
|
/** A function to call when the link in the footer is clicked. */
|
|
427
|
-
onFooterLinkClick?(e:
|
|
427
|
+
onFooterLinkClick?(e: CollapsibleSectionView | SectionView): void;
|
|
428
428
|
/** @internal */
|
|
429
429
|
orderHint?: unknown;
|
|
430
430
|
/** @internal */
|
package/src/platform-implementation-js/dom-driver/gmail/views/gmail-collapsible-section-view.d.ts
CHANGED
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
import * as Kefir from 'kefir';
|
|
2
2
|
import type { Bus } from 'kefir-bus';
|
|
3
3
|
import type GmailDriver from '../gmail-driver';
|
|
4
|
-
import type { SectionDescriptor } from '../../../../inboxsdk';
|
|
4
|
+
import type { RowDescriptor, SectionDescriptor } from '../../../../inboxsdk';
|
|
5
|
+
type ViewEvent = {
|
|
6
|
+
type: 'update';
|
|
7
|
+
property: 'orderHint';
|
|
8
|
+
sectionDescriptor?: SectionDescriptor;
|
|
9
|
+
} | {
|
|
10
|
+
eventName: 'titleLinkClicked';
|
|
11
|
+
sectionDescriptor: SectionDescriptor;
|
|
12
|
+
} | {
|
|
13
|
+
eventName: 'rowClicked';
|
|
14
|
+
rowDescriptor: RowDescriptor;
|
|
15
|
+
} | {
|
|
16
|
+
eventName: 'footerClicked';
|
|
17
|
+
sectionDescriptor: SectionDescriptor;
|
|
18
|
+
} | {
|
|
19
|
+
eventName: 'collapsed';
|
|
20
|
+
} | {
|
|
21
|
+
eventName: 'expanded';
|
|
22
|
+
};
|
|
5
23
|
declare class GmailCollapsibleSectionView {
|
|
6
24
|
#private;
|
|
7
25
|
constructor(driver: GmailDriver, groupOrderHint: number, isSearch: boolean, isCollapsible: boolean);
|
|
8
26
|
destroy(): void;
|
|
9
27
|
getElement(): HTMLElement;
|
|
10
|
-
|
|
28
|
+
get eventStream(): Bus<ViewEvent, unknown>;
|
|
11
29
|
setCollapsibleSectionDescriptorProperty(collapsibleSectionDescriptorProperty: Kefir.Observable<SectionDescriptor | null | undefined, unknown>): void;
|
|
12
30
|
setCollapsed(value: boolean): void;
|
|
13
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gmail-collapsible-section-view.d.ts","sourceRoot":"","sources":["../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-collapsible-section-view.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAOrC,OAAO,KAAK,WAAW,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"gmail-collapsible-section-view.d.ts","sourceRoot":"","sources":["../../../../../../../src/platform-implementation-js/dom-driver/gmail/views/gmail-collapsible-section-view.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAOrC,OAAO,KAAK,WAAW,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,EAEV,aAAa,EACb,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAoB9B,KAAK,SAAS,GACV;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,WAAW,CAAC;IACtB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC,GACD;IACE,SAAS,EAAE,kBAAkB,CAAC;IAC9B,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,GACD;IACE,SAAS,EAAE,YAAY,CAAC;IACxB,aAAa,EAAE,aAAa,CAAC;CAC9B,GACD;IACE,SAAS,EAAE,eAAe,CAAC;IAC3B,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,GACD;IACE,SAAS,EAAE,WAAW,CAAC;CACxB,GACD;IACE,SAAS,EAAE,UAAU,CAAC;CACvB,CAAC;AAEN,cAAM,2BAA2B;;gBAuB7B,MAAM,EAAE,WAAW,EACnB,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,OAAO,EACjB,aAAa,EAAE,OAAO;IAUxB,OAAO;IAqBP,UAAU,IAAI,WAAW;IAOzB,IAAI,WAAW,4BAEd;IAED,uCAAuC,CACrC,oCAAoC,EAAE,KAAK,CAAC,UAAU,CACpD,iBAAiB,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,CACR;IAcH,YAAY,CAAC,KAAK,EAAE,OAAO;CAutB5B;AAqID,eAAe,2BAA2B,CAAC"}
|
|
@@ -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;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,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,QAAQ,kCAAkB;I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GACrB,2BAA2B;
|
|
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,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,QAAQ,kCAAkB;IAC1B,aAAa,EAAE,gBAAgB,EAAE,CAAC;IAClC,oBAAoB,EAAE,mBAAmB,CAAC;IAE1C,YAAY,EAAE,GAAG,CACb;QAAE,SAAS,EAAE,qBAAqB,CAAC;QAAC,IAAI,EAAE,gBAAgB,CAAA;KAAE,GAC5D;QACE,SAAS,EAAE,oBAAoB,CAAC;QAChC,IAAI,EAAE,eAAe,CAAC;KACvB,EACH,OAAO,CACR,CAAC;IACF,kBAAkB,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IACnD,WAAW,EAAE,eAAe,GAAG,IAAI,GAAG,SAAS,CAAC;IAChD,2BAA2B,EAAE,OAAO,CAAC;IACrC,gBAA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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"}
|
|
@@ -2,6 +2,7 @@ import * as Kefir from 'kefir';
|
|
|
2
2
|
import GmailActionButtonView from '../widgets/gmail-action-button-view';
|
|
3
3
|
import type GmailDriver from '../gmail-driver';
|
|
4
4
|
import type GmailRowListView from './gmail-row-list-view';
|
|
5
|
+
import { IconSettings } from '../../../driver-common/update-icon';
|
|
5
6
|
import type { Contact, ImageDescriptor, LabelDescriptor, ThreadDateDescriptor } from '../../../../inboxsdk';
|
|
6
7
|
type LabelMod = {
|
|
7
8
|
gmailLabelView: Record<string, any>;
|
|
@@ -13,11 +14,11 @@ type ActionButtonMod = {
|
|
|
13
14
|
};
|
|
14
15
|
type ButtonMod = {
|
|
15
16
|
buttonSpan: HTMLElement;
|
|
16
|
-
iconSettings:
|
|
17
|
+
iconSettings: IconSettings;
|
|
17
18
|
remove(): void;
|
|
18
19
|
};
|
|
19
20
|
type ImageMod = {
|
|
20
|
-
iconSettings:
|
|
21
|
+
iconSettings: IconSettings;
|
|
21
22
|
iconWrapper: HTMLElement;
|
|
22
23
|
remove(): void;
|
|
23
24
|
};
|
|
@@ -64,9 +65,9 @@ declare class GmailThreadRowView {
|
|
|
64
65
|
_cachedSyncThreadID: string | null | undefined;
|
|
65
66
|
_cachedSyncDraftIDPromise: Promise<string | null | undefined> | null | undefined;
|
|
66
67
|
_stopper: import("kefir-stopper").Stopper;
|
|
67
|
-
_refresher: Kefir.Observable<
|
|
68
|
-
_subjectRefresher: Kefir.Observable<
|
|
69
|
-
_imageRefresher: Kefir.Observable<
|
|
68
|
+
_refresher: Kefir.Observable<null, any> | null | undefined;
|
|
69
|
+
_subjectRefresher: Kefir.Observable<null, any> | null | undefined;
|
|
70
|
+
_imageRefresher: Kefir.Observable<null, any> | null | undefined;
|
|
70
71
|
_isVertical: boolean;
|
|
71
72
|
_isDestroyed: boolean;
|
|
72
73
|
constructor(element: HTMLElement, rowListViewDriver: GmailRowListView, gmailDriver: GmailDriver);
|
|
@@ -115,9 +116,9 @@ declare class GmailThreadRowView {
|
|
|
115
116
|
isSelected(): boolean;
|
|
116
117
|
_getLabelParent(): HTMLElement;
|
|
117
118
|
_getWatchElement(): HTMLElement;
|
|
118
|
-
_getRefresher(): Kefir.Observable<
|
|
119
|
-
_getSubjectRefresher(): Kefir.Observable<
|
|
120
|
-
_getImageContainerRefresher(): Kefir.Observable<
|
|
119
|
+
_getRefresher(): Kefir.Observable<null, any>;
|
|
120
|
+
_getSubjectRefresher(): Kefir.Observable<null, unknown>;
|
|
121
|
+
_getImageContainerRefresher(): Kefir.Observable<null, unknown>;
|
|
121
122
|
}
|
|
122
123
|
export default GmailThreadRowView;
|
|
123
124
|
export declare function removeAllThreadRowUnclaimedModifications(): 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;AAa/B,OAAO,qBAAqB,MAAM,qCAAqC,CAAC;AACxE,OAAO,KAAK,WAAW,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,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,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAC1D,OAAmB,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,EACV,OAAO,EACP,eAAe,EACf,eAAe,EACf,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAG9B,KAAK,QAAQ,GAAG;IACd,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,MAAM,IAAI,IAAI,CAAC;CAChB,CAAC;AACF,KAAK,eAAe,GAAG;IACrB,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,MAAM,IAAI,IAAI,CAAC;CAChB,CAAC;AACF,KAAK,SAAS,GAAG;IACf,UAAU,EAAE,WAAW,CAAC;IACxB,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,IAAI,IAAI,CAAC;CAChB,CAAC;AACF,KAAK,QAAQ,GAAG;IACd,YAAY,EAAE,YAAY,CAAC;IAC3B,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,IAAI,IAAI,CAAC;CAChB,CAAC;AACF,KAAK,eAAe,GAAG;IACrB,EAAE,EAAE,WAAW,CAAC;IAChB,MAAM,IAAI,IAAI,CAAC;CAChB,CAAC;AACF,KAAK,qBAAqB,GAAG,eAAe,CAAC;AAC7C,KAAK,IAAI,GAAG;IACV,KAAK,EAAE;QACL,SAAS,EAAE,QAAQ,EAAE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AAU,CAAC,oBAAoB,GAAG,IAAI,EAAE,GAAG,CAAC;IAgFxD,cAAc;IAId,UAAU;IAIV,UAAU,IAAI,MAAM;IAIpB,mBAAmB,IAAI,WAAW;IASlC,cAAc,CAAC,aAAa,EAAE,MAAM;IAQpC,aAAa,IAAI,MAAM;IAOvB,cAAc,IAAI,OAAO;IAIzB,YAAY,IAAI,MAAM,GAAG,IAAI,GAAG,SAAS;IAwCzC,WAAW,IAAI,MAAM;IAUrB;;;OAGG;IACH,eAAe,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;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,IAAI,EAAE,OAAO,CAAC;IAwBvD,2BAA2B,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC;CAmC/D;AAED,eAAe,kBAAkB,CAAC;AAClC,wBAAgB,wCAAwC,SAevD"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import EventEmitter from '../lib/safe-event-emitter';
|
|
2
1
|
import type { Driver } from '../driver-interfaces/driver';
|
|
3
2
|
import type GmailCollapsibleSectionView from '../dom-driver/gmail/views/gmail-collapsible-section-view';
|
|
3
|
+
import TypedEventEmitter from 'typed-emitter';
|
|
4
|
+
export type ViewEvent = {
|
|
5
|
+
collapsed(): void;
|
|
6
|
+
destroy(): void;
|
|
7
|
+
expanded(): void;
|
|
8
|
+
footerClicked(): void;
|
|
9
|
+
rowClicked(): void;
|
|
10
|
+
titleLinkClicked(): void;
|
|
11
|
+
};
|
|
12
|
+
declare const CollapsibleSectionView_base: new () => TypedEventEmitter<ViewEvent>;
|
|
4
13
|
/**
|
|
5
14
|
* {@link CollapsibleSectionView}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 {@link CollapsibleSectionView} is rendered in. For example, {@link CollapsibleSectionViews} rendered on search results pages use different header styles to match Gmail's style more accurately.
|
|
6
15
|
|
|
@@ -9,7 +18,7 @@ import type GmailCollapsibleSectionView from '../dom-driver/gmail/views/gmail-co
|
|
|
9
18
|
* @see ListRouteView.addCollapsibleSection for more information.
|
|
10
19
|
* @todo the docs mention this class extending SectionView. That doesn't seem to be the case.
|
|
11
20
|
*/
|
|
12
|
-
declare class CollapsibleSectionView extends
|
|
21
|
+
declare class CollapsibleSectionView extends CollapsibleSectionView_base {
|
|
13
22
|
#private;
|
|
14
23
|
/** This property is set to true once the view is destroyed. */
|
|
15
24
|
destroyed: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible-section-view.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/views/collapsible-section-view.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collapsible-section-view.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/views/collapsible-section-view.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,2BAA2B,MAAM,0DAA0D,CAAC;AACxG,OAAO,iBAAiB,MAAM,eAAe,CAAC;AAE9C,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,IAAI,IAAI,CAAC;IAClB,OAAO,IAAI,IAAI,CAAC;IAChB,QAAQ,IAAI,IAAI,CAAC;IACjB,aAAa,IAAI,IAAI,CAAC;IACtB,UAAU,IAAI,IAAI,CAAC;IACnB,gBAAgB,IAAI,IAAI,CAAC;CAC1B,CAAC;qDAU8D,kBAAkB,SAAS,CAAC;AAR5F;;;;;;;EAOE;AACF,cAAM,sBAAuB,SAAQ,2BAAwD;;IAC3F,+DAA+D;IAC/D,SAAS,EAAE,OAAO,CAAC;gBAIjB,4BAA4B,EAAE,2BAA2B,EACzD,MAAM,EAAE,MAAM;IAShB,YAAY,CAAC,KAAK,EAAE,OAAO;IAI3B,kDAAkD;IAClD,MAAM;IAIN,OAAO;CAIR;AA0DD,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import EventEmitter from '../lib/safe-event-emitter';
|
|
2
1
|
import type { Driver } from '../driver-interfaces/driver';
|
|
3
2
|
import type GmailCollapsibleSectionView from '../dom-driver/gmail/views/gmail-collapsible-section-view';
|
|
3
|
+
import type TypedEventEmitter from 'typed-emitter';
|
|
4
|
+
import type { ViewEvent } from './collapsible-section-view';
|
|
5
|
+
declare const SectionView_base: new () => TypedEventEmitter<ViewEvent>;
|
|
4
6
|
/**
|
|
5
7
|
* {@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
8
|
|
|
7
9
|
* 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
10
|
*/
|
|
9
|
-
declare class SectionView extends
|
|
11
|
+
declare class SectionView extends SectionView_base {
|
|
10
12
|
#private;
|
|
11
13
|
destroyed: boolean;
|
|
12
14
|
constructor(sectionViewDriver: GmailCollapsibleSectionView, driver: Driver);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-view.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/views/section-view.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"section-view.d.ts","sourceRoot":"","sources":["../../../../../src/platform-implementation-js/views/section-view.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,2BAA2B,MAAM,0DAA0D,CAAC;AACxG,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;0CAOP,kBAAkB,SAAS,CAAC;AALjF;;;;GAIG;AACH,cAAM,WAAY,SAAQ,gBAAwD;;IAChF,SAAS,EAAE,OAAO,CAAC;gBAGP,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,EAAE,MAAM;IAQ1E;;OAEG;IACH,MAAM;IAIN,OAAO;CAIR;AAwDD,eAAe,WAAW,CAAC"}
|