@depict-ai/utilishared 2.1.4 → 2.1.6

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.
@@ -1,5 +1,5 @@
1
- var $lMD39$solidjs = require("solid-js");
2
1
  var $lMD39$babelruntimehelpersdefineProperty = require("@babel/runtime/helpers/defineProperty");
2
+ var $lMD39$solidjs = require("solid-js");
3
3
  var $lMD39$babelruntimehelpersclassPrivateFieldSet = require("@babel/runtime/helpers/classPrivateFieldSet");
4
4
  var $lMD39$babelruntimehelpersclassPrivateFieldGet = require("@babel/runtime/helpers/classPrivateFieldGet");
5
5
  var $lMD39$solidjsweb = require("solid-js/web");
@@ -29,6 +29,7 @@ function $parcel$export(e, n, v, s) {
29
29
  function $parcel$interopDefault(a) {
30
30
  return a && a.__esModule ? a.default : a;
31
31
  }
32
+ $parcel$export(module.exports, "setOverrideSentryEnvironment", () => $6c406c863286f6e9$export$a13bb02a27aaa5e6);
32
33
  $parcel$export(module.exports, "findMostFrequentItem", () => $9fc783499535a983$export$2d9dc2897d88588);
33
34
  $parcel$export(module.exports, "base64_decode_unicode", () => $6a427682b105a299$export$a7e53ec3b3fdd030);
34
35
  $parcel$export(module.exports, "base64_encode_unicode", () => $6a427682b105a299$export$a1893782a2a6be0d);
@@ -275,7 +276,7 @@ $parcel$export(module.exports, "version", () => $ce0ab19b284b64fa$export$83d89fb
275
276
  $parcel$export(module.exports, "add_to_version_info", () => $045fb30107c9eecc$export$2cefb7e61fcbae00);
276
277
  $parcel$export(module.exports, "sync_el_content_with_accessor", () => $84d13ab567309a50$export$c3f56a35e076f139);
277
278
  $parcel$export(module.exports, "use_href_accessor", () => $59b7011b96010a8e$export$e35115e6d0715f77);
278
- const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.1.4";
279
+ const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.1.6";
279
280
  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
281
  const $7f95f77417d06249$var$browser_prefix_styling = "color: #fff;";
281
282
  let $7f95f77417d06249$var$browser_prefix = "[Depict]";
@@ -314,33 +315,6 @@ function $045fb30107c9eecc$export$fe609f0216e4ebef(url) {
314
315
  for (const [key, value] of Object.entries($045fb30107c9eecc$export$60d1d0e3cfc8b9ed)) url_object.searchParams.set(key, value);
315
316
  return got_url_object ? url_object.href : url_object;
316
317
  }
317
-
318
- /**
319
- * Finds most frequent item in an array, written by chatGPT with some nudging. Returns `undefined` if the array is empty.
320
- * @param arr array to find the most frequent item in
321
- */
322
- function $9fc783499535a983$export$2d9dc2897d88588(arr) {
323
- const freqMap = arr.reduce((map, item) => map.set(item, (map.get(item) || 0) + 1), new Map());
324
- const maxFreq = Math.max(...freqMap.values());
325
- for (let [key, value] of freqMap) {
326
- if (value === maxFreq) return key;
327
- }
328
- }
329
-
330
- // Source: https://stackoverflow.com/a/30106551
331
- /**
332
- * Encoding UTF8 ⇢ base64
333
- */
334
- function $6a427682b105a299$export$a1893782a2a6be0d(str) {
335
- return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function (match, p1) {
336
- return String.fromCharCode(parseInt(p1, 16));
337
- }));
338
- }
339
- function $6a427682b105a299$export$a7e53ec3b3fdd030(str) {
340
- return decodeURIComponent(Array.prototype.map.call(atob(str), function (c) {
341
- return "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2);
342
- }).join(""));
343
- }
344
318
  class $1bf4c150117205e7$export$e2c811ae0eb35313 {
345
319
  constructor() {
346
320
  $parcel$interopDefault($lMD39$babelruntimehelpersdefineProperty)(this, "subscribers_", []);
@@ -583,6 +557,27 @@ function $76a59c6ce18c8fd3$export$10c3e52ef388b81b(ipns) {
583
557
  if (!internal_state_obj) throw new Error("Couldn't get state obj");
584
558
  return $76a59c6ce18c8fd3$export$e806c6c1615a59ae(true, internal_state_obj);
585
559
  }
560
+ const $902c0e005afb7319$export$af2e17a20c2ea3c5 = !(process.env.SENTRY === "true" || process.env.DEPICT_ERROR_REPORTING === "true" || process.env.NEXT_PUBLIC_DEPICT_ERROR_REPORTING === "true") && (process.env.SENTRY === "false" || process.env.DEPICT_ERROR_REPORTING === "false" || process.env.NEXT_PUBLIC_DEPICT_ERROR_REPORTING === "false" || (0, $9e9538f4aff6f83c$export$55fe61489d2c7417)) ? /*@__PURE__*/$902c0e005afb7319$var$fakesentry() : /*@__PURE__*/$6c406c863286f6e9$export$2e2bcd8739ae039(process.env.TENANT || "unknown", undefined, (0, $7f95f77417d06249$export$de56f1198d121036));
561
+ function $902c0e005afb7319$var$fakesentry() {
562
+ // // source: https://docs.sentry.io/platforms/javascript/troubleshooting/#dealing-with-ad-blockers
563
+ // const handler = {
564
+ // get: function (_, key) {
565
+ // return new Proxy(function (cb) {
566
+ // if (key === "flush" || key === "close") return Promise.resolve();
567
+ // if (typeof cb === "function") return cb(fake_sentry);
568
+ // return fake_sentry;
569
+ // }, handler);
570
+ // },
571
+ // };
572
+ // var fake_sentry = new Proxy({ captureException: () => {}, captureMessage: () => {}, withScope: () => {} }, handler);
573
+ // the magical proxy stuff has infinite looped for me on rp, old fashioned NOOP functions will have to make do
574
+ const fake_sentry = {
575
+ captureException: () => {},
576
+ captureMessage: () => {},
577
+ withScope: () => {}
578
+ };
579
+ return fake_sentry;
580
+ }
586
581
  function $46b94b232dc792af$export$8048b892d651b310(exception, error_for_stack) {
587
582
  $7f95f77417d06249$export$de56f1198d121036(exception);
588
583
  if (0, $9e9538f4aff6f83c$export$55fe61489d2c7417) /* eslint-disable no-console */console.trace();
@@ -668,6 +663,8 @@ function $6bf620c74776aef6$export$79f910a98828378d(obj, variable, async_iterator
668
663
  });
669
664
  return definition_ipns;
670
665
  }
666
+ let $6c406c863286f6e9$var$overrideEnvironment;
667
+ const $6c406c863286f6e9$export$a13bb02a27aaa5e6 = env => $6c406c863286f6e9$var$overrideEnvironment = env;
671
668
  function $6c406c863286f6e9$export$2e2bcd8739ae039(TENANT, more_options, dlog, extra_sentry_url, script_integrity) {
672
669
  const sentry_object = {};
673
670
  if (process.env.BUILD_TARGET !== "modern" && Proxy.toString().indexOf("[native code]") === -1) {
@@ -791,7 +788,7 @@ async function $6c406c863286f6e9$var$load_sentry(TENANT) {
791
788
  const client = new BrowserClient({
792
789
  dsn: "https://1dd6c18a286b40a69dab1cdfe80bad9b@o464891.ingest.sentry.io/5476183",
793
790
  release: process.env.sentry_version,
794
- environment: TENANT,
791
+ environment: $6c406c863286f6e9$var$overrideEnvironment || TENANT,
795
792
  // @ts-ignore - can't seem to get the typing to work
796
793
  integrations: defaultIntegrations,
797
794
  ...more_options
@@ -804,26 +801,32 @@ async function $6c406c863286f6e9$var$load_sentry(TENANT) {
804
801
  // https://github.com/getsentry/sentry-javascript/issues/2541
805
802
  return hub;
806
803
  }
807
- const $902c0e005afb7319$export$af2e17a20c2ea3c5 = !(process.env.SENTRY === "true" || process.env.DEPICT_ERROR_REPORTING === "true" || process.env.NEXT_PUBLIC_DEPICT_ERROR_REPORTING === "true") && (process.env.SENTRY === "false" || process.env.DEPICT_ERROR_REPORTING === "false" || process.env.NEXT_PUBLIC_DEPICT_ERROR_REPORTING === "false" || (0, $9e9538f4aff6f83c$export$55fe61489d2c7417)) ? /*@__PURE__*/$902c0e005afb7319$var$fakesentry() : /*@__PURE__*/$6c406c863286f6e9$export$2e2bcd8739ae039(process.env.TENANT || "unknown", undefined, (0, $7f95f77417d06249$export$de56f1198d121036));
808
- function $902c0e005afb7319$var$fakesentry() {
809
- // // source: https://docs.sentry.io/platforms/javascript/troubleshooting/#dealing-with-ad-blockers
810
- // const handler = {
811
- // get: function (_, key) {
812
- // return new Proxy(function (cb) {
813
- // if (key === "flush" || key === "close") return Promise.resolve();
814
- // if (typeof cb === "function") return cb(fake_sentry);
815
- // return fake_sentry;
816
- // }, handler);
817
- // },
818
- // };
819
- // var fake_sentry = new Proxy({ captureException: () => {}, captureMessage: () => {}, withScope: () => {} }, handler);
820
- // the magical proxy stuff has infinite looped for me on rp, old fashioned NOOP functions will have to make do
821
- const fake_sentry = {
822
- captureException: () => {},
823
- captureMessage: () => {},
824
- withScope: () => {}
825
- };
826
- return fake_sentry;
804
+
805
+ /**
806
+ * Finds most frequent item in an array, written by chatGPT with some nudging. Returns `undefined` if the array is empty.
807
+ * @param arr array to find the most frequent item in
808
+ */
809
+ function $9fc783499535a983$export$2d9dc2897d88588(arr) {
810
+ const freqMap = arr.reduce((map, item) => map.set(item, (map.get(item) || 0) + 1), new Map());
811
+ const maxFreq = Math.max(...freqMap.values());
812
+ for (let [key, value] of freqMap) {
813
+ if (value === maxFreq) return key;
814
+ }
815
+ }
816
+
817
+ // Source: https://stackoverflow.com/a/30106551
818
+ /**
819
+ * Encoding UTF8 ⇢ base64
820
+ */
821
+ function $6a427682b105a299$export$a1893782a2a6be0d(str) {
822
+ return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function (match, p1) {
823
+ return String.fromCharCode(parseInt(p1, 16));
824
+ }));
825
+ }
826
+ function $6a427682b105a299$export$a7e53ec3b3fdd030(str) {
827
+ return decodeURIComponent(Array.prototype.map.call(atob(str), function (c) {
828
+ return "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2);
829
+ }).join(""));
827
830
  }
828
831
  function $3b52ccc10510b32a$export$b3bbfd758f11cfa9(fn, message) {
829
832
  let severity = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "error";
@@ -5401,8 +5404,8 @@ $ebe64dbcfb106f16$export$2e2bcd8739ae039 = async options => {
5401
5404
  };
5402
5405
 
5403
5406
  // @ts-ignore
5404
- var $22c667835a3196a9$exports = {};
5405
- $22c667835a3196a9$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
5407
+ var $d64ae53fcd29bba1$exports = {};
5408
+ $d64ae53fcd29bba1$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
5406
5409
  const $3f49f9b73bfc2a38$var$default_image_src = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjYsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iOSwyLjYgOC4zLDMuNCAxMi40LDcuNSAxLjYsNy41IDEuNiw4LjUgMTIuNCw4LjUgOC4zLDEyLjYgOSwxMy40IDE0LjQsOCAiLz4NCjwvc3ZnPg0K";
5407
5410
  class $3f49f9b73bfc2a38$export$4d41c6499d53639c extends (0, $817cb0cb4b98187e$export$68babfc5be0de5da) {
5408
5411
  constructor(static_options, override_lazyfier_options) {
@@ -5434,7 +5437,7 @@ class $3f49f9b73bfc2a38$export$4d41c6499d53639c extends (0, $817cb0cb4b98187e$ex
5434
5437
  function $3f49f9b73bfc2a38$export$f1b8b9fd75ddcab1(slider) {
5435
5438
  const style_elem = document.createElement("style");
5436
5439
  style_elem.type = "text/css";
5437
- style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($22c667835a3196a9$exports)));
5440
+ style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($d64ae53fcd29bba1$exports)));
5438
5441
  slider.container.appendChild(style_elem);
5439
5442
  }
5440
5443
  async function $bbf8331c74194de9$export$cd12721587f4f16d(t, rendering_options, options_for_us, slider_options, override_lazyfier_options) {
@@ -6103,8 +6106,8 @@ async function $79e67f88d50f1879$export$b0a773486c1c2312(t, recommendation_rende
6103
6106
  }
6104
6107
 
6105
6108
  // @ts-ignore
6106
- var $a395aeaeccd7ae3d$exports = {};
6107
- $a395aeaeccd7ae3d$exports = ".depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n";
6109
+ var $2f73869d45c5c974$exports = {};
6110
+ $2f73869d45c5c974$exports = ".depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n";
6108
6111
  let $87dd73b8c244f3d2$var$slider_styling_was_inserted = false;
6109
6112
  async function $87dd73b8c244f3d2$export$82cfdc85a4d15688(t, recommendation_renderer_options, _ref) {
6110
6113
  let {
@@ -6128,7 +6131,7 @@ async function $87dd73b8c244f3d2$export$82cfdc85a4d15688(t, recommendation_rende
6128
6131
  if (!elements) return rendering_result;
6129
6132
  if (!$87dd73b8c244f3d2$var$slider_styling_was_inserted) {
6130
6133
  $87dd73b8c244f3d2$var$slider_styling_was_inserted = true;
6131
- $e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($a395aeaeccd7ae3d$exports)));
6134
+ $e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($2f73869d45c5c974$exports)));
6132
6135
  }
6133
6136
  insertion_point.replaceWith(slider.container);
6134
6137
  slider.insert_here.append(...elements);
@@ -8221,8 +8224,8 @@ async function $468dbae10b24d59f$export$c068ad5361be7646(_ref) {
8221
8224
  on_close_(exit_oos_iterator);
8222
8225
  }));
8223
8226
  }
8224
- var $46b697935d651c75$exports = {};
8225
- $46b697935d651c75$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
8227
+ var $6c1103c313edcc81$exports = {};
8228
+ $6c1103c313edcc81$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
8226
8229
  let $ba9b4cd7e24de87e$var$inserted = false;
8227
8230
  const $ba9b4cd7e24de87e$export$84712d0562a614b8 = _ref => {
8228
8231
  let {
@@ -8234,7 +8237,7 @@ const $ba9b4cd7e24de87e$export$84712d0562a614b8 = _ref => {
8234
8237
  } = _ref;
8235
8238
  if (!$ba9b4cd7e24de87e$var$inserted) {
8236
8239
  // Insert styling on first import
8237
- $e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($46b697935d651c75$exports)));
8240
+ $e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($6c1103c313edcc81$exports)));
8238
8241
  $ba9b4cd7e24de87e$var$inserted = true;
8239
8242
  }
