@sanity/ui 2.14.0 → 2.14.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/_chunks-cjs/_visual-editing.js +7 -9
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-cjs/refractor.js +1 -1
- package/dist/_chunks-cjs/refractor.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs +7 -9
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_chunks-es/refractor.mjs +1 -1
- package/dist/_chunks-es/refractor.mjs.map +1 -1
- package/dist/_legacy/_visual-editing.esm.js +7 -9
- package/dist/_legacy/_visual-editing.esm.js.map +1 -1
- package/dist/_legacy/refractor.esm.js +1 -1
- package/dist/_legacy/refractor.esm.js.map +1 -1
- package/dist/index.esm.js +85 -30
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +85 -30
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +85 -30
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
- package/src/core/primitives/code/code.tsx +1 -1
- package/src/core/primitives/code/refractor.tsx +4 -3
|
@@ -2484,13 +2484,12 @@ const LazyRefractor = react.lazy(() => Promise.resolve().then(function() {
|
|
|
2484
2484
|
const t1 = useArrayProp(t0 === void 0 ? 2 : t0);
|
|
2485
2485
|
let t2;
|
|
2486
2486
|
$[6] !== children ? (t2 = /* @__PURE__ */ jsxRuntime.jsx("code", { children }), $[6] = children, $[7] = t2) : t2 = $[7];
|
|
2487
|
-
|
|
2487
|
+
let t3;
|
|
2488
|
+
$[8] !== children || $[9] !== language ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(LazyRefractor, { language, value: children }), $[8] = children, $[9] = language, $[10] = t3) : t3 = $[10];
|
|
2488
2489
|
let t4;
|
|
2489
|
-
$[
|
|
2490
|
+
$[11] !== t2 || $[12] !== t3 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: t2, children: t3 }), $[11] = t2, $[12] = t3, $[13] = t4) : t4 = $[13];
|
|
2490
2491
|
let t5;
|
|
2491
|
-
$[
|
|
2492
|
-
let t6;
|
|
2493
|
-
return $[14] !== ref || $[15] !== restProps || $[16] !== t1 || $[17] !== t5 || $[18] !== weight ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(StyledCode, { "data-ui": "Code", ...restProps, $size: t1, $weight: weight, ref, children: t5 }), $[14] = ref, $[15] = restProps, $[16] = t1, $[17] = t5, $[18] = weight, $[19] = t6) : t6 = $[19], t6;
|
|
2492
|
+
return $[14] !== ref || $[15] !== restProps || $[16] !== t1 || $[17] !== t4 || $[18] !== weight ? (t5 = /* @__PURE__ */ jsxRuntime.jsx(StyledCode, { "data-ui": "Code", ...restProps, $size: t1, $weight: weight, ref, children: t4 }), $[14] = ref, $[15] = restProps, $[16] = t1, $[17] = t4, $[18] = weight, $[19] = t5) : t5 = $[19], t5;
|
|
2494
2493
|
});
|
|
2495
2494
|
Code.displayName = "ForwardRef(Code)";
|
|
2496
2495
|
const BASE_STYLE$1 = {
|
|
@@ -3303,11 +3302,10 @@ const StyledVirtualList = styledComponents.styled.div.withConfig({
|
|
|
3303
3302
|
break bb0;
|
|
3304
3303
|
}
|
|
3305
3304
|
if (itemHeight === -1) {
|
|
3306
|
-
|
|
3305
|
+
let t123;
|
|
3306
|
+
$[26] !== items[0] || $[27] !== renderItem ? (t123 = renderItem(items[0]), $[26] = items[0], $[27] = renderItem, $[28] = t123) : t123 = $[28];
|
|
3307
3307
|
let t132;
|
|
3308
|
-
$[
|
|
3309
|
-
let t142;
|
|
3310
|
-
$[29] !== t132 ? (t142 = [/* @__PURE__ */ jsxRuntime.jsx(ItemWrapper, { children: t132 }, 0)], $[29] = t132, $[30] = t142) : t142 = $[30], t11 = t142;
|
|
3308
|
+
$[29] !== t123 ? (t132 = [/* @__PURE__ */ jsxRuntime.jsx(ItemWrapper, { children: t123 }, 0)], $[29] = t123, $[30] = t132) : t132 = $[30], t11 = t132;
|
|
3311
3309
|
break bb0;
|
|
3312
3310
|
}
|
|
3313
3311
|
let t122;
|