@depict-ai/utilishared 0.0.69 → 0.0.71

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 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.69";
3
+ export const version = "0.0.71";
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.69";
277
+ const $815f67c61b4c0a42$export$83d89fbfd8236492 = "0.0.71";
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"))();
@@ -4314,6 +4314,7 @@ const $107a74aa4ea5902d$export$34b9dba7ce09269b = (tag, { children: children , .
4314
4314
  // Exhaustive list (I think) for these checks should be ["svg","animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","switch","symbol","text","textPath","tspan","use","view"]
4315
4315
  const is_svg = props?.xmlns || tag == "defs" || tag == "filter" || tag == "fecolormatrix" || tag == "g" || tag == "circle" || tag == "circle" || tag == "svg" || tag == "path" || tag == "polygon";
4316
4316
  if (is_svg) var namespace = props?.xmlns || "http://www.w3.org/2000/svg";
4317
+ if (typeof document === "undefined") return {};
4317
4318
  const element = is_svg ? document.createElementNS(namespace, tag) : document.createElement(tag);
4318
4319
  for(const key in props){
4319
4320
  const value = props[key];
@@ -4330,6 +4331,7 @@ const $107a74aa4ea5902d$export$34b9dba7ce09269b = (tag, { children: children , .
4330
4331
  };
4331
4332
  const $107a74aa4ea5902d$export$25062201e9e25d76 = $107a74aa4ea5902d$export$34b9dba7ce09269b;
4332
4333
  const $107a74aa4ea5902d$export$ffb0004e005737fa = ({ children: children }, _unknown)=>{
4334
+ if (typeof document === "undefined") return {};
4333
4335
  const df = document.createDocumentFragment();
4334
4336
  $107a74aa4ea5902d$var$appendChild(df, children);
4335
4337
  return df;
@@ -7660,14 +7662,14 @@ function $bd274a272f8400ec$export$4fbbab6c30e664d5(value) {
7660
7662
 
7661
7663
 
7662
7664
  const $6d0c26cd36f5eeff$var$promise_as_string = "Promise";
7663
- const $6d0c26cd36f5eeff$var$w = window;
7664
7665
  function $6d0c26cd36f5eeff$export$38e89c688f9d553a() {
7665
7666
  try {
7666
- let da_promise = $6d0c26cd36f5eeff$var$w[$6d0c26cd36f5eeff$var$promise_as_string];
7667
+ const w = window;
7668
+ let da_promise = w[$6d0c26cd36f5eeff$var$promise_as_string];
7667
7669
  let iframe_promise;
7668
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;
7669
7671
  if (da_promise) {
7670
- if (Object.getOwnPropertyDescriptor($6d0c26cd36f5eeff$var$w, $6d0c26cd36f5eeff$var$promise_as_string)?.configurable !== false) Object.defineProperty($6d0c26cd36f5eeff$var$w, $6d0c26cd36f5eeff$var$promise_as_string, {
7672
+ if (Object.getOwnPropertyDescriptor(w, $6d0c26cd36f5eeff$var$promise_as_string)?.configurable !== false) Object.defineProperty(w, $6d0c26cd36f5eeff$var$promise_as_string, {
7671
7673
  configurable: false,
7672
7674
  enumerable: true,
7673
7675
  get () {
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.69";
7
+ const $0766c85d387a9765$export$83d89fbfd8236492 = "0.0.71";
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"))();
@@ -4044,6 +4044,7 @@ const $63cbb5de51d11596$export$34b9dba7ce09269b = (tag, { children: children , .
4044
4044
  // Exhaustive list (I think) for these checks should be ["svg","animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","switch","symbol","text","textPath","tspan","use","view"]
4045
4045
  const is_svg = props?.xmlns || tag == "defs" || tag == "filter" || tag == "fecolormatrix" || tag == "g" || tag == "circle" || tag == "circle" || tag == "svg" || tag == "path" || tag == "polygon";
4046
4046
  if (is_svg) var namespace = props?.xmlns || "http://www.w3.org/2000/svg";
4047
+ if (typeof document === "undefined") return {};
4047
4048
  const element = is_svg ? document.createElementNS(namespace, tag) : document.createElement(tag);
4048
4049
  for(const key in props){
4049
4050
  const value = props[key];
@@ -4060,6 +4061,7 @@ const $63cbb5de51d11596$export$34b9dba7ce09269b = (tag, { children: children , .
4060
4061
  };
4061
4062
  const $63cbb5de51d11596$export$25062201e9e25d76 = $63cbb5de51d11596$export$34b9dba7ce09269b;
4062
4063
  const $63cbb5de51d11596$export$ffb0004e005737fa = ({ children: children }, _unknown)=>{
4064
+ if (typeof document === "undefined") return {};
4063
4065
  const df = document.createDocumentFragment();
4064
4066
  $63cbb5de51d11596$var$appendChild(df, children);
4065
4067
  return df;
@@ -7390,14 +7392,14 @@ function $67acdcc7df099ae4$export$4fbbab6c30e664d5(value) {
7390
7392
 
7391
7393
 
7392
7394
  const $1dd4146ad893cfb2$var$promise_as_string = "Promise";
7393
- const $1dd4146ad893cfb2$var$w = window;
7394
7395
  function $1dd4146ad893cfb2$export$38e89c688f9d553a() {
7395
7396
  try {
7396
- let da_promise = $1dd4146ad893cfb2$var$w[$1dd4146ad893cfb2$var$promise_as_string];
7397
+ const w = window;
7398
+ let da_promise = w[$1dd4146ad893cfb2$var$promise_as_string];
7397
7399
  let iframe_promise;
7398
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;
7399
7401
  if (da_promise) {
7400
- if (Object.getOwnPropertyDescriptor($1dd4146ad893cfb2$var$w, $1dd4146ad893cfb2$var$promise_as_string)?.configurable !== false) Object.defineProperty($1dd4146ad893cfb2$var$w, $1dd4146ad893cfb2$var$promise_as_string, {
7402
+ if (Object.getOwnPropertyDescriptor(w, $1dd4146ad893cfb2$var$promise_as_string)?.configurable !== false) Object.defineProperty(w, $1dd4146ad893cfb2$var$promise_as_string, {
7401
7403
  configurable: false,
7402
7404
  enumerable: true,
7403
7405
  get () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/utilishared",
3
- "version": "0.0.69",
3
+ "version": "0.0.71",
4
4
  "packageManager": "yarn@3.2.2",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",