8240
8243
  return $lMD39$solidjsweb.ssrElement("div", $lMD39$solidjsweb.mergeProps({
@@ -8430,8 +8433,8 @@ const $151f8676c5d42e80$export$237455ad7e59d4e5 = function () {
8430
8433
  collapse: collapse
8431
8434
  };
8432
8435
  };
8433
- var $40bc83c42fbfc3cd$exports = {};
8434
- $40bc83c42fbfc3cd$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n";
8436
+ var $4f104a7ebe4cdc54$exports = {};
8437
+ $4f104a7ebe4cdc54$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n";
8435
8438
  var $b42b9f62e8b6cb2d$var$_tmpl$ = ["<picture", ">", "</picture>"];
8436
8439
  const $b42b9f62e8b6cb2d$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
8437
8440
  const $b42b9f62e8b6cb2d$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
@@ -8589,7 +8592,7 @@ const $dfce76a4aeb41067$export$788756b42446dc2d = _ref => {
8589
8592
  } = _ref;
8590
8593
  if (!$dfce76a4aeb41067$var$inserted) {
8591
8594
  // Insert styling on first import
8592
- $e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($40bc83c42fbfc3cd$exports)));
8595
+ $e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($4f104a7ebe4cdc54$exports)));
8593
8596
  $dfce76a4aeb41067$var$inserted = true;
