@superinterface/react 3.10.0 → 3.10.2
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.cjs +36 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +36 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -3413,7 +3413,7 @@ Suggestions.Item = Item;
|
|
|
3413
3413
|
// src/contexts/markdown/MarkdownContext/lib/components/Code.tsx
|
|
3414
3414
|
import { jsx as _jsx30 } from "react/jsx-runtime";
|
|
3415
3415
|
var Code3 = function(t0) {
|
|
3416
|
-
var $ = _c14(
|
|
3416
|
+
var $ = _c14(5);
|
|
3417
3417
|
var children = t0.children, className = t0.className;
|
|
3418
3418
|
if (className === "language-suggestions") {
|
|
3419
3419
|
var _t;
|
|
@@ -3429,16 +3429,26 @@ var Code3 = function(t0) {
|
|
|
3429
3429
|
return _t;
|
|
3430
3430
|
}
|
|
3431
3431
|
var t1;
|
|
3432
|
-
if ($[2]
|
|
3433
|
-
t1 =
|
|
3432
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
3433
|
+
t1 = {
|
|
3434
|
+
wordBreak: "break-word"
|
|
3435
|
+
};
|
|
3436
|
+
$[2] = t1;
|
|
3437
|
+
} else {
|
|
3438
|
+
t1 = $[2];
|
|
3439
|
+
}
|
|
3440
|
+
var t2;
|
|
3441
|
+
if ($[3] !== children) {
|
|
3442
|
+
t2 = /* @__PURE__ */ _jsx30(RadixCode, {
|
|
3443
|
+
style: t1,
|
|
3434
3444
|
children: children
|
|
3435
3445
|
});
|
|
3436
|
-
$[
|
|
3437
|
-
$[
|
|
3446
|
+
$[3] = children;
|
|
3447
|
+
$[4] = t2;
|
|
3438
3448
|
} else {
|
|
3439
|
-
|
|
3449
|
+
t2 = $[4];
|
|
3440
3450
|
}
|
|
3441
|
-
return
|
|
3451
|
+
return t2;
|
|
3442
3452
|
};
|
|
3443
3453
|
// src/contexts/markdown/MarkdownContext/lib/components/Img/index.tsx
|
|
3444
3454
|
import { c as _c19 } from "react-compiler-runtime";
|
|
@@ -10766,7 +10776,7 @@ import { c as _c56 } from "react-compiler-runtime";
|
|
|
10766
10776
|
import { Flex as Flex35, Card as Card5, Inset as Inset3 } from "@radix-ui/themes";
|
|
10767
10777
|
import { jsx as _jsx93 } from "react/jsx-runtime";
|
|
10768
10778
|
var Content9 = function(t0) {
|
|
10769
|
-
var $ = _c56(
|
|
10779
|
+
var $ = _c56(5);
|
|
10770
10780
|
var fileId = t0.fileId;
|
|
10771
10781
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
10772
10782
|
var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
|
|
@@ -10792,8 +10802,18 @@ var Content9 = function(t0) {
|
|
|
10792
10802
|
}
|
|
10793
10803
|
var t3 = "".concat(superinterfaceContext.baseUrl, "/files/").concat(fileId, "/contents?").concat(nextSearchParams);
|
|
10794
10804
|
var t4;
|
|
10795
|
-
if ($[2]
|
|
10796
|
-
t4 =
|
|
10805
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10806
|
+
t4 = {
|
|
10807
|
+
width: "100%",
|
|
10808
|
+
height: "100%"
|
|
10809
|
+
};
|
|
10810
|
+
$[2] = t4;
|
|
10811
|
+
} else {
|
|
10812
|
+
t4 = $[2];
|
|
10813
|
+
}
|
|
10814
|
+
var t5;
|
|
10815
|
+
if ($[3] !== t3) {
|
|
10816
|
+
t5 = /* @__PURE__ */ _jsx93(Flex35, {
|
|
10797
10817
|
direction: "column",
|
|
10798
10818
|
flexGrow: "1",
|
|
10799
10819
|
gap: "3",
|
|
@@ -10804,20 +10824,20 @@ var Content9 = function(t0) {
|
|
|
10804
10824
|
style: t2,
|
|
10805
10825
|
children: /* @__PURE__ */ _jsx93(Flex35, {
|
|
10806
10826
|
flexGrow: "1",
|
|
10807
|
-
position: "relative",
|
|
10808
10827
|
children: /* @__PURE__ */ _jsx93("embed", {
|
|
10809
|
-
src: t3
|
|
10828
|
+
src: t3,
|
|
10829
|
+
style: t4
|
|
10810
10830
|
})
|
|
10811
10831
|
})
|
|
10812
10832
|
})
|
|
10813
10833
|
})
|
|
10814
10834
|
});
|
|
10815
|
-
$[
|
|
10816
|
-
$[
|
|
10835
|
+
$[3] = t3;
|
|
10836
|
+
$[4] = t5;
|
|
10817
10837
|
} else {
|
|
10818
|
-
|
|
10838
|
+
t5 = $[4];
|
|
10819
10839
|
}
|
|
10820
|
-
return
|
|
10840
|
+
return t5;
|
|
10821
10841
|
};
|
|
10822
10842
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
10823
10843
|
import { jsx as _jsx94, jsxs as _jsxs37, Fragment as _Fragment4 } from "react/jsx-runtime";
|