@its/core 2.6.0-beta.4 → 2.6.0-beta.5
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/core.es.js +18 -6
- package/package.json +1 -1
package/dist/core.es.js
CHANGED
|
@@ -48467,7 +48467,13 @@ function i5e(e, t) {
|
|
|
48467
48467
|
});
|
|
48468
48468
|
}), r;
|
|
48469
48469
|
}
|
|
48470
|
-
function ORe({
|
|
48470
|
+
function ORe({
|
|
48471
|
+
blob: e,
|
|
48472
|
+
ruleSet: t,
|
|
48473
|
+
dataSource: n,
|
|
48474
|
+
callBacksSet: r = {},
|
|
48475
|
+
extraInterpolateCallBacksSet: i = null
|
|
48476
|
+
}) {
|
|
48471
48477
|
const o = Hh(), [a, s] = Ye(null), [u, c] = Ye();
|
|
48472
48478
|
Xe(() => () => {
|
|
48473
48479
|
a && URL.revokeObjectURL(a), s(null);
|
|
@@ -48481,19 +48487,25 @@ function ORe({ blob: e, ruleSet: t, dataSource: n, callBacksSet: r = {}, extraIn
|
|
|
48481
48487
|
);
|
|
48482
48488
|
return Xe(() => {
|
|
48483
48489
|
if (!e) {
|
|
48484
|
-
|
|
48490
|
+
s(null);
|
|
48485
48491
|
return;
|
|
48486
48492
|
}
|
|
48487
|
-
const d = new Uint8Array(e), h = new Blob([d], {
|
|
48488
|
-
|
|
48489
|
-
|
|
48490
|
-
|
|
48493
|
+
const d = new Uint8Array(e), h = new Blob([d], { type: "image/svg+xml" }), p = new FileReader();
|
|
48494
|
+
p.onload = () => {
|
|
48495
|
+
const y = p.result;
|
|
48496
|
+
s(y);
|
|
48497
|
+
}, p.onerror = () => {
|
|
48498
|
+
console.error("Failed to read SVG blob");
|
|
48499
|
+
}, p.readAsDataURL(h);
|
|
48491
48500
|
}, [e]), /* @__PURE__ */ A(qr, { children: a && u && /* @__PURE__ */ A(
|
|
48492
48501
|
R3,
|
|
48493
48502
|
{
|
|
48494
48503
|
width: 100,
|
|
48495
48504
|
src: a,
|
|
48496
48505
|
evalScripts: "always",
|
|
48506
|
+
onError: (d) => {
|
|
48507
|
+
console.error("ReactSVG Error:", d);
|
|
48508
|
+
},
|
|
48497
48509
|
beforeInjection: (d) => {
|
|
48498
48510
|
l(d), i && i(d);
|
|
48499
48511
|
}
|