8594
8597
  }
8595
8598
  const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $dfce76a4aeb41067$var$Image(options) : $dfce76a4aeb41067$var$CompatibleImage(options);
@@ -8664,8 +8667,8 @@ function $dfce76a4aeb41067$var$srcset_comp_from_map_or_new(rendering_options) {
8664
8667
  }
8665
8668
  return sourceset_component;
8666
8669
  }
8667
- var $f90bbaa8a24d72ca$exports = {};
8668
- $f90bbaa8a24d72ca$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
8670
+ var $be5deeed4683b89f$exports = {};
8671
+ $be5deeed4683b89f$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
8669
8672
  var $8928a1027461fba4$var$_tmpl$ = ["<div", ' class="images-container"><!--$-->', '<!--/--><div class="main-image-container">', "</div></div>"],
8670
8673
  $8928a1027461fba4$var$_tmpl$2 = ["<div", ' class="second-image-container">', "</div>"];
8671
8674
  // Saving bytez
@@ -8800,7 +8803,7 @@ const $8928a1027461fba4$export$2369f6fc1c911576 = _ref => {
8800
8803
  ...options
8801
8804
  } = _ref;
8802
8805
  if (!$8928a1027461fba4$var$styling_inserted) {
8803
- $e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($f90bbaa8a24d72ca$exports)));
8806
+ $e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($be5deeed4683b89f$exports)));
8804
8807
  $8928a1027461fba4$var$styling_inserted = true;
