@inboxsdk/core 2.2.1 → 2.2.2
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 +22 -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/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.2-1742235653822-f633b152f60bc69b";
|
|
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.2-1742235653822-f633b152f60bc69b");
|
|
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.2-1742235653822-f633b152f60bc69b");
|
|
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.2-1742235653822-f633b152f60bc69b");
|
|
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.2-1742235653822-f633b152f60bc69b");
|
|
19802
19805
|
document.head.append(htmlElement);
|
|
19803
19806
|
};
|
|
19804
19807
|
mole_view_module_options.domAPI = (styleDomAPI_default());
|
|
@@ -22258,6 +22261,8 @@ var immutability_helper_default = /*#__PURE__*/__webpack_require__.n(immutabilit
|
|
|
22258
22261
|
|
|
22259
22262
|
|
|
22260
22263
|
|
|
22264
|
+
|
|
22265
|
+
|
|
22261
22266
|
const threadListHandlersToSearchStrings = new Map();
|
|
22262
22267
|
const MAX_THREADS_PER_PAGE = 50;
|
|
22263
22268
|
|
|
@@ -22580,15 +22585,22 @@ function showCustomThreadList(driver, customRouteID, onActivate, params) {
|
|
|
22580
22585
|
let findIdFailure = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : _findIdFailure;
|
|
22581
22586
|
const uniqueSearch = setupSearchReplacing(driver, customRouteID, onActivate, findIdFailure);
|
|
22582
22587
|
const customHash = document.location.hash;
|
|
22583
|
-
const nextMainContentElementChange = gmail_element_getter/* default */.A.getMainContentElementChangedStream().changes().take(1);
|
|
22584
22588
|
const searchInput = gmail_element_getter/* default */.A.getSearchInput();
|
|
22585
22589
|
if (!searchInput) throw new Error('could not find search input');
|
|
22586
|
-
searchInput.
|
|
22587
|
-
|
|
22588
|
-
|
|
22589
|
-
|
|
22590
|
+
const inputStream = gmail_element_getter/* default */.A.getMainContentElementChangedStream().changes().take(1).map(() => searchInput).flatMapLatest(input => (0,make_mutation_observer_chunked_stream/* default */.A)(input, {
|
|
22591
|
+
attributes: true,
|
|
22592
|
+
attributeOldValue: true
|
|
22593
|
+
}).filter(mutationRecords => {
|
|
22594
|
+
// These are sort of arbitrary, they just occur after input.value has been written on the inputSearbox
|
|
22595
|
+
return mutationRecords.some(mutationRecord => mutationRecord.attributeName === 'role' && mutationRecord.oldValue === 'combobox');
|
|
22596
|
+
})
|
|
22597
|
+
// timeout fallback in case we never observe the above mutation
|
|
22598
|
+
.merge(kefir_esm["default"].later(15_000, null)).take(1));
|
|
22599
|
+
inputStream.onValue(() => {
|
|
22600
|
+
searchInput.value = '';
|
|
22590
22601
|
searchInput.style.visibility = 'visible';
|
|
22591
22602
|
});
|
|
22603
|
+
searchInput.style.visibility = 'hidden';
|
|
22592
22604
|
|
|
22593
22605
|
// Change the hash *without* making a new history entry.
|
|
22594
22606
|
const searchHash = '#search/' + [uniqueSearch, ...params].map(encodeURIComponent).join('/');
|