@depict-ai/utilishared 1.0.33 → 1.0.34

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/ES10/index.cjs CHANGED
@@ -275,7 +275,7 @@ $parcel$export(module.exports, "hex_to_rgb", () => $b5388c1e3ff41e88$export$ca30
275
275
  $parcel$export(module.exports, "version", () => $ce0ab19b284b64fa$export$83d89fbfd8236492);
276
276
  $parcel$export(module.exports, "add_to_version_info", () => $045fb30107c9eecc$export$2cefb7e61fcbae00);
277
277
  $parcel$export(module.exports, "edit_current_page_meta_tags", () => $0126fdc29a9f7f2d$export$ef73ea4f975745ba);
278
- const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "1.0.33";
278
+ const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "1.0.34";
279
279
  const $9e9538f4aff6f83c$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
280
280
  const $7f95f77417d06249$var$browser_prefix_styling = "color: #fff;";
281
281
  let $7f95f77417d06249$var$browser_prefix = "[Depict]";
@@ -4861,7 +4861,10 @@ function $08a94efe56c2b35f$var$_create_element_structure2() {
4861
4861
  subtree: true
4862
4862
  });
4863
4863
  for (const kid of element.children) this.observer.observe(kid);
4864
- (0, $03c157d68c9fcbac$export$b6ae1bc530f4c149).wait_for_listener("removed", element).then(() => cache_mo.disconnect());
4864
+ (0, $03c157d68c9fcbac$export$b6ae1bc530f4c149).wait_for_listener("removed", element).then(el => {
4865
+ if (document.documentElement.contains(el)) return; // Don't accidentally disconnect if we already got re-inserted
4866
+ cache_mo.disconnect();
4867
+ });
4865
4868
  });
4866
4869
  }
4867
4870
  }
package/ES10/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference path="../jsx.d.ts" />
2
2
  import { EUnavailabilityType } from "@depict-ai/types/api/TrackV2Request";
3
3
  import { Accessor } from "solid-js";
4
- export const version = "1.0.33";
4
+ export const version = "1.0.34";
5
5
  export const is_debug: boolean;
6
6
  /**
7
7
  * Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
package/ES10/index.js CHANGED
@@ -15,7 +15,7 @@ function $parcel$export(e, n, v, s) {
15
15
  function $parcel$interopDefault(a) {
16
16
  return a && a.__esModule ? a.default : a;
17
17
  }
18
- const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "1.0.33";
18
+ const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "1.0.34";
19
19
  const $a5a2bdb4ae93374b$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
20
20
  const $241f2f02cc612a49$var$browser_prefix_styling = "color: #fff;";
21
21
  let $241f2f02cc612a49$var$browser_prefix = "[Depict]";
@@ -4601,7 +4601,10 @@ function $be288a83d9eabf2a$var$_create_element_structure2() {
4601
4601
  subtree: true
4602
4602
  });
4603
4603
  for (const kid of element.children) this.observer.observe(kid);
4604
- (0, $90fa633a9564f115$export$b6ae1bc530f4c149).wait_for_listener("removed", element).then(() => cache_mo.disconnect());
4604
+ (0, $90fa633a9564f115$export$b6ae1bc530f4c149).wait_for_listener("removed", element).then(el => {
4605
+ if (document.documentElement.contains(el)) return; // Don't accidentally disconnect if we already got re-inserted
4606
+ cache_mo.disconnect();
4607
+ });
4605
4608
  });
4606
4609
  }
4607
4610
  }
package/latest/index.cjs CHANGED
@@ -272,7 +272,7 @@ $parcel$export(module.exports, "hex_to_rgb", () => $d73746ee466f09ca$export$ca30
272
272
  $parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fbfd8236492);
273
273
  $parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
274
274
  $parcel$export(module.exports, "edit_current_page_meta_tags", () => $8838e3e61b748a8b$export$ef73ea4f975745ba);
275
- const $815f67c61b4c0a42$export$83d89fbfd8236492 = "1.0.33";
275
+ const $815f67c61b4c0a42$export$83d89fbfd8236492 = "1.0.34";
276
276
  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" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
277
277
  const $e6c6e7929ea385ae$var$browser_prefix_styling = "color: #fff;";
278
278
  let $e6c6e7929ea385ae$var$browser_prefix = "[Depict]";
@@ -4354,7 +4354,10 @@ class $1683d0164abd7c1d$export$692b27c28639e5b9 {
4354
4354
  subtree: true
4355
4355
  });
4356
4356
  for (const kid of element.children) this.observer.observe(kid);
4357
- (0, $2a1cbc63a04d4a2d$export$b6ae1bc530f4c149).wait_for_listener("removed", element).then(() => cache_mo.disconnect());
4357
+ (0, $2a1cbc63a04d4a2d$export$b6ae1bc530f4c149).wait_for_listener("removed", element).then(el => {
4358
+ if (document.documentElement.contains(el)) return; // Don't accidentally disconnect if we already got re-inserted
4359
+ cache_mo.disconnect();
4360
+ });
4358
4361
  });
4359
4362
  }
4360
4363
  }
package/latest/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference path="../jsx.d.ts" />
2
2
  import { EUnavailabilityType } from "@depict-ai/types/api/TrackV2Request";
3
3
  import { Accessor } from "solid-js";
4
- export const version = "1.0.33";
4
+ export const version = "1.0.34";
5
5
  export const is_debug: boolean;
6
6
  /**
7
7
  * Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
package/latest/index.js CHANGED
@@ -12,7 +12,7 @@ function $parcel$export(e, n, v, s) {
12
12
  function $parcel$interopDefault(a) {
13
13
  return a && a.__esModule ? a.default : a;
14
14
  }
15
- const $0766c85d387a9765$export$83d89fbfd8236492 = "1.0.33";
15
+ const $0766c85d387a9765$export$83d89fbfd8236492 = "1.0.34";
16
16
  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" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
17
17
  const $649f456f663da9fc$var$browser_prefix_styling = "color: #fff;";
18
18
  let $649f456f663da9fc$var$browser_prefix = "[Depict]";
@@ -4094,7 +4094,10 @@ class $ef9394fafebd5eab$export$692b27c28639e5b9 {
4094
4094
  subtree: true
4095
4095
  });
4096
4096
  for (const kid of element.children) this.observer.observe(kid);
4097
- (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).wait_for_listener("removed", element).then(() => cache_mo.disconnect());
4097
+ (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).wait_for_listener("removed", element).then(el => {
4098
+ if (document.documentElement.contains(el)) return; // Don't accidentally disconnect if we already got re-inserted
4099
+ cache_mo.disconnect();
4100
+ });
4098
4101
  });
4099
4102
  }
4100
4103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/utilishared",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "packageManager": "yarn@3.2.2",
5
5
  "source": "src/index.ts",
6
6
  "types": "ES10/index.d.ts",