@depict-ai/utilishared 0.0.64 → 0.0.66
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/index.d.ts +1 -1
- package/dist/main.js +4 -3
- package/dist/module.js +4 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="../jsx.d.ts" />
|
|
2
2
|
import { EUnavailabilityType } from "@depict-ai/types/api/TrackV2Request";
|
|
3
|
-
export const version = "0.0.
|
|
3
|
+
export const version = "0.0.66";
|
|
4
4
|
export const is_debug: boolean;
|
|
5
5
|
/**
|
|
6
6
|
* Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
|
package/dist/main.js
CHANGED
|
@@ -274,7 +274,7 @@ $parcel$export(module.exports, "hsl_to_rgb", () => $d73746ee466f09ca$export$e4fd
|
|
|
274
274
|
$parcel$export(module.exports, "relative_luminance_from_rgb", () => $d73746ee466f09ca$export$98c2b3491e76c1f);
|
|
275
275
|
$parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fbfd8236492);
|
|
276
276
|
$parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
|
|
277
|
-
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "0.0.
|
|
277
|
+
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "0.0.66";
|
|
278
278
|
|
|
279
279
|
|
|
280
280
|
const $7b5e577a60b81e60$export$55fe61489d2c7417 = /*@__PURE__*/ (()=>process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (document.currentScript?.dataset?.debug === "true" || localStorage.getItem("debug") === "true"))();
|
|
@@ -998,7 +998,7 @@ class $04a37742898e4bd5$export$32ccf3a614c84258 {
|
|
|
998
998
|
}
|
|
999
999
|
|
|
1000
1000
|
|
|
1001
|
-
const $7599647868f98022$var$needs_patching = /*@__PURE__*/ $7599647868f98022$var$check_if_querySelectorAll_needs_patching();
|
|
1001
|
+
const $7599647868f98022$var$needs_patching = typeof window === "object" ? /*@__PURE__*/ $7599647868f98022$var$check_if_querySelectorAll_needs_patching() : false;
|
|
1002
1002
|
function $7599647868f98022$export$33f937d741e49339(element, selector) {
|
|
1003
1003
|
if (!(element instanceof Element) || !$7599647868f98022$var$needs_patching || !selector.includes("#") || !selector.includes("+")) // covers most cases, we don't need patching or don't hit the bug
|
|
1004
1004
|
return element?.querySelectorAll?.(selector);
|
|
@@ -1112,7 +1112,7 @@ class $9043c64496e3375f$export$12e07a2a9f87578a {
|
|
|
1112
1112
|
ifexists: (selector, callback)=>{
|
|
1113
1113
|
this.#check_observer_args(selector, callback, true);
|
|
1114
1114
|
if (selector instanceof Node) {
|
|
1115
|
-
if (document.documentElement.contains(selector)) // When the selector is a node the selector and the element are the same, dunno how we could reflect that in the typing though
|
|
1115
|
+
if (typeof document === "object" && document.documentElement.contains(selector)) // When the selector is a node the selector and the element are the same, dunno how we could reflect that in the typing though
|
|
1116
1116
|
this.#call_callbacks([
|
|
1117
1117
|
callback
|
|
1118
1118
|
], (callback_)=>({
|
|
@@ -1165,6 +1165,7 @@ class $9043c64496e3375f$export$12e07a2a9f87578a {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
};
|
|
1167
1167
|
#kickstart_observer() {
|
|
1168
|
+
if (typeof window === "undefined") return;
|
|
1168
1169
|
this.#the_mutation_observer = new MutationObserver(this.#observer_callback);
|
|
1169
1170
|
this.#the_mutation_observer.observe(this.#territory, {
|
|
1170
1171
|
attributes: true,
|
package/dist/module.js
CHANGED
|
@@ -4,7 +4,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
4
4
|
function $parcel$interopDefault(a) {
|
|
5
5
|
return a && a.__esModule ? a.default : a;
|
|
6
6
|
}
|
|
7
|
-
const $0766c85d387a9765$export$83d89fbfd8236492 = "0.0.
|
|
7
|
+
const $0766c85d387a9765$export$83d89fbfd8236492 = "0.0.66";
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
const $571bce04eb920cd8$export$55fe61489d2c7417 = /*@__PURE__*/ (()=>process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (document.currentScript?.dataset?.debug === "true" || localStorage.getItem("debug") === "true"))();
|
|
@@ -728,7 +728,7 @@ class $09ff985c7c424fb3$export$32ccf3a614c84258 {
|
|
|
728
728
|
}
|
|
729
729
|
|
|
730
730
|
|
|
731
|
-
const $39ef887981612535$var$needs_patching = /*@__PURE__*/ $39ef887981612535$var$check_if_querySelectorAll_needs_patching();
|
|
731
|
+
const $39ef887981612535$var$needs_patching = typeof window === "object" ? /*@__PURE__*/ $39ef887981612535$var$check_if_querySelectorAll_needs_patching() : false;
|
|
732
732
|
function $39ef887981612535$export$33f937d741e49339(element, selector) {
|
|
733
733
|
if (!(element instanceof Element) || !$39ef887981612535$var$needs_patching || !selector.includes("#") || !selector.includes("+")) // covers most cases, we don't need patching or don't hit the bug
|
|
734
734
|
return element?.querySelectorAll?.(selector);
|
|
@@ -842,7 +842,7 @@ class $cdca9fea6eb103e5$export$12e07a2a9f87578a {
|
|
|
842
842
|
ifexists: (selector, callback)=>{
|
|
843
843
|
this.#check_observer_args(selector, callback, true);
|
|
844
844
|
if (selector instanceof Node) {
|
|
845
|
-
if (document.documentElement.contains(selector)) // When the selector is a node the selector and the element are the same, dunno how we could reflect that in the typing though
|
|
845
|
+
if (typeof document === "object" && document.documentElement.contains(selector)) // When the selector is a node the selector and the element are the same, dunno how we could reflect that in the typing though
|
|
846
846
|
this.#call_callbacks([
|
|
847
847
|
callback
|
|
848
848
|
], (callback_)=>({
|
|
@@ -895,6 +895,7 @@ class $cdca9fea6eb103e5$export$12e07a2a9f87578a {
|
|
|
895
895
|
}
|
|
896
896
|
};
|
|
897
897
|
#kickstart_observer() {
|
|
898
|
+
if (typeof window === "undefined") return;
|
|
898
899
|
this.#the_mutation_observer = new MutationObserver(this.#observer_callback);
|
|
899
900
|
this.#the_mutation_observer.observe(this.#territory, {
|
|
900
901
|
attributes: true,
|