@depict-ai/utilishared 0.0.70 → 0.0.72
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 +5 -5
- package/dist/module.js +5 -5
- 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.72";
|
|
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.72";
|
|
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"))();
|
|
@@ -7662,14 +7662,14 @@ function $bd274a272f8400ec$export$4fbbab6c30e664d5(value) {
|
|
|
7662
7662
|
|
|
7663
7663
|
|
|
7664
7664
|
const $6d0c26cd36f5eeff$var$promise_as_string = "Promise";
|
|
7665
|
-
const $6d0c26cd36f5eeff$var$w = window;
|
|
7666
7665
|
function $6d0c26cd36f5eeff$export$38e89c688f9d553a() {
|
|
7667
7666
|
try {
|
|
7668
|
-
|
|
7667
|
+
const w = window;
|
|
7668
|
+
let da_promise = w[$6d0c26cd36f5eeff$var$promise_as_string];
|
|
7669
7669
|
let iframe_promise;
|
|
7670
7670
|
if ((typeof da_promise.allSettled !== "function" || typeof da_promise?.prototype?.finally !== "function") && !(0, $bd274a272f8400ec$export$4fbbab6c30e664d5)(da_promise) && (iframe_promise = $6d0c26cd36f5eeff$export$e647444ed9403635())) da_promise = iframe_promise;
|
|
7671
7671
|
if (da_promise) {
|
|
7672
|
-
if (Object.getOwnPropertyDescriptor(
|
|
7672
|
+
if (Object.getOwnPropertyDescriptor(w, $6d0c26cd36f5eeff$var$promise_as_string)?.configurable !== false) Object.defineProperty(w, $6d0c26cd36f5eeff$var$promise_as_string, {
|
|
7673
7673
|
configurable: false,
|
|
7674
7674
|
enumerable: true,
|
|
7675
7675
|
get () {
|
|
@@ -8431,7 +8431,7 @@ $80ae37b75f3a6ec8$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;
|
|
|
8431
8431
|
|
|
8432
8432
|
|
|
8433
8433
|
const $ff973b2032639b5f$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
8434
|
-
const $ff973b2032639b5f$export$a98fc8a2c818d3d8 = /*@__PURE__*/ (()
|
|
8434
|
+
const $ff973b2032639b5f$export$a98fc8a2c818d3d8 = /*@__PURE__*/ (()=>typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
8435
8435
|
function $ff973b2032639b5f$export$f39a7d0667e924a(what_to_watch, sizes_communicator = (0, $9a42a570de51ea3d$export$e806c6c1615a59ae)(), resolution_factor = 1) {
|
|
8436
8436
|
let currently_live = false;
|
|
8437
8437
|
const ro = new ResizeObserver((0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9)((records)=>{
|
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.72";
|
|
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"))();
|
|
@@ -7392,14 +7392,14 @@ function $67acdcc7df099ae4$export$4fbbab6c30e664d5(value) {
|
|
|
7392
7392
|
|
|
7393
7393
|
|
|
7394
7394
|
const $1dd4146ad893cfb2$var$promise_as_string = "Promise";
|
|
7395
|
-
const $1dd4146ad893cfb2$var$w = window;
|
|
7396
7395
|
function $1dd4146ad893cfb2$export$38e89c688f9d553a() {
|
|
7397
7396
|
try {
|
|
7398
|
-
|
|
7397
|
+
const w = window;
|
|
7398
|
+
let da_promise = w[$1dd4146ad893cfb2$var$promise_as_string];
|
|
7399
7399
|
let iframe_promise;
|
|
7400
7400
|
if ((typeof da_promise.allSettled !== "function" || typeof da_promise?.prototype?.finally !== "function") && !(0, $67acdcc7df099ae4$export$4fbbab6c30e664d5)(da_promise) && (iframe_promise = $1dd4146ad893cfb2$export$e647444ed9403635())) da_promise = iframe_promise;
|
|
7401
7401
|
if (da_promise) {
|
|
7402
|
-
if (Object.getOwnPropertyDescriptor(
|
|
7402
|
+
if (Object.getOwnPropertyDescriptor(w, $1dd4146ad893cfb2$var$promise_as_string)?.configurable !== false) Object.defineProperty(w, $1dd4146ad893cfb2$var$promise_as_string, {
|
|
7403
7403
|
configurable: false,
|
|
7404
7404
|
enumerable: true,
|
|
7405
7405
|
get () {
|
|
@@ -8161,7 +8161,7 @@ $0643fffeaad31076$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;
|
|
|
8161
8161
|
|
|
8162
8162
|
|
|
8163
8163
|
const $45af9e834781a9bc$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
8164
|
-
const $45af9e834781a9bc$export$a98fc8a2c818d3d8 = /*@__PURE__*/ (()
|
|
8164
|
+
const $45af9e834781a9bc$export$a98fc8a2c818d3d8 = /*@__PURE__*/ (()=>typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
8165
8165
|
function $45af9e834781a9bc$export$f39a7d0667e924a(what_to_watch, sizes_communicator = (0, $607fc90221d440a6$export$e806c6c1615a59ae)(), resolution_factor = 1) {
|
|
8166
8166
|
let currently_live = false;
|
|
8167
8167
|
const ro = new ResizeObserver((0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)((records)=>{
|