@opentabs-dev/opentabs-plugin-google-cloud 0.0.75 → 0.0.76
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/adapter.iife.js +23 -13
- package/dist/adapter.iife.js.map +3 -3
- package/dist/tools.json +1 -1
- package/package.json +3 -3
package/dist/adapter.iife.js
CHANGED
|
@@ -15336,21 +15336,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15336
15336
|
};
|
|
15337
15337
|
var src_default = new GoogleCloudPlugin();
|
|
15338
15338
|
|
|
15339
|
-
// dist/
|
|
15339
|
+
// dist/_adapter_entry_310654cf-b318-4bbd-8222-8d8fc74b1385.ts
|
|
15340
15340
|
if (!globalThis.__openTabs) {
|
|
15341
15341
|
globalThis.__openTabs = {};
|
|
15342
15342
|
} else {
|
|
15343
15343
|
const desc = Object.getOwnPropertyDescriptor(globalThis.__openTabs, "adapters");
|
|
15344
15344
|
if (desc && !desc.writable) {
|
|
15345
|
-
const
|
|
15345
|
+
const ot3 = globalThis.__openTabs;
|
|
15346
15346
|
const newAdaptersObj = {};
|
|
15347
|
-
if (
|
|
15348
|
-
for (const key of Object.keys(
|
|
15349
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
15347
|
+
if (ot3.adapters) {
|
|
15348
|
+
for (const key of Object.keys(ot3.adapters)) {
|
|
15349
|
+
const d = Object.getOwnPropertyDescriptor(ot3.adapters, key);
|
|
15350
15350
|
if (d) Object.defineProperty(newAdaptersObj, key, d);
|
|
15351
15351
|
}
|
|
15352
15352
|
}
|
|
15353
|
-
globalThis.__openTabs = Object.assign({},
|
|
15353
|
+
globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdaptersObj });
|
|
15354
15354
|
}
|
|
15355
15355
|
}
|
|
15356
15356
|
if (!globalThis.__openTabs.adapters) {
|
|
@@ -15388,6 +15388,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15388
15388
|
}
|
|
15389
15389
|
};
|
|
15390
15390
|
var restoreTransport = setLogTransport ? setLogTransport(logTransport) : void 0;
|
|
15391
|
+
var ot2 = globalThis.__openTabs;
|
|
15392
|
+
ot2._notifyReadinessChanged = () => {
|
|
15393
|
+
try {
|
|
15394
|
+
const nonce = globalThis.__openTabs?._readinessNonce;
|
|
15395
|
+
if (nonce) {
|
|
15396
|
+
window.postMessage({ type: "opentabs:readiness-changed", plugin: "google-cloud", nonce }, "*");
|
|
15397
|
+
}
|
|
15398
|
+
} catch {
|
|
15399
|
+
}
|
|
15400
|
+
};
|
|
15391
15401
|
var existing = adapters["google-cloud"];
|
|
15392
15402
|
if (existing) {
|
|
15393
15403
|
if (typeof existing.teardown === "function") {
|
|
@@ -15399,7 +15409,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15399
15409
|
}
|
|
15400
15410
|
}
|
|
15401
15411
|
if (!Reflect.deleteProperty(adapters, "google-cloud")) {
|
|
15402
|
-
const
|
|
15412
|
+
const ot3 = globalThis.__openTabs;
|
|
15403
15413
|
const newAdapters = {};
|
|
15404
15414
|
for (const key of Object.keys(adapters)) {
|
|
15405
15415
|
if (key !== "google-cloud") {
|
|
@@ -15407,7 +15417,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15407
15417
|
if (desc) Object.defineProperty(newAdapters, key, desc);
|
|
15408
15418
|
}
|
|
15409
15419
|
}
|
|
15410
|
-
globalThis.__openTabs = Object.assign({},
|
|
15420
|
+
globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdapters });
|
|
15411
15421
|
}
|
|
15412
15422
|
var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
|
|
15413
15423
|
for (const tool of src_default.tools) {
|
|
@@ -15468,12 +15478,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15468
15478
|
}
|
|
15469
15479
|
}
|
|
15470
15480
|
};
|
|
15471
|
-
const
|
|
15472
|
-
if (!
|
|
15481
|
+
const ot3 = globalThis.__openTabs;
|
|
15482
|
+
if (!ot3._navigationInterceptor) {
|
|
15473
15483
|
const origPushState = history.pushState.bind(history);
|
|
15474
15484
|
const origReplaceState = history.replaceState.bind(history);
|
|
15475
15485
|
const callbacks = /* @__PURE__ */ new Map();
|
|
15476
|
-
|
|
15486
|
+
ot3._navigationInterceptor = { callbacks, origPushState, origReplaceState };
|
|
15477
15487
|
history.pushState = function(...args) {
|
|
15478
15488
|
origPushState(...args);
|
|
15479
15489
|
for (const cb of callbacks.values()) {
|
|
@@ -15487,7 +15497,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15487
15497
|
}
|
|
15488
15498
|
};
|
|
15489
15499
|
}
|
|
15490
|
-
const interceptor =
|
|
15500
|
+
const interceptor = ot3._navigationInterceptor;
|
|
15491
15501
|
interceptor.callbacks.set("google-cloud", checkUrl);
|
|
15492
15502
|
window.addEventListener("popstate", checkUrl);
|
|
15493
15503
|
window.addEventListener("hashchange", checkUrl);
|
|
@@ -15542,5 +15552,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15542
15552
|
};
|
|
15543
15553
|
delete src_default.onDeactivate;
|
|
15544
15554
|
}
|
|
15545
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["google-cloud"]){var a=o.adapters["google-cloud"];a.__adapterHash="
|
|
15555
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["google-cloud"]){var a=o.adapters["google-cloud"];a.__adapterHash="050d761f3b0ded5e806da8ff4b649d8472378835fcf25e3b59bc3cf8648387d7";if(a.tools&&Array.isArray(a.tools)){for(var i=0;i<a.tools.length;i++){Object.freeze(a.tools[i]);}Object.freeze(a.tools);}Object.freeze(a);Object.defineProperty(o.adapters,"google-cloud",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
15546
15556
|
//# sourceMappingURL=adapter.iife.js.map
|