8805
8808
  }
8806
8809
  const main_image = $dfce76a4aeb41067$export$788756b42446dc2d({
@@ -1,5 +1,5 @@
1
1
  import { JSX, Accessor } from "solid-js";
2
- export const version = "2.1.4";
2
+ export const version = "2.1.6";
3
3
  export const is_debug: boolean;
4
4
  /**
5
5
  * Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
@@ -21,19 +21,6 @@ export function add_to_version_info(package_name: string, version: string): void
21
21
  * @returns the same type as the input but with added query params
22
22
  */
23
23
  export function add_version_query_params<T extends string | URL>(url: T): T;
24
- /**
25
- * Finds most frequent item in an array, written by chatGPT with some nudging. Returns `undefined` if the array is empty.
26
- * @param arr array to find the most frequent item in
27
- */
28
- export function findMostFrequentItem<T>(arr: T[]): T | undefined;
29
- /**
30
- * Encoding UTF8 ⇢ base64
31
- */
32
- export function base64_encode_unicode(str: any): string;
33
- /**
34
- * Decoding base64 ⇢ UTF8
35
- */
36
- export function base64_decode_unicode(str: any): string;
37
24
  /**
38
25
  * Class containing state that an IPNS operates on. It's only exported for type info and in case that you want to use it for instanceof checks.
39
26
  * subscribers is an array of functions that get called every time push_value is called with a new value AND all previous subscribers are done
@@ -108,6 +95,11 @@ export function make_ipns_stateless<T>(ipns: IPNS<T>): IPNS<any>;
108
95
  * @return A "cloned" ipns with the desired state-behavior. Keep in mind that exiting this one will not exit the one that was cloned.
109
96
  */
110
97
  export function make_ipns_stateful<T>(ipns: IPNS<T>): IPNS<any>;
98
+ export const Sentry: Hub | {
99
+ captureException: (...args: any[]) => void;
100
+ captureMessage: (...args: any[]) => void;
101
+ withScope: (...args: any[]) => void;
102
+ };
111
103
  /**
112
104
  * @deprecated please use report instead and provide a severity
113
105
  */
@@ -125,11 +117,20 @@ export function err(exception: Error | any, error_for_stack?: Error): undefined;
125
117
  export function is_available_in(obj: Object, property: PropertyKey, ...sub_objects_to_wait_for: PropertyKey[]): any;
126
118
  export function find_descriptor(obj: Object, prop: PropertyKey): PropertyDescriptor | undefined;
127
119
  export function variable_setter_to_ipns<T>(obj: Object, variable: PropertyKey, async_iterator_should_return_state_on_first_call?: boolean): IPNS<T>;
128
- export const Sentry: Hub | {
129
- captureException: (...args: any[]) => void;
130
- captureMessage: (...args: any[]) => void;
131
- withScope: (...args: any[]) => void;
132
- };
120
+ export const setOverrideSentryEnvironment: (env: string) => string;
121
+ /**
122
+ * Finds most frequent item in an array, written by chatGPT with some nudging. Returns `undefined` if the array is empty.
123
+ * @param arr array to find the most frequent item in
124
+ */
125
+ export function findMostFrequentItem<T>(arr: T[]): T | undefined;
126
+ /**
127
+ * Encoding UTF8 ⇢ base64
128
+ */
129
+ export function base64_encode_unicode(str: any): string;
130
+ /**
131
+ * Decoding base64 ⇢ UTF8
132
+ */
133
+ export function base64_decode_unicode(str: any): string;
133
134
  /**
134
135
  * Severity level to send to sentry.
135
136
  * We can also send `log`, `info`, `debug`, `critical` and `fatal` but we haven't had a need for it yet.