@inboxsdk/core 2.2.21 → 2.2.22
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 +31 -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/selectors.d.ts +21 -0
- package/src/platform-implementation-js/dom-driver/gmail/selectors.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-toolbar-view.d.ts +2 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-toolbar-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.22-1788490014289-746166a2740dd165";
|
|
375
375
|
if (false) {}
|
|
376
376
|
|
|
377
377
|
/***/ }),
|
|
@@ -2711,7 +2711,7 @@ options.insert = htmlElement => {
|
|
|
2711
2711
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
2712
2712
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
2713
2713
|
///@ts-ignore
|
|
2714
|
-
"2.2.
|
|
2714
|
+
"2.2.22-1788490014289-746166a2740dd165");
|
|
2715
2715
|
document.head.append(htmlElement);
|
|
2716
2716
|
};
|
|
2717
2717
|
options.domAPI = (styleDomAPI_default());
|
|
@@ -10383,7 +10383,7 @@ options.insert = htmlElement => {
|
|
|
10383
10383
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
10384
10384
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
10385
10385
|
///@ts-ignore
|
|
10386
|
-
"2.2.
|
|
10386
|
+
"2.2.22-1788490014289-746166a2740dd165");
|
|
10387
10387
|
document.head.append(htmlElement);
|
|
10388
10388
|
};
|
|
10389
10389
|
options.domAPI = (styleDomAPI_default());
|
|
@@ -14166,18 +14166,18 @@ class GmailToolbarView {
|
|
|
14166
14166
|
}
|
|
14167
14167
|
}
|
|
14168
14168
|
_getArchiveSectionElement() {
|
|
14169
|
-
return this.
|
|
14169
|
+
return this._getSectionElementForButtonSelectorKey('toolbar.archiveSectionButton');
|
|
14170
14170
|
}
|
|
14171
14171
|
_getCheckboxSectionElement() {
|
|
14172
|
-
return this.
|
|
14172
|
+
return this._getSectionElementForButtonSelectorKey('toolbar.checkboxSectionButton');
|
|
14173
14173
|
}
|
|
14174
14174
|
_getMoveSectionElement() {
|
|
14175
|
-
return this.
|
|
14175
|
+
return this._getSectionElementForButtonSelectorKey('toolbar.moveSectionButton') ?? this._getSectionElementForButtonSelectorKey('toolbar.moveSectionFallbackButton');
|
|
14176
14176
|
}
|
|
14177
|
-
|
|
14177
|
+
_getSectionElementForButtonSelectorKey(selectorKey) {
|
|
14178
14178
|
const sectionElements = this._element.querySelectorAll('.G-Ni');
|
|
14179
14179
|
for (let ii = 0; ii < sectionElements.length; ii++) {
|
|
14180
|
-
if (sectionElements[ii]
|
|
14180
|
+
if (this._driver.selectors.querySelectorByKey(sectionElements[ii], selectorKey)) {
|
|
14181
14181
|
return sectionElements[ii];
|
|
14182
14182
|
}
|
|
14183
14183
|
}
|
|
@@ -15289,7 +15289,7 @@ options.insert = htmlElement => {
|
|
|
15289
15289
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
15290
15290
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
15291
15291
|
///@ts-ignore
|
|
15292
|
-
"2.2.
|
|
15292
|
+
"2.2.22-1788490014289-746166a2740dd165");
|
|
15293
15293
|
document.head.append(htmlElement);
|
|
15294
15294
|
};
|
|
15295
15295
|
options.domAPI = (styleDomAPI_default());
|
|
@@ -20052,7 +20052,7 @@ mole_view_module_options.insert = htmlElement => {
|
|
|
20052
20052
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
20053
20053
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
20054
20054
|
///@ts-ignore
|
|
20055
|
-
"2.2.
|
|
20055
|
+
"2.2.22-1788490014289-746166a2740dd165");
|
|
20056
20056
|
document.head.append(htmlElement);
|
|
20057
20057
|
};
|
|
20058
20058
|
mole_view_module_options.domAPI = (styleDomAPI_default());
|
|
@@ -24428,6 +24428,27 @@ const GMAIL_SELECTORS = {
|
|
|
24428
24428
|
'composeView.titleBarColorOuter': ['.nH.Hy.aXJ .pi > .l.o'],
|
|
24429
24429
|
'composeView.titleBarColorBody': ['.nH.Hy.aXJ .l.m'],
|
|
24430
24430
|
'composeView.titleBarColorBodyInner': ['.nH.Hy.aXJ .l.m > .l.n'],
|
|
24431
|
+
/**
|
|
24432
|
+
* Native button used to identify the Inbox-state toolbar section.
|
|
24433
|
+
* Root: one `.G-Ni` section.
|
|
24434
|
+
*/
|
|
24435
|
+
'toolbar.archiveSectionButton': ['.ar9', '.aFh', '.aFj', '.lR', '.nN', '.nX', '.aFk'],
|
|
24436
|
+
/**
|
|
24437
|
+
* Native checkbox used to identify the selection toolbar section.
|
|
24438
|
+
* Root: one `.G-Ni` section.
|
|
24439
|
+
*/
|
|
24440
|
+
'toolbar.checkboxSectionButton': ['.T-Jo-auh'],
|
|
24441
|
+
/**
|
|
24442
|
+
* Primary native buttons or icon descendants in Gmail's Move/Label section.
|
|
24443
|
+
* Root: one `.G-Ni` section.
|
|
24444
|
+
*/
|
|
24445
|
+
'toolbar.moveSectionButton': ['.asb', '.ase', '.ns', '.mw', '.bq5'],
|
|
24446
|
+
/**
|
|
24447
|
+
* Gmail search threads retain `.aFj` around "Move to Inbox" when Material
|
|
24448
|
+
* SVG icons replace the legacy `.bq5` descendant.
|
|
24449
|
+
* Root: one `.G-Ni` section. Kept separate so a real Move section wins.
|
|
24450
|
+
*/
|
|
24451
|
+
'toolbar.moveSectionFallbackButton': ['.aFj'],
|
|
24431
24452
|
/**
|
|
24432
24453
|
* Body of an open message.
|
|
24433
24454
|
* Root: message element.
|