@unhingged/vizu-core 0.1.6 → 0.1.7
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/dist/auto.cjs +9 -8
- package/dist/auto.cjs.map +1 -1
- package/dist/auto.js +9 -8
- package/dist/auto.js.map +1 -1
- package/dist/index.cjs +9 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/vizu.min.js +1 -1
- package/dist/vizu.min.js.map +1 -1
- package/package.json +1 -1
package/dist/auto.cjs
CHANGED
|
@@ -3206,7 +3206,16 @@ var Vizu = class {
|
|
|
3206
3206
|
}
|
|
3207
3207
|
if (matches(e, this.parsedShortcut)) {
|
|
3208
3208
|
e.preventDefault();
|
|
3209
|
+
const wasEnabled = this.enabled;
|
|
3209
3210
|
this.toggle();
|
|
3211
|
+
if (!wasEnabled && this.enabled && this.storage instanceof CloudStorageAdapter) {
|
|
3212
|
+
void this.storage.preflightAuth().catch((err) => {
|
|
3213
|
+
if (err?.code === "auth_canceled" || err?.code === "popup_blocked") return;
|
|
3214
|
+
if (typeof console !== "undefined") {
|
|
3215
|
+
console.warn("[vizu] preflight auth failed:", err);
|
|
3216
|
+
}
|
|
3217
|
+
});
|
|
3218
|
+
}
|
|
3210
3219
|
}
|
|
3211
3220
|
};
|
|
3212
3221
|
/* ===== Reposition on scroll/resize ===== */
|
|
@@ -3295,14 +3304,6 @@ var Vizu = class {
|
|
|
3295
3304
|
this.enabled = true;
|
|
3296
3305
|
this.bus.emit("enabled", {});
|
|
3297
3306
|
this.deferred(() => this.mount());
|
|
3298
|
-
if (this.storage instanceof CloudStorageAdapter) {
|
|
3299
|
-
void this.storage.preflightAuth().catch((err) => {
|
|
3300
|
-
if (err?.code === "auth_canceled" || err?.code === "popup_blocked") return;
|
|
3301
|
-
if (typeof console !== "undefined") {
|
|
3302
|
-
console.warn("[vizu] preflight auth failed:", err);
|
|
3303
|
-
}
|
|
3304
|
-
});
|
|
3305
|
-
}
|
|
3306
3307
|
}
|
|
3307
3308
|
disable() {
|
|
3308
3309
|
if (!this.enabled) return;
|