@sanity/ui 2.14.0 → 2.14.1
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 +4 -5
- 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 +4 -5
- 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 +4 -5
- 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/package.json +1 -1
- 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 = {
|