@inboxsdk/core 2.2.1 → 2.2.3
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 +26 -10
- package/inboxsdk.js.map +1 -1
- package/package.json +1 -1
- package/pageWorld.js.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/gmail-driver/show-custom-thread-list.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/widgets/gmail-mole-view-driver.d.ts.map +1 -1
- package/src/platform-implementation-js/views/conversations/message-view.d.ts +1 -0
- package/src/platform-implementation-js/views/conversations/message-view.d.ts.map +1 -1
package/inboxsdk.js
CHANGED
|
@@ -371,7 +371,7 @@ function isNotNil(value) {
|
|
|
371
371
|
|
|
372
372
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- SDK_VERSION is injected by webpack
|
|
373
373
|
///@ts-ignore
|
|
374
|
-
const BUILD_VERSION = "2.2.
|
|
374
|
+
const BUILD_VERSION = "2.2.3-1746822574041-e78a04d73908410d";
|
|
375
375
|
if (false) {}
|
|
376
376
|
|
|
377
377
|
/***/ }),
|
|
@@ -2646,7 +2646,7 @@ options.insert = htmlElement => {
|
|
|
2646
2646
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
2647
2647
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
2648
2648
|
///@ts-ignore
|
|
2649
|
-
"2.2.
|
|
2649
|
+
"2.2.3-1746822574041-e78a04d73908410d");
|
|
2650
2650
|
document.head.append(htmlElement);
|
|
2651
2651
|
};
|
|
2652
2652
|
options.domAPI = (styleDomAPI_default());
|
|
@@ -10291,7 +10291,7 @@ options.insert = htmlElement => {
|
|
|
10291
10291
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
10292
10292
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
10293
10293
|
///@ts-ignore
|
|
10294
|
-
"2.2.
|
|
10294
|
+
"2.2.3-1746822574041-e78a04d73908410d");
|
|
10295
10295
|
document.head.append(htmlElement);
|
|
10296
10296
|
};
|
|
10297
10297
|
options.domAPI = (styleDomAPI_default());
|
|
@@ -12305,6 +12305,9 @@ class MessageView extends safe_event_emitter/* default */.A {
|
|
|
12305
12305
|
}
|
|
12306
12306
|
this.#messageViewImplementation.addMoreMenuItem(buttonOptions);
|
|
12307
12307
|
}
|
|
12308
|
+
getElement() {
|
|
12309
|
+
return this.#messageViewImplementation.getElement();
|
|
12310
|
+
}
|
|
12308
12311
|
getBodyElement() {
|
|
12309
12312
|
return this.#messageViewImplementation.getContentsElement();
|
|
12310
12313
|
}
|
|
@@ -15038,7 +15041,7 @@ options.insert = htmlElement => {
|
|
|
15038
15041
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
15039
15042
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
15040
15043
|
///@ts-ignore
|
|
15041
|
-
"2.2.
|
|
15044
|
+
"2.2.3-1746822574041-e78a04d73908410d");
|
|
15042
15045
|
document.head.append(htmlElement);
|
|
15043
15046
|
};
|
|
15044
15047
|
options.domAPI = (styleDomAPI_default());
|
|
@@ -19798,7 +19801,7 @@ mole_view_module_options.insert = htmlElement => {
|
|
|
19798
19801
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
19799
19802
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
19800
19803
|
///@ts-ignore
|
|
19801
|
-
"2.2.
|
|
19804
|
+
"2.2.3-1746822574041-e78a04d73908410d");
|
|
19802
19805
|
document.head.append(htmlElement);
|
|
19803
19806
|
};
|
|
19804
19807
|
mole_view_module_options.domAPI = (styleDomAPI_default());
|
|
@@ -19989,6 +19992,10 @@ class GmailMoleViewDriver {
|
|
|
19989
19992
|
const insertBefore = moleParent.lastElementChild;
|
|
19990
19993
|
if (insertBefore instanceof HTMLElement) {
|
|
19991
19994
|
moleParent.insertBefore(this.#element, insertBefore);
|
|
19995
|
+
} else if (!insertBefore) {
|
|
19996
|
+
// when google chat and meet are disabled, the moleParent element has no children initially,
|
|
19997
|
+
// unlike when enabled and there is a hidden mole like stub created by gmail
|
|
19998
|
+
moleParent.appendChild(this.#element);
|
|
19992
19999
|
} else {
|
|
19993
20000
|
this.#driver.logger.error(new Error('Mole show invariant violated. `lastMole` is not an HTMLElement'));
|
|
19994
20001
|
return;
|
|
@@ -22258,6 +22265,8 @@ var immutability_helper_default = /*#__PURE__*/__webpack_require__.n(immutabilit
|
|
|
22258
22265
|
|
|
22259
22266
|
|
|
22260
22267
|
|
|
22268
|
+
|
|
22269
|
+
|
|
22261
22270
|
const threadListHandlersToSearchStrings = new Map();
|
|
22262
22271
|
const MAX_THREADS_PER_PAGE = 50;
|
|
22263
22272
|
|
|
@@ -22580,15 +22589,22 @@ function showCustomThreadList(driver, customRouteID, onActivate, params) {
|
|
|
22580
22589
|
let findIdFailure = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : _findIdFailure;
|
|
22581
22590
|
const uniqueSearch = setupSearchReplacing(driver, customRouteID, onActivate, findIdFailure);
|
|
22582
22591
|
const customHash = document.location.hash;
|
|
22583
|
-
const nextMainContentElementChange = gmail_element_getter/* default */.A.getMainContentElementChangedStream().changes().take(1);
|
|
22584
22592
|
const searchInput = gmail_element_getter/* default */.A.getSearchInput();
|
|
22585
22593
|
if (!searchInput) throw new Error('could not find search input');
|
|
22586
|
-
searchInput.
|
|
22587
|
-
|
|
22588
|
-
|
|
22589
|
-
|
|
22594
|
+
const inputStream = gmail_element_getter/* default */.A.getMainContentElementChangedStream().changes().take(1).map(() => searchInput).flatMapLatest(input => (0,make_mutation_observer_chunked_stream/* default */.A)(input, {
|
|
22595
|
+
attributes: true,
|
|
22596
|
+
attributeOldValue: true
|
|
22597
|
+
}).filter(mutationRecords => {
|
|
22598
|
+
// These are sort of arbitrary, they just occur after input.value has been written on the inputSearbox
|
|
22599
|
+
return mutationRecords.some(mutationRecord => mutationRecord.attributeName === 'role' && mutationRecord.oldValue === 'combobox');
|
|
22600
|
+
})
|
|
22601
|
+
// timeout fallback in case we never observe the above mutation
|
|
22602
|
+
.merge(kefir_esm["default"].later(15_000, null)).take(1));
|
|
22603
|
+
inputStream.onValue(() => {
|
|
22604
|
+
searchInput.value = '';
|
|
22590
22605
|
searchInput.style.visibility = 'visible';
|
|
22591
22606
|
});
|
|
22607
|
+
searchInput.style.visibility = 'hidden';
|
|
22592
22608
|
|
|
22593
22609
|
// Change the hash *without* making a new history entry.
|
|
22594
22610
|
const searchHash = '#search/' + [uniqueSearch, ...params].map(encodeURIComponent).join('/');
|