@inboxsdk/core 1.2.4 → 1.2.5
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 +14 -9
- package/inboxsdk.js.map +1 -1
- package/package.json +1 -1
- package/pageWorld.js.map +1 -1
- package/src/common/load-script.d.ts +0 -6
- package/src/common/load-script.d.ts.map +1 -1
- package/src/common/load-script.js +1 -3
- package/src/inboxsdk-js/loading/platform-implementation-loader.d.ts.map +1 -1
- package/src/inboxsdk-js/loading/platform-implementation-loader.js +0 -3
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-attachment-card-view.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-attachment-card-view.js +10 -0
- package/src/platform-implementation-js/lib/inject-script-EMBEDDED.d.ts.map +1 -1
- package/src/platform-implementation-js/lib/inject-script-EMBEDDED.js +6 -1
package/inboxsdk.js
CHANGED
|
@@ -1447,9 +1447,7 @@ function loadScript(url, opts) {
|
|
|
1447
1447
|
codeParts.unshift('(function(){');
|
|
1448
1448
|
codeParts.push('\n});');
|
|
1449
1449
|
}
|
|
1450
|
-
|
|
1451
|
-
codeParts.push('\n//# sourceURL=' + url + '\n');
|
|
1452
|
-
}
|
|
1450
|
+
codeParts.push('\n//# sourceURL=' + url + '\n');
|
|
1453
1451
|
const codeToRun = codeParts.join('');
|
|
1454
1452
|
let program;
|
|
1455
1453
|
try {
|
|
@@ -1748,7 +1746,7 @@ function tooManyErrors(err2, originalArgs) {
|
|
|
1748
1746
|
|
|
1749
1747
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- SDK_VERSION is injected by webpack
|
|
1750
1748
|
///@ts-ignore
|
|
1751
|
-
const BUILD_VERSION = "0.7.25-
|
|
1749
|
+
const BUILD_VERSION = "0.7.25-1692014825121-db1e0587dc1c4978";
|
|
1752
1750
|
if (false) {}
|
|
1753
1751
|
|
|
1754
1752
|
/***/ }),
|
|
@@ -1817,10 +1815,7 @@ const PlatformImplementationLoader = {
|
|
|
1817
1815
|
_loadScript: lodash_once__WEBPACK_IMPORTED_MODULE_0___default()(function () {
|
|
1818
1816
|
return (0,_common_load_script__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)("https://www.inboxsdk.com/build/platform-implementation.js", {
|
|
1819
1817
|
// platform-implementation has no top-level vars so no need for function wrapping
|
|
1820
|
-
nowrap: true
|
|
1821
|
-
// webpack adds a sourceMappingURL comment.
|
|
1822
|
-
// This source mapping URL includes cache breaking for error reporting in remote builds.
|
|
1823
|
-
disableSourceURL: true
|
|
1818
|
+
nowrap: true
|
|
1824
1819
|
});
|
|
1825
1820
|
}),
|
|
1826
1821
|
preload() {
|
|
@@ -11832,7 +11827,7 @@ options.insert = htmlElement => {
|
|
|
11832
11827
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
11833
11828
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
11834
11829
|
///@ts-ignore
|
|
11835
|
-
"0.7.25-
|
|
11830
|
+
"0.7.25-1692014825121-db1e0587dc1c4978");
|
|
11836
11831
|
document.head.append(htmlElement);
|
|
11837
11832
|
};
|
|
11838
11833
|
options.domAPI = (styleDomAPI_default());
|
|
@@ -13673,6 +13668,16 @@ class GmailAttachmentCardView {
|
|
|
13673
13668
|
iconUrl: options.iconUrl,
|
|
13674
13669
|
tooltip: options.tooltip
|
|
13675
13670
|
});
|
|
13671
|
+
new basic_button_view_controller/* default */.Z({
|
|
13672
|
+
activateFunction: () => {
|
|
13673
|
+
if (options.onClick) {
|
|
13674
|
+
options.onClick({
|
|
13675
|
+
getDownloadURL: () => this.getDownloadURL()
|
|
13676
|
+
});
|
|
13677
|
+
}
|
|
13678
|
+
},
|
|
13679
|
+
buttonView: buttonView
|
|
13680
|
+
});
|
|
13676
13681
|
this._addButton(buttonView);
|
|
13677
13682
|
}
|
|
13678
13683
|
getTitle() {
|