@inboxsdk/core 2.1.4 → 2.1.6
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 +619 -507
- package/inboxsdk.js.map +1 -1
- package/package.json +2 -2
- package/pageWorld.js +44 -7
- package/pageWorld.js.map +1 -1
- package/src/common/find-parent.d.ts +3 -0
- package/src/common/find-parent.d.ts.map +1 -1
- package/src/inboxsdk.d.ts +6 -17
- package/src/platform-implementation-js/dom-driver/gmail/gmail-driver/gmail-load-event.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/gmail-driver/isIntegratedViewGmail.d.ts +6 -6
- package/src/platform-implementation-js/dom-driver/gmail/gmail-driver/isIntegratedViewGmail.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/gmail-driver.d.ts +13 -59
- package/src/platform-implementation-js/dom-driver/gmail/gmail-driver.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/index.d.ts +4 -7
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/index.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/primary/index.d.ts +10 -36
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/primary/index.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/widgets/gmail-mole-view-driver.d.ts +15 -1
- package/src/platform-implementation-js/dom-driver/gmail/widgets/gmail-mole-view-driver.d.ts.map +1 -1
- package/src/platform-implementation-js/driver-common/sidebar/ContentPanelViewDriver.d.ts +3 -11
- package/src/platform-implementation-js/driver-common/sidebar/ContentPanelViewDriver.d.ts.map +1 -1
- package/src/platform-implementation-js/lib/logger.d.ts +7 -2
- package/src/platform-implementation-js/lib/logger.d.ts.map +1 -1
- package/src/platform-implementation-js/namespaces/widgets.d.ts +1 -1
- package/src/platform-implementation-js/namespaces/widgets.d.ts.map +1 -1
- package/src/platform-implementation-js/views/content-panel-view.d.ts +9 -3
- package/src/platform-implementation-js/views/content-panel-view.d.ts.map +1 -1
- package/src/platform-implementation-js/driver-interfaces/mole-view-driver.d.ts +0 -16
- package/src/platform-implementation-js/driver-interfaces/mole-view-driver.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inboxsdk/core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "Library for building browser extensions for Gmail",
|
|
5
5
|
"main": "inboxsdk.js",
|
|
6
6
|
"author": "Streak",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"src"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@babel/runtime": "^7.
|
|
30
|
+
"@babel/runtime": "^7.23.1",
|
|
31
31
|
"@types/kefir": "^3.8.6",
|
|
32
32
|
"@types/node": "*",
|
|
33
33
|
"@types/transducers.js": "^0.3.0",
|
package/pageWorld.js
CHANGED
|
@@ -124,7 +124,6 @@ const serversToIgnore = {};
|
|
|
124
124
|
// * [headers] - object
|
|
125
125
|
// * [xhrFields] - object
|
|
126
126
|
// * [data]
|
|
127
|
-
|
|
128
127
|
function ajax(opts) {
|
|
129
128
|
if (!opts || typeof opts.url !== 'string') {
|
|
130
129
|
throw new Error('URL must be given');
|
|
@@ -276,6 +275,8 @@ function htmlToText(html) {
|
|
|
276
275
|
|
|
277
276
|
// This is the type that the user provides.
|
|
278
277
|
|
|
278
|
+
// These ids are part of the object constructed by the SDK used to refer to a
|
|
279
|
+
// suggestion to the injected script.
|
|
279
280
|
/*
|
|
280
281
|
Notes about the Gmail suggestions response:
|
|
281
282
|
The response may be made up of multiple sections. Each section can specify
|
|
@@ -454,6 +455,39 @@ const WARNING_TIMEOUT = 60 * 1000;
|
|
|
454
455
|
* @property {string} [modifiedResponseText]
|
|
455
456
|
*/
|
|
456
457
|
|
|
458
|
+
/**
|
|
459
|
+
* Thing
|
|
460
|
+
*
|
|
461
|
+
* @callback XHRProxyWrapperCallback
|
|
462
|
+
* @param {XHRProxyConnectionDetails} connection
|
|
463
|
+
*/
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Wrapper object contains optional callbacks that get run for completed
|
|
467
|
+
* requests, and a required isRelevantTo method that filters what types of
|
|
468
|
+
* requests the methods should be called for. All methods are passed an object
|
|
469
|
+
* with details about the connection as the first argument. Some methods are
|
|
470
|
+
* called with a relevant second argument (which is also present within the
|
|
471
|
+
* connection argument).
|
|
472
|
+
*
|
|
473
|
+
* @typedef {Object} XHRProxyWrapper
|
|
474
|
+
* @property {XHRProxyWrapperCallback} isRelevantTo - returns true if wrapper should be used
|
|
475
|
+
* for request.
|
|
476
|
+
* @property {XHRProxyWrapperCallback} [originalSendBodyLogger] - called with value passed to
|
|
477
|
+
* send.
|
|
478
|
+
* @property {XHRProxyWrapperCallback} [requestChanger] - Allows the protocol, URL, and body
|
|
479
|
+
* to be changed together before the connection is opened and sent.
|
|
480
|
+
* @property {XHRProxyWrapperCallback} [originalResponseTextLogger] - called with the responseText as
|
|
481
|
+
* given by the server. Is not called if responseType is set to a value besides 'text'.
|
|
482
|
+
* @property {XHRProxyWrapperCallback} [responseTextChanger] - called with the responseText as given
|
|
483
|
+
* by the server and returns new responseText value. Is not called if responseType
|
|
484
|
+
* is set to a value besides 'text'.
|
|
485
|
+
* @property {XHRProxyWrapperCallback} [finalResponseTextLogger] - called with the responseText as
|
|
486
|
+
* delivered to application code. Is not called if responseType is set to a value besides 'text'.
|
|
487
|
+
* @property {XHRProxyWrapperCallback} [afterListeners] - called after all event listeners
|
|
488
|
+
* for readystatechange have run
|
|
489
|
+
*/
|
|
490
|
+
|
|
457
491
|
/**
|
|
458
492
|
* Creates a drop-in replacement for the XMLHttpRequest constructor that can
|
|
459
493
|
* have wrappers which may log or modify server responses. See
|
|
@@ -1045,6 +1079,9 @@ function clickAndGetPopupUrl(element) {
|
|
|
1045
1079
|
return url;
|
|
1046
1080
|
}
|
|
1047
1081
|
;// CONCATENATED MODULE: ./src/common/find-parent.ts
|
|
1082
|
+
/**
|
|
1083
|
+
* @deprecated Use @see Element.closest instead.
|
|
1084
|
+
*/
|
|
1048
1085
|
function findParent(el, cb) {
|
|
1049
1086
|
let candidate = el.parentElement;
|
|
1050
1087
|
while (candidate) {
|
|
@@ -20215,14 +20252,14 @@ module.exports = _toConsumableArray, module.exports.__esModule = true, module.ex
|
|
|
20215
20252
|
/***/ 18698:
|
|
20216
20253
|
/***/ ((module) => {
|
|
20217
20254
|
|
|
20218
|
-
function _typeof(
|
|
20255
|
+
function _typeof(o) {
|
|
20219
20256
|
"@babel/helpers - typeof";
|
|
20220
20257
|
|
|
20221
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
20222
|
-
return typeof
|
|
20223
|
-
} : function (
|
|
20224
|
-
return
|
|
20225
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(
|
|
20258
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
20259
|
+
return typeof o;
|
|
20260
|
+
} : function (o) {
|
|
20261
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
20262
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
|
20226
20263
|
}
|
|
20227
20264
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
20228
20265
|
|