tsviewer 1.0.11 → 1.0.12
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/tsviewer.es.js +8 -9
- package/dist/tsviewer.umd.js +1 -1
- package/package.json +1 -1
package/dist/tsviewer.es.js
CHANGED
|
@@ -12803,6 +12803,12 @@ function useHandleXhrError(e) {
|
|
|
12803
12803
|
EventBus.$emit("ajaxError", e);
|
|
12804
12804
|
}
|
|
12805
12805
|
}
|
|
12806
|
+
function useToken() {
|
|
12807
|
+
const e = inject("useGetToken");
|
|
12808
|
+
if (!e)
|
|
12809
|
+
throw new Error("useGetToken is not provided. Make sure to provide it in your app.");
|
|
12810
|
+
return e;
|
|
12811
|
+
}
|
|
12806
12812
|
const getLayerIndex = (e, t, n) => {
|
|
12807
12813
|
const r = propOr("", e, t);
|
|
12808
12814
|
return findIndex(propEq("id", r), n);
|
|
@@ -12858,7 +12864,7 @@ const getLayerIndex = (e, t, n) => {
|
|
|
12858
12864
|
this.activeViewer = e;
|
|
12859
12865
|
},
|
|
12860
12866
|
async fetchAndSetActiveViewer(e) {
|
|
12861
|
-
const t = e.packageId, n =
|
|
12867
|
+
const t = e.packageId, n = await useToken(), r = `https://api.pennsieve.net/packages/${t}?api_key=${n}`, i = await useSendXhr(r);
|
|
12862
12868
|
this.setActiveViewer(i);
|
|
12863
12869
|
},
|
|
12864
12870
|
closeViewer() {
|
|
@@ -14212,14 +14218,7 @@ const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["rend
|
|
|
14212
14218
|
console.log(e), EventBus.$emit("ajaxError", e);
|
|
14213
14219
|
}
|
|
14214
14220
|
}
|
|
14215
|
-
}
|
|
14216
|
-
function useToken() {
|
|
14217
|
-
const e = inject("useGetToken");
|
|
14218
|
-
if (!e)
|
|
14219
|
-
throw new Error("useGetToken is not provided. Make sure to provide it in your app.");
|
|
14220
|
-
return e;
|
|
14221
|
-
}
|
|
14222
|
-
const _sfc_main$4 = {
|
|
14221
|
+
}, _sfc_main$4 = {
|
|
14223
14222
|
name: "TimeseriesAnnotationCanvas",
|
|
14224
14223
|
mixins: [
|
|
14225
14224
|
Request,
|