@opentabs-dev/opentabs-plugin-linear 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 +30 -20
- package/dist/adapter.iife.js.map +3 -3
- package/dist/tools.json +4 -4
- package/package.json +3 -3
- package/dist/tools/set-api-key.d.ts +0 -8
- package/dist/tools/set-api-key.d.ts.map +0 -1
- package/dist/tools/set-api-key.js +0 -28
- package/dist/tools/set-api-key.js.map +0 -1
package/dist/adapter.iife.js
CHANGED
|
@@ -245,18 +245,18 @@
|
|
|
245
245
|
|
|
246
246
|
// node_modules/@opentabs-dev/plugin-sdk/dist/storage.js
|
|
247
247
|
var getLocalStorage = (key) => {
|
|
248
|
-
try {
|
|
249
|
-
return localStorage.getItem(key);
|
|
250
|
-
} catch {
|
|
251
|
-
}
|
|
252
248
|
let storage;
|
|
253
249
|
try {
|
|
254
|
-
storage = localStorage;
|
|
250
|
+
storage = window.localStorage;
|
|
255
251
|
} catch {
|
|
256
252
|
return null;
|
|
257
253
|
}
|
|
258
|
-
if (storage
|
|
259
|
-
|
|
254
|
+
if (storage) {
|
|
255
|
+
try {
|
|
256
|
+
return storage.getItem(key);
|
|
257
|
+
} catch {
|
|
258
|
+
return null;
|
|
259
|
+
}
|
|
260
260
|
}
|
|
261
261
|
try {
|
|
262
262
|
const iframe = document.createElement("iframe");
|
|
@@ -15362,21 +15362,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15362
15362
|
};
|
|
15363
15363
|
var src_default = new LinearPlugin();
|
|
15364
15364
|
|
|
15365
|
-
// dist/
|
|
15365
|
+
// dist/_adapter_entry_bf8cd40e-020c-46b2-938e-26f466097d39.ts
|
|
15366
15366
|
if (!globalThis.__openTabs) {
|
|
15367
15367
|
globalThis.__openTabs = {};
|
|
15368
15368
|
} else {
|
|
15369
15369
|
const desc = Object.getOwnPropertyDescriptor(globalThis.__openTabs, "adapters");
|
|
15370
15370
|
if (desc && !desc.writable) {
|
|
15371
|
-
const
|
|
15371
|
+
const ot3 = globalThis.__openTabs;
|
|
15372
15372
|
const newAdaptersObj = {};
|
|
15373
|
-
if (
|
|
15374
|
-
for (const key of Object.keys(
|
|
15375
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
15373
|
+
if (ot3.adapters) {
|
|
15374
|
+
for (const key of Object.keys(ot3.adapters)) {
|
|
15375
|
+
const d = Object.getOwnPropertyDescriptor(ot3.adapters, key);
|
|
15376
15376
|
if (d) Object.defineProperty(newAdaptersObj, key, d);
|
|
15377
15377
|
}
|
|
15378
15378
|
}
|
|
15379
|
-
globalThis.__openTabs = Object.assign({},
|
|
15379
|
+
globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdaptersObj });
|
|
15380
15380
|
}
|
|
15381
15381
|
}
|
|
15382
15382
|
if (!globalThis.__openTabs.adapters) {
|
|
@@ -15414,6 +15414,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15414
15414
|
}
|
|
15415
15415
|
};
|
|
15416
15416
|
var restoreTransport = setLogTransport ? setLogTransport(logTransport) : void 0;
|
|
15417
|
+
var ot2 = globalThis.__openTabs;
|
|
15418
|
+
ot2._notifyReadinessChanged = () => {
|
|
15419
|
+
try {
|
|
15420
|
+
const nonce = globalThis.__openTabs?._readinessNonce;
|
|
15421
|
+
if (nonce) {
|
|
15422
|
+
window.postMessage({ type: "opentabs:readiness-changed", plugin: "linear", nonce }, "*");
|
|
15423
|
+
}
|
|
15424
|
+
} catch {
|
|
15425
|
+
}
|
|
15426
|
+
};
|
|
15417
15427
|
var existing = adapters["linear"];
|
|
15418
15428
|
if (existing) {
|
|
15419
15429
|
if (typeof existing.teardown === "function") {
|
|
@@ -15425,7 +15435,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15425
15435
|
}
|
|
15426
15436
|
}
|
|
15427
15437
|
if (!Reflect.deleteProperty(adapters, "linear")) {
|
|
15428
|
-
const
|
|
15438
|
+
const ot3 = globalThis.__openTabs;
|
|
15429
15439
|
const newAdapters = {};
|
|
15430
15440
|
for (const key of Object.keys(adapters)) {
|
|
15431
15441
|
if (key !== "linear") {
|
|
@@ -15433,7 +15443,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15433
15443
|
if (desc) Object.defineProperty(newAdapters, key, desc);
|
|
15434
15444
|
}
|
|
15435
15445
|
}
|
|
15436
|
-
globalThis.__openTabs = Object.assign({},
|
|
15446
|
+
globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdapters });
|
|
15437
15447
|
}
|
|
15438
15448
|
var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
|
|
15439
15449
|
for (const tool of src_default.tools) {
|
|
@@ -15494,12 +15504,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15494
15504
|
}
|
|
15495
15505
|
}
|
|
15496
15506
|
};
|
|
15497
|
-
const
|
|
15498
|
-
if (!
|
|
15507
|
+
const ot3 = globalThis.__openTabs;
|
|
15508
|
+
if (!ot3._navigationInterceptor) {
|
|
15499
15509
|
const origPushState = history.pushState.bind(history);
|
|
15500
15510
|
const origReplaceState = history.replaceState.bind(history);
|
|
15501
15511
|
const callbacks = /* @__PURE__ */ new Map();
|
|
15502
|
-
|
|
15512
|
+
ot3._navigationInterceptor = { callbacks, origPushState, origReplaceState };
|
|
15503
15513
|
history.pushState = function(...args) {
|
|
15504
15514
|
origPushState(...args);
|
|
15505
15515
|
for (const cb of callbacks.values()) {
|
|
@@ -15513,7 +15523,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15513
15523
|
}
|
|
15514
15524
|
};
|
|
15515
15525
|
}
|
|
15516
|
-
const interceptor =
|
|
15526
|
+
const interceptor = ot3._navigationInterceptor;
|
|
15517
15527
|
interceptor.callbacks.set("linear", checkUrl);
|
|
15518
15528
|
window.addEventListener("popstate", checkUrl);
|
|
15519
15529
|
window.addEventListener("hashchange", checkUrl);
|
|
@@ -15568,5 +15578,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15568
15578
|
};
|
|
15569
15579
|
delete src_default.onDeactivate;
|
|
15570
15580
|
}
|
|
15571
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["linear"]){var a=o.adapters["linear"];a.__adapterHash="
|
|
15581
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["linear"]){var a=o.adapters["linear"];a.__adapterHash="dcd935486f045c5fdd4bfbab750a0e0fd6fd4f9fdd6d973614075fc85386f3d3";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,"linear",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
15572
15582
|
//# sourceMappingURL=adapter.iife.js.map
|