@depict-ai/utilishared 0.0.69 → 0.0.70

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.70";
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.70";
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;
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.70";
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;
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.70",
4
4
  "packageManager": "yarn@3.2.2",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",