Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

next-sanity

Package Overview
Dependencies
Maintainers
33
Versions
393
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-sanity - npm Package Compare versions

Comparing version 0.6.10 to 0.6.11

lib/cjs/apple-touch-icon.abc4aca2.png

200

lib/cjs/studio.js

@@ -1,8 +0,8 @@

var $aBkVq$reactjsxruntime = require("react/jsx-runtime");
var $aBkVq$react = require("react");
var $aBkVq$sanity = require("sanity");
var $aBkVq$styledcomponents = require("styled-components");
var $aBkVq$nexthead = require("next/head");
var $aBkVq$nextdocument = require("next/document");
var $aBkVq$nextrouter = require("next/router");
var $cerUD$reactjsxruntime = require("react/jsx-runtime");
var $cerUD$react = require("react");
var $cerUD$sanity = require("sanity");
var $cerUD$styledcomponents = require("styled-components");
var $cerUD$nexthead = require("next/head");
var $cerUD$nextdocument = require("next/document");
var $cerUD$nextrouter = require("next/router");

@@ -31,6 +31,6 @@ function $parcel$exportWildcard(dest, source) {

}
var $de3959199b10acaa$exports = {};
var $53f899201c613ec3$exports = {};
var $5aa79282f535e8b1$exports = {};
var $c8bf9e0a6313dcb9$exports = {};
$parcel$export($53f899201c613ec3$exports, "NextStudio", () => $53f899201c613ec3$export$eefb95cccd1bb6c5);
$parcel$export($c8bf9e0a6313dcb9$exports, "NextStudio", () => $c8bf9e0a6313dcb9$export$eefb95cccd1bb6c5);

@@ -43,12 +43,12 @@

* It's a drop-in replacement for `import {Studio} from 'sanity'`
*/ const $53f899201c613ec3$var$NextStudioComponent = ({ children: children , config: config , unstable__noGlobalStyle: unstable__noGlobalStyle , unstable__noTailwindSvgFix: unstable__noTailwindSvgFix , unstable__head: unstable__head , unstable__document_title: unstable__document_title , unstable__bg: unstable__bg , unstable__noFavicons: unstable__noFavicons , ...props })=>{
const theme = (0, $c1f9915ed553476b$export$93d4e7f90805808f)(config);
const { themeColorLight: themeColorLight , themeColorDark: themeColorDark } = (0, $c1f9915ed553476b$export$d3a2146a441ec034)(theme);
return /*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsxs)((0, $aBkVq$reactjsxruntime.Fragment), {
*/ const $c8bf9e0a6313dcb9$var$NextStudioComponent = ({ children: children , config: config , unstable__noGlobalStyle: unstable__noGlobalStyle , unstable__noTailwindSvgFix: unstable__noTailwindSvgFix , unstable__head: unstable__head , unstable__document_title: unstable__document_title , unstable__bg: unstable__bg , unstable__noFavicons: unstable__noFavicons , ...props })=>{
const theme = (0, $b07d91633f3d677b$export$93d4e7f90805808f)(config);
const { themeColorLight: themeColorLight , themeColorDark: themeColorDark } = (0, $b07d91633f3d677b$export$d3a2146a441ec034)(theme);
return /*#__PURE__*/ (0, $cerUD$reactjsxruntime.jsxs)((0, $cerUD$reactjsxruntime.Fragment), {
children: [
children || /*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsx)((0, $aBkVq$sanity.Studio), {
children || /*#__PURE__*/ (0, $cerUD$reactjsxruntime.jsx)((0, $cerUD$sanity.Studio), {
config: config,
...props
}),
/*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsx)((0, $3e6cd9b42bc397c4$export$79723eee2c1bf75e), {
/*#__PURE__*/ (0, $cerUD$reactjsxruntime.jsx)((0, $9a339c4a487c3478$export$79723eee2c1bf75e), {
themeColorLight: themeColorLight,

@@ -60,3 +60,3 @@ themeColorDark: themeColorDark,

}),
!unstable__noGlobalStyle && /*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsx)((0, $9f395ae24b7d6f36$export$c8fda7ee7699d07e), {
!unstable__noGlobalStyle && /*#__PURE__*/ (0, $cerUD$reactjsxruntime.jsx)((0, $1ac20522861d7f1e$export$c8fda7ee7699d07e), {
bg: unstable__bg !== null && unstable__bg !== void 0 ? unstable__bg : themeColorLight,

@@ -68,15 +68,12 @@ unstable__tailwindSvgFix: !unstable__noTailwindSvgFix

};
const $53f899201c613ec3$export$eefb95cccd1bb6c5 = /*#__PURE__*/ (0, $aBkVq$react.memo)($53f899201c613ec3$var$NextStudioComponent);
const $c8bf9e0a6313dcb9$export$eefb95cccd1bb6c5 = /*#__PURE__*/ (0, $cerUD$react.memo)($c8bf9e0a6313dcb9$var$NextStudioComponent);
var $9f395ae24b7d6f36$exports = {};
var $1ac20522861d7f1e$exports = {};
$parcel$export($9f395ae24b7d6f36$exports, "NextStudioGlobalStyle", () => $9f395ae24b7d6f36$export$c8fda7ee7699d07e);
$parcel$export($1ac20522861d7f1e$exports, "NextStudioGlobalStyle", () => $1ac20522861d7f1e$export$c8fda7ee7699d07e);
const $9f395ae24b7d6f36$export$c8fda7ee7699d07e = (0, $aBkVq$styledcomponents.createGlobalStyle)`
${({ bg: bg })=>bg ? (0, $aBkVq$styledcomponents.css)`
html {
background-color: ${bg};
}
` : ""}
let $1ac20522861d7f1e$var$_ = (t)=>t, $1ac20522861d7f1e$var$t, $1ac20522861d7f1e$var$t1, $1ac20522861d7f1e$var$t2;
const $1ac20522861d7f1e$export$c8fda7ee7699d07e = (0, $cerUD$styledcomponents.createGlobalStyle)($1ac20522861d7f1e$var$t2 || ($1ac20522861d7f1e$var$t2 = $1ac20522861d7f1e$var$_`
${0}
html,

@@ -92,3 +89,7 @@ body,

}
${({ unstable__tailwindSvgFix: unstable__tailwindSvgFix })=>unstable__tailwindSvgFix ? (0, $aBkVq$styledcomponents.css)`
${0}`), ({ bg: bg })=>bg ? (0, $cerUD$styledcomponents.css)($1ac20522861d7f1e$var$t || ($1ac20522861d7f1e$var$t = $1ac20522861d7f1e$var$_`
html {
background-color: ${0};
}
`), bg) : "", ({ unstable__tailwindSvgFix: unstable__tailwindSvgFix })=>unstable__tailwindSvgFix ? (0, $cerUD$styledcomponents.css)($1ac20522861d7f1e$var$t1 || ($1ac20522861d7f1e$var$t1 = $1ac20522861d7f1e$var$_`
/* override tailwind reset */

@@ -98,32 +99,47 @@ :root svg {

}
` : ""}`;
`)) : "");
var $3e6cd9b42bc397c4$exports = {};
var $9a339c4a487c3478$exports = {};
$parcel$export($3e6cd9b42bc397c4$exports, "NextStudioHead", () => $3e6cd9b42bc397c4$export$79723eee2c1bf75e);
$parcel$export($9a339c4a487c3478$exports, "NextStudioHead", () => $9a339c4a487c3478$export$79723eee2c1bf75e);
var $fcd6fc55826ec974$exports = {};
$fcd6fc55826ec974$exports = JSON.parse('{"icons":[{"src":"./favicon-192.png","type":"image/png","sizes":"192x192"},{"src":"./favicon-512.png","type":"image/png","sizes":"512x512"}]}');
var $e95b353cb9780322$exports = {};
$e95b353cb9780322$exports = new URL("apple-touch-icon.abc4aca2.png", "file:" + __filename).toString();
const $3e6cd9b42bc397c4$var$iconApple = new URL("92ea002ae7d17215", "file:" + __filename).toString();
const $3e6cd9b42bc397c4$var$iconSvg = new URL("fcac50a5aa5f709c", "file:" + __filename).toString();
const $3e6cd9b42bc397c4$var$iconIco = new URL("3615be30c513e586", "file:" + __filename).toString();
const $3e6cd9b42bc397c4$var$icon192 = new URL("d22f93fc281dd3c3", "file:" + __filename).toString();
const $3e6cd9b42bc397c4$var$icon512 = new URL("48f1f57287738032", "file:" + __filename).toString();
var $5c6cb25811c5a469$exports = {};
$5c6cb25811c5a469$exports = new URL("favicon.648fc2f2.ico", "file:" + __filename).toString();
var $8f66672978de215e$exports = {};
$8f66672978de215e$exports = new URL("favicon.8f76876f.svg", "file:" + __filename).toString();
var $4602cd4ce640093d$exports = {};
$4602cd4ce640093d$exports = new URL("favicon-192.40c8bab4.png", "file:" + __filename).toString();
var $2018744a752e803e$exports = {};
$2018744a752e803e$exports = new URL("favicon-512.5e08f951.png", "file:" + __filename).toString();
var $bfac0ea6ea7884f0$exports = {};
$bfac0ea6ea7884f0$exports = JSON.parse('{"icons":[{"src":"./favicon-192.png","type":"image/png","sizes":"192x192"},{"src":"./favicon-512.png","type":"image/png","sizes":"512x512"}]}');
// Interop between how Parcel and Next deals with asset imports
const $3e6cd9b42bc397c4$var$interop = (href)=>typeof href === "string" ? href : href.src;
const $3e6cd9b42bc397c4$var$NextStudioHeadComponent = ({ children: children , themeColorDark: themeColorDark , themeColorLight: themeColorLight , title: title = "Sanity Studio" , favicons: favicons })=>{
const inlineWebmanifest = (0, $aBkVq$react.useCallback)(()=>{
const manifest = JSON.parse(JSON.stringify((0, (/*@__PURE__*/$parcel$interopDefault($fcd6fc55826ec974$exports)))));
const $9a339c4a487c3478$var$interop = (href)=>typeof href === "string" ? href : href.src;
const $9a339c4a487c3478$var$NextStudioHeadComponent = ({ children: children , themeColorDark: themeColorDark , themeColorLight: themeColorLight , title: title = "Sanity Studio" , favicons: favicons })=>{
const inlineWebmanifest = (0, $cerUD$react.useCallback)(()=>{
const manifest = JSON.parse(JSON.stringify((0, (/*@__PURE__*/$parcel$interopDefault($bfac0ea6ea7884f0$exports)))));
const icons = manifest.icons.map((icon)=>{
// Inline manifests works best when URLs are absolute
const src = // eslint-disable-next-line no-nested-ternary
icon.src === "./favicon-192.png" ? $3e6cd9b42bc397c4$var$interop($3e6cd9b42bc397c4$var$icon192) : icon.src === "./favicon-512.png" ? $3e6cd9b42bc397c4$var$interop($3e6cd9b42bc397c4$var$icon512) : icon.src;
icon.src === "./favicon-192.png" ? $9a339c4a487c3478$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($4602cd4ce640093d$exports)))) : icon.src === "./favicon-512.png" ? $9a339c4a487c3478$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($2018744a752e803e$exports)))) : icon.src;
return {
...icon,
src: process.env.NEXT_PUBLIC_VERCEL_URL ? new URL(src, `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`).toString() : src
src: src
};

@@ -136,5 +152,5 @@ });

}, []);
return /*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsxs)((0, ($parcel$interopDefault($aBkVq$nexthead))), {
return /*#__PURE__*/ (0, $cerUD$reactjsxruntime.jsxs)((0, ($parcel$interopDefault($cerUD$nexthead))), {
children: [
/*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsx)("meta", {
/*#__PURE__*/ (0, $cerUD$reactjsxruntime.jsx)("meta", {
name: "viewport",

@@ -144,34 +160,34 @@ // Studio implements display cutouts CSS (The iPhone Notch ™ ) and needs `viewport-fit=covered` for it to work correctly

}),
/*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsx)("meta", {
/*#__PURE__*/ (0, $cerUD$reactjsxruntime.jsx)("meta", {
name: "robots",
content: "noindex"
}),
/*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsx)("meta", {
/*#__PURE__*/ (0, $cerUD$reactjsxruntime.jsx)("meta", {
name: "referrer",
content: "same-origin"
}),
/*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsx)("title", {
/*#__PURE__*/ (0, $cerUD$reactjsxruntime.jsx)("title", {
children: title
}),
favicons && /*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsx)("link", {
favicons && /*#__PURE__*/ (0, $cerUD$reactjsxruntime.jsx)("link", {
rel: "icon",
href: $3e6cd9b42bc397c4$var$interop($3e6cd9b42bc397c4$var$iconIco),
href: $9a339c4a487c3478$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($5c6cb25811c5a469$exports)))),
sizes: "any"
}),
favicons && /*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsx)("link", {
favicons && /*#__PURE__*/ (0, $cerUD$reactjsxruntime.jsx)("link", {
rel: "icon",
href: $3e6cd9b42bc397c4$var$interop($3e6cd9b42bc397c4$var$iconSvg),
href: $9a339c4a487c3478$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($8f66672978de215e$exports)))),
type: "image/svg+xml"
}),
favicons && /*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsx)("link", {
favicons && /*#__PURE__*/ (0, $cerUD$reactjsxruntime.jsx)("link", {
rel: "apple-touch-icon",
href: $3e6cd9b42bc397c4$var$interop($3e6cd9b42bc397c4$var$iconApple)
href: $9a339c4a487c3478$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($e95b353cb9780322$exports))))
}),
favicons && /*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsx)("link", {
favicons && /*#__PURE__*/ (0, $cerUD$reactjsxruntime.jsx)("link", {
rel: "manifest",
// eslint-disable-next-line no-warning-comments
// @TODO until parcel fixes https://github.com/parcel-bundler/parcel/issues/8025 and stops stripping process.env.NEXT_PUBLIC_VERCEL_URL from the compiled code, use the remove webmanifest
href: process.env.NEXT_PUBLIC_VERCEL_URL ? inlineWebmanifest() : "https://next.sanity.build/manifest.webmanifest"
href: "https://next.sanity.build/manifest.webmanifest"
}),
themeColorLight && /*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsx)("meta", {
themeColorLight && /*#__PURE__*/ (0, $cerUD$reactjsxruntime.jsx)("meta", {
name: "theme-color",

@@ -181,3 +197,3 @@ content: themeColorLight,

}, "theme-color-light"),
themeColorDark && /*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsx)("meta", {
themeColorDark && /*#__PURE__*/ (0, $cerUD$reactjsxruntime.jsx)("meta", {
name: "theme-color",

@@ -191,22 +207,22 @@ content: themeColorDark,

};
const $3e6cd9b42bc397c4$export$79723eee2c1bf75e = /*#__PURE__*/ (0, $aBkVq$react.memo)($3e6cd9b42bc397c4$var$NextStudioHeadComponent);
const $9a339c4a487c3478$export$79723eee2c1bf75e = /*#__PURE__*/ (0, $cerUD$react.memo)($9a339c4a487c3478$var$NextStudioHeadComponent);
var $db5d004cc2549fcd$exports = {};
var $4dc132240adf8d31$exports = {};
$parcel$export($db5d004cc2549fcd$exports, "ServerStyleSheetDocument", () => $db5d004cc2549fcd$export$f64e2f55a1dca172);
$parcel$export($4dc132240adf8d31$exports, "ServerStyleSheetDocument", () => $4dc132240adf8d31$export$f64e2f55a1dca172);
class $db5d004cc2549fcd$export$f64e2f55a1dca172 extends (0, ($parcel$interopDefault($aBkVq$nextdocument))) {
class $4dc132240adf8d31$export$f64e2f55a1dca172 extends (0, ($parcel$interopDefault($cerUD$nextdocument))) {
static async getInitialProps(ctx) {
const sheet = new (0, $aBkVq$styledcomponents.ServerStyleSheet)();
const sheet = new (0, $cerUD$styledcomponents.ServerStyleSheet)();
const originalRenderPage = ctx.renderPage;
try {
ctx.renderPage = ()=>originalRenderPage({
enhanceApp: (App)=>(props)=>sheet.collectStyles(/*#__PURE__*/ (0, $aBkVq$reactjsxruntime.jsx)(App, {
enhanceApp: (App)=>(props)=>sheet.collectStyles(/*#__PURE__*/ (0, $cerUD$reactjsxruntime.jsx)(App, {
...props
}))
});
const initialProps = await (0, ($parcel$interopDefault($aBkVq$nextdocument))).getInitialProps(ctx);
const initialProps = await (0, ($parcel$interopDefault($cerUD$nextdocument))).getInitialProps(ctx);
return {

@@ -226,29 +242,29 @@ ...initialProps,

var $c1f9915ed553476b$exports = {};
var $b07d91633f3d677b$exports = {};
$parcel$export($c1f9915ed553476b$exports, "isWorkspaces", () => $c1f9915ed553476b$export$b7c6924067135ce);
$parcel$export($c1f9915ed553476b$exports, "isWorkspaceWithTheme", () => $c1f9915ed553476b$export$31236b9ee07dd150);
$parcel$export($c1f9915ed553476b$exports, "useTheme", () => $c1f9915ed553476b$export$93d4e7f90805808f);
$parcel$export($c1f9915ed553476b$exports, "useBackgroundColorsFromTheme", () => $c1f9915ed553476b$export$d3a2146a441ec034);
$parcel$export($c1f9915ed553476b$exports, "useBasePath", () => $c1f9915ed553476b$export$53bdd69a9f9bd75);
$parcel$export($c1f9915ed553476b$exports, "useConfigWithBasePath", () => $c1f9915ed553476b$export$297ba38aa0562c6e);
$parcel$export($b07d91633f3d677b$exports, "isWorkspaces", () => $b07d91633f3d677b$export$b7c6924067135ce);
$parcel$export($b07d91633f3d677b$exports, "isWorkspaceWithTheme", () => $b07d91633f3d677b$export$31236b9ee07dd150);
$parcel$export($b07d91633f3d677b$exports, "useTheme", () => $b07d91633f3d677b$export$93d4e7f90805808f);
$parcel$export($b07d91633f3d677b$exports, "useBackgroundColorsFromTheme", () => $b07d91633f3d677b$export$d3a2146a441ec034);
$parcel$export($b07d91633f3d677b$exports, "useBasePath", () => $b07d91633f3d677b$export$53bdd69a9f9bd75);
$parcel$export($b07d91633f3d677b$exports, "useConfigWithBasePath", () => $b07d91633f3d677b$export$297ba38aa0562c6e);
function $c1f9915ed553476b$export$b7c6924067135ce(config) {
function $b07d91633f3d677b$export$b7c6924067135ce(config) {
return Array.isArray(config);
}
function $c1f9915ed553476b$export$31236b9ee07dd150(workspace) {
function $b07d91633f3d677b$export$31236b9ee07dd150(workspace) {
return Boolean(workspace.theme);
}
function $c1f9915ed553476b$export$93d4e7f90805808f(config) {
const workspace = (0, $aBkVq$react.useMemo)(()=>$c1f9915ed553476b$export$b7c6924067135ce(config) ? config[0] : config, [
function $b07d91633f3d677b$export$93d4e7f90805808f(config) {
const workspace = (0, $cerUD$react.useMemo)(()=>$b07d91633f3d677b$export$b7c6924067135ce(config) ? config[0] : config, [
config
]);
return (0, $aBkVq$react.useMemo)(()=>$c1f9915ed553476b$export$31236b9ee07dd150(workspace) ? workspace.theme : (0, $aBkVq$sanity.defaultTheme), [
return (0, $cerUD$react.useMemo)(()=>$b07d91633f3d677b$export$31236b9ee07dd150(workspace) ? workspace.theme : (0, $cerUD$sanity.defaultTheme), [
workspace
]);
}
const $c1f9915ed553476b$export$d3a2146a441ec034 = (theme)=>{
return (0, $aBkVq$react.useMemo)(()=>({
const $b07d91633f3d677b$export$d3a2146a441ec034 = (theme)=>{
return (0, $cerUD$react.useMemo)(()=>({
themeColorLight: theme.color.light.default.base.bg,

@@ -260,5 +276,5 @@ themeColorDark: theme.color.dark.default.base.bg

};
function $c1f9915ed553476b$export$53bdd69a9f9bd75() {
const router = (0, $aBkVq$nextrouter.useRouter)();
return (0, $aBkVq$react.useMemo)(()=>{
function $b07d91633f3d677b$export$53bdd69a9f9bd75() {
const router = (0, $cerUD$nextrouter.useRouter)();
return (0, $cerUD$react.useMemo)(()=>{
const [basePath = "/"] = router.route.split("/[");

@@ -270,6 +286,6 @@ return basePath;

}
function $c1f9915ed553476b$export$297ba38aa0562c6e(config) {
const basePath = $c1f9915ed553476b$export$53bdd69a9f9bd75();
return (0, $aBkVq$react.useMemo)(()=>{
if ($c1f9915ed553476b$export$b7c6924067135ce(config)) return config.map((workspace)=>({
function $b07d91633f3d677b$export$297ba38aa0562c6e(config) {
const basePath = $b07d91633f3d677b$export$53bdd69a9f9bd75();
return (0, $cerUD$react.useMemo)(()=>{
if ($b07d91633f3d677b$export$b7c6924067135ce(config)) return config.map((workspace)=>({
...workspace,

@@ -289,12 +305,12 @@ basePath: workspace.basePath === "/" ? basePath : `${basePath}${workspace.basePath || ""}`

$parcel$exportWildcard($de3959199b10acaa$exports, $53f899201c613ec3$exports);
$parcel$exportWildcard($de3959199b10acaa$exports, $9f395ae24b7d6f36$exports);
$parcel$exportWildcard($de3959199b10acaa$exports, $3e6cd9b42bc397c4$exports);
$parcel$exportWildcard($de3959199b10acaa$exports, $db5d004cc2549fcd$exports);
$parcel$exportWildcard($de3959199b10acaa$exports, $c1f9915ed553476b$exports);
$parcel$exportWildcard($5aa79282f535e8b1$exports, $c8bf9e0a6313dcb9$exports);
$parcel$exportWildcard($5aa79282f535e8b1$exports, $1ac20522861d7f1e$exports);
$parcel$exportWildcard($5aa79282f535e8b1$exports, $9a339c4a487c3478$exports);
$parcel$exportWildcard($5aa79282f535e8b1$exports, $4dc132240adf8d31$exports);
$parcel$exportWildcard($5aa79282f535e8b1$exports, $b07d91633f3d677b$exports);
$parcel$exportWildcard(module.exports, $de3959199b10acaa$exports);
$parcel$exportWildcard(module.exports, $5aa79282f535e8b1$exports);
//# sourceMappingURL=studio.js.map

@@ -1,8 +0,8 @@

import {jsxs as $3LAn5$jsxs, Fragment as $3LAn5$Fragment, jsx as $3LAn5$jsx} from "react/jsx-runtime";
import {memo as $3LAn5$memo, useCallback as $3LAn5$useCallback, useMemo as $3LAn5$useMemo} from "react";
import {Studio as $3LAn5$Studio, defaultTheme as $3LAn5$defaultTheme} from "sanity";
import {createGlobalStyle as $3LAn5$createGlobalStyle, css as $3LAn5$css, ServerStyleSheet as $3LAn5$ServerStyleSheet} from "styled-components";
import $3LAn5$nexthead from "next/head";
import $3LAn5$nextdocument from "next/document";
import {useRouter as $3LAn5$useRouter} from "next/router";
import {jsxs as $4289s$jsxs, Fragment as $4289s$Fragment, jsx as $4289s$jsx} from "react/jsx-runtime";
import {memo as $4289s$memo, useCallback as $4289s$useCallback, useMemo as $4289s$useMemo} from "react";
import {Studio as $4289s$Studio, defaultTheme as $4289s$defaultTheme} from "sanity";
import {createGlobalStyle as $4289s$createGlobalStyle, css as $4289s$css, ServerStyleSheet as $4289s$ServerStyleSheet} from "styled-components";
import $4289s$nexthead from "next/head";
import $4289s$nextdocument from "next/document";
import {useRouter as $4289s$useRouter} from "next/router";

@@ -31,6 +31,6 @@ function $parcel$exportWildcard(dest, source) {

}
var $5fad48b1a984c979$exports = {};
var $0b1d95a703deb844$exports = {};
var $2e0e6a6d8bb1bf3b$exports = {};
var $1512e3a8033a35cc$exports = {};
$parcel$export($0b1d95a703deb844$exports, "NextStudio", () => $0b1d95a703deb844$export$eefb95cccd1bb6c5);
$parcel$export($1512e3a8033a35cc$exports, "NextStudio", () => $1512e3a8033a35cc$export$eefb95cccd1bb6c5);

@@ -43,12 +43,12 @@

* It's a drop-in replacement for `import {Studio} from 'sanity'`
*/ const $0b1d95a703deb844$var$NextStudioComponent = ({ children: children , config: config , unstable__noGlobalStyle: unstable__noGlobalStyle , unstable__noTailwindSvgFix: unstable__noTailwindSvgFix , unstable__head: unstable__head , unstable__document_title: unstable__document_title , unstable__bg: unstable__bg , unstable__noFavicons: unstable__noFavicons , ...props })=>{
const theme = (0, $56e7c02732eb5790$export$93d4e7f90805808f)(config);
const { themeColorLight: themeColorLight , themeColorDark: themeColorDark } = (0, $56e7c02732eb5790$export$d3a2146a441ec034)(theme);
return /*#__PURE__*/ (0, $3LAn5$jsxs)((0, $3LAn5$Fragment), {
*/ const $1512e3a8033a35cc$var$NextStudioComponent = ({ children: children , config: config , unstable__noGlobalStyle: unstable__noGlobalStyle , unstable__noTailwindSvgFix: unstable__noTailwindSvgFix , unstable__head: unstable__head , unstable__document_title: unstable__document_title , unstable__bg: unstable__bg , unstable__noFavicons: unstable__noFavicons , ...props })=>{
const theme = (0, $47ea254c66a1f1fc$export$93d4e7f90805808f)(config);
const { themeColorLight: themeColorLight , themeColorDark: themeColorDark } = (0, $47ea254c66a1f1fc$export$d3a2146a441ec034)(theme);
return /*#__PURE__*/ (0, $4289s$jsxs)((0, $4289s$Fragment), {
children: [
children || /*#__PURE__*/ (0, $3LAn5$jsx)((0, $3LAn5$Studio), {
children || /*#__PURE__*/ (0, $4289s$jsx)((0, $4289s$Studio), {
config: config,
...props
}),
/*#__PURE__*/ (0, $3LAn5$jsx)((0, $ce5bdc1b62c6b4b4$export$79723eee2c1bf75e), {
/*#__PURE__*/ (0, $4289s$jsx)((0, $42e0ba93e8ca4228$export$79723eee2c1bf75e), {
themeColorLight: themeColorLight,

@@ -60,3 +60,3 @@ themeColorDark: themeColorDark,

}),
!unstable__noGlobalStyle && /*#__PURE__*/ (0, $3LAn5$jsx)((0, $eddad8e374be544b$export$c8fda7ee7699d07e), {
!unstable__noGlobalStyle && /*#__PURE__*/ (0, $4289s$jsx)((0, $96bfa0bd9b2d4d7b$export$c8fda7ee7699d07e), {
bg: unstable__bg !== null && unstable__bg !== void 0 ? unstable__bg : themeColorLight,

@@ -68,15 +68,12 @@ unstable__tailwindSvgFix: !unstable__noTailwindSvgFix

};
const $0b1d95a703deb844$export$eefb95cccd1bb6c5 = /*#__PURE__*/ (0, $3LAn5$memo)($0b1d95a703deb844$var$NextStudioComponent);
const $1512e3a8033a35cc$export$eefb95cccd1bb6c5 = /*#__PURE__*/ (0, $4289s$memo)($1512e3a8033a35cc$var$NextStudioComponent);
var $eddad8e374be544b$exports = {};
var $96bfa0bd9b2d4d7b$exports = {};
$parcel$export($eddad8e374be544b$exports, "NextStudioGlobalStyle", () => $eddad8e374be544b$export$c8fda7ee7699d07e);
$parcel$export($96bfa0bd9b2d4d7b$exports, "NextStudioGlobalStyle", () => $96bfa0bd9b2d4d7b$export$c8fda7ee7699d07e);
const $eddad8e374be544b$export$c8fda7ee7699d07e = (0, $3LAn5$createGlobalStyle)`
${({ bg: bg })=>bg ? (0, $3LAn5$css)`
html {
background-color: ${bg};
}
` : ""}
let $96bfa0bd9b2d4d7b$var$_ = (t)=>t, $96bfa0bd9b2d4d7b$var$t, $96bfa0bd9b2d4d7b$var$t1, $96bfa0bd9b2d4d7b$var$t2;
const $96bfa0bd9b2d4d7b$export$c8fda7ee7699d07e = (0, $4289s$createGlobalStyle)($96bfa0bd9b2d4d7b$var$t2 || ($96bfa0bd9b2d4d7b$var$t2 = $96bfa0bd9b2d4d7b$var$_`
${0}
html,

@@ -92,3 +89,7 @@ body,

}
${({ unstable__tailwindSvgFix: unstable__tailwindSvgFix })=>unstable__tailwindSvgFix ? (0, $3LAn5$css)`
${0}`), ({ bg: bg })=>bg ? (0, $4289s$css)($96bfa0bd9b2d4d7b$var$t || ($96bfa0bd9b2d4d7b$var$t = $96bfa0bd9b2d4d7b$var$_`
html {
background-color: ${0};
}
`), bg) : "", ({ unstable__tailwindSvgFix: unstable__tailwindSvgFix })=>unstable__tailwindSvgFix ? (0, $4289s$css)($96bfa0bd9b2d4d7b$var$t1 || ($96bfa0bd9b2d4d7b$var$t1 = $96bfa0bd9b2d4d7b$var$_`
/* override tailwind reset */

@@ -98,32 +99,47 @@ :root svg {

}
` : ""}`;
`)) : "");
var $ce5bdc1b62c6b4b4$exports = {};
var $42e0ba93e8ca4228$exports = {};
$parcel$export($ce5bdc1b62c6b4b4$exports, "NextStudioHead", () => $ce5bdc1b62c6b4b4$export$79723eee2c1bf75e);
$parcel$export($42e0ba93e8ca4228$exports, "NextStudioHead", () => $42e0ba93e8ca4228$export$79723eee2c1bf75e);
var $6d8b9ec2542785fd$exports = {};
$6d8b9ec2542785fd$exports = JSON.parse('{"icons":[{"src":"./favicon-192.png","type":"image/png","sizes":"192x192"},{"src":"./favicon-512.png","type":"image/png","sizes":"512x512"}]}');
var $45ea3ea7d12bce49$exports = {};
$45ea3ea7d12bce49$exports = new URL("apple-touch-icon.abc4aca2.png", import.meta.url).toString();
const $ce5bdc1b62c6b4b4$var$iconApple = new URL("92ea002ae7d17215", import.meta.url).toString();
const $ce5bdc1b62c6b4b4$var$iconSvg = new URL("fcac50a5aa5f709c", import.meta.url).toString();
const $ce5bdc1b62c6b4b4$var$iconIco = new URL("3615be30c513e586", import.meta.url).toString();
const $ce5bdc1b62c6b4b4$var$icon192 = new URL("d22f93fc281dd3c3", import.meta.url).toString();
const $ce5bdc1b62c6b4b4$var$icon512 = new URL("48f1f57287738032", import.meta.url).toString();
var $16e4fc4e4072d1be$exports = {};
$16e4fc4e4072d1be$exports = new URL("favicon.648fc2f2.ico", import.meta.url).toString();
var $cca9488c1d3c183d$exports = {};
$cca9488c1d3c183d$exports = new URL("favicon.8f76876f.svg", import.meta.url).toString();
var $cd594ef728029217$exports = {};
$cd594ef728029217$exports = new URL("favicon-192.40c8bab4.png", import.meta.url).toString();
var $31faabdb2cb89886$exports = {};
$31faabdb2cb89886$exports = new URL("favicon-512.5e08f951.png", import.meta.url).toString();
var $7b143ba4ac75c594$exports = {};
$7b143ba4ac75c594$exports = JSON.parse('{"icons":[{"src":"./favicon-192.png","type":"image/png","sizes":"192x192"},{"src":"./favicon-512.png","type":"image/png","sizes":"512x512"}]}');
// Interop between how Parcel and Next deals with asset imports
const $ce5bdc1b62c6b4b4$var$interop = (href)=>typeof href === "string" ? href : href.src;
const $ce5bdc1b62c6b4b4$var$NextStudioHeadComponent = ({ children: children , themeColorDark: themeColorDark , themeColorLight: themeColorLight , title: title = "Sanity Studio" , favicons: favicons })=>{
const inlineWebmanifest = (0, $3LAn5$useCallback)(()=>{
const manifest = JSON.parse(JSON.stringify((0, (/*@__PURE__*/$parcel$interopDefault($6d8b9ec2542785fd$exports)))));
const $42e0ba93e8ca4228$var$interop = (href)=>typeof href === "string" ? href : href.src;
const $42e0ba93e8ca4228$var$NextStudioHeadComponent = ({ children: children , themeColorDark: themeColorDark , themeColorLight: themeColorLight , title: title = "Sanity Studio" , favicons: favicons })=>{
const inlineWebmanifest = (0, $4289s$useCallback)(()=>{
const manifest = JSON.parse(JSON.stringify((0, (/*@__PURE__*/$parcel$interopDefault($7b143ba4ac75c594$exports)))));
const icons = manifest.icons.map((icon)=>{
// Inline manifests works best when URLs are absolute
const src = // eslint-disable-next-line no-nested-ternary
icon.src === "./favicon-192.png" ? $ce5bdc1b62c6b4b4$var$interop($ce5bdc1b62c6b4b4$var$icon192) : icon.src === "./favicon-512.png" ? $ce5bdc1b62c6b4b4$var$interop($ce5bdc1b62c6b4b4$var$icon512) : icon.src;
icon.src === "./favicon-192.png" ? $42e0ba93e8ca4228$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($cd594ef728029217$exports)))) : icon.src === "./favicon-512.png" ? $42e0ba93e8ca4228$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($31faabdb2cb89886$exports)))) : icon.src;
return {
...icon,
src: process.env.NEXT_PUBLIC_VERCEL_URL ? new URL(src, `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`).toString() : src
src: src
};

@@ -136,5 +152,5 @@ });

}, []);
return /*#__PURE__*/ (0, $3LAn5$jsxs)((0, $3LAn5$nexthead), {
return /*#__PURE__*/ (0, $4289s$jsxs)((0, $4289s$nexthead), {
children: [
/*#__PURE__*/ (0, $3LAn5$jsx)("meta", {
/*#__PURE__*/ (0, $4289s$jsx)("meta", {
name: "viewport",

@@ -144,34 +160,34 @@ // Studio implements display cutouts CSS (The iPhone Notch ™ ) and needs `viewport-fit=covered` for it to work correctly

}),
/*#__PURE__*/ (0, $3LAn5$jsx)("meta", {
/*#__PURE__*/ (0, $4289s$jsx)("meta", {
name: "robots",
content: "noindex"
}),
/*#__PURE__*/ (0, $3LAn5$jsx)("meta", {
/*#__PURE__*/ (0, $4289s$jsx)("meta", {
name: "referrer",
content: "same-origin"
}),
/*#__PURE__*/ (0, $3LAn5$jsx)("title", {
/*#__PURE__*/ (0, $4289s$jsx)("title", {
children: title
}),
favicons && /*#__PURE__*/ (0, $3LAn5$jsx)("link", {
favicons && /*#__PURE__*/ (0, $4289s$jsx)("link", {
rel: "icon",
href: $ce5bdc1b62c6b4b4$var$interop($ce5bdc1b62c6b4b4$var$iconIco),
href: $42e0ba93e8ca4228$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($16e4fc4e4072d1be$exports)))),
sizes: "any"
}),
favicons && /*#__PURE__*/ (0, $3LAn5$jsx)("link", {
favicons && /*#__PURE__*/ (0, $4289s$jsx)("link", {
rel: "icon",
href: $ce5bdc1b62c6b4b4$var$interop($ce5bdc1b62c6b4b4$var$iconSvg),
href: $42e0ba93e8ca4228$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($cca9488c1d3c183d$exports)))),
type: "image/svg+xml"
}),
favicons && /*#__PURE__*/ (0, $3LAn5$jsx)("link", {
favicons && /*#__PURE__*/ (0, $4289s$jsx)("link", {
rel: "apple-touch-icon",
href: $ce5bdc1b62c6b4b4$var$interop($ce5bdc1b62c6b4b4$var$iconApple)
href: $42e0ba93e8ca4228$var$interop((0, (/*@__PURE__*/$parcel$interopDefault($45ea3ea7d12bce49$exports))))
}),
favicons && /*#__PURE__*/ (0, $3LAn5$jsx)("link", {
favicons && /*#__PURE__*/ (0, $4289s$jsx)("link", {
rel: "manifest",
// eslint-disable-next-line no-warning-comments
// @TODO until parcel fixes https://github.com/parcel-bundler/parcel/issues/8025 and stops stripping process.env.NEXT_PUBLIC_VERCEL_URL from the compiled code, use the remove webmanifest
href: process.env.NEXT_PUBLIC_VERCEL_URL ? inlineWebmanifest() : "https://next.sanity.build/manifest.webmanifest"
href: "https://next.sanity.build/manifest.webmanifest"
}),
themeColorLight && /*#__PURE__*/ (0, $3LAn5$jsx)("meta", {
themeColorLight && /*#__PURE__*/ (0, $4289s$jsx)("meta", {
name: "theme-color",

@@ -181,3 +197,3 @@ content: themeColorLight,

}, "theme-color-light"),
themeColorDark && /*#__PURE__*/ (0, $3LAn5$jsx)("meta", {
themeColorDark && /*#__PURE__*/ (0, $4289s$jsx)("meta", {
name: "theme-color",

@@ -191,22 +207,22 @@ content: themeColorDark,

};
const $ce5bdc1b62c6b4b4$export$79723eee2c1bf75e = /*#__PURE__*/ (0, $3LAn5$memo)($ce5bdc1b62c6b4b4$var$NextStudioHeadComponent);
const $42e0ba93e8ca4228$export$79723eee2c1bf75e = /*#__PURE__*/ (0, $4289s$memo)($42e0ba93e8ca4228$var$NextStudioHeadComponent);
var $89005f9f22ebf103$exports = {};
var $056a6fa2cc4f79d2$exports = {};
$parcel$export($89005f9f22ebf103$exports, "ServerStyleSheetDocument", () => $89005f9f22ebf103$export$f64e2f55a1dca172);
$parcel$export($056a6fa2cc4f79d2$exports, "ServerStyleSheetDocument", () => $056a6fa2cc4f79d2$export$f64e2f55a1dca172);
class $89005f9f22ebf103$export$f64e2f55a1dca172 extends (0, $3LAn5$nextdocument) {
class $056a6fa2cc4f79d2$export$f64e2f55a1dca172 extends (0, $4289s$nextdocument) {
static async getInitialProps(ctx) {
const sheet = new (0, $3LAn5$ServerStyleSheet)();
const sheet = new (0, $4289s$ServerStyleSheet)();
const originalRenderPage = ctx.renderPage;
try {
ctx.renderPage = ()=>originalRenderPage({
enhanceApp: (App)=>(props)=>sheet.collectStyles(/*#__PURE__*/ (0, $3LAn5$jsx)(App, {
enhanceApp: (App)=>(props)=>sheet.collectStyles(/*#__PURE__*/ (0, $4289s$jsx)(App, {
...props
}))
});
const initialProps = await (0, $3LAn5$nextdocument).getInitialProps(ctx);
const initialProps = await (0, $4289s$nextdocument).getInitialProps(ctx);
return {

@@ -226,29 +242,29 @@ ...initialProps,

var $56e7c02732eb5790$exports = {};
var $47ea254c66a1f1fc$exports = {};
$parcel$export($56e7c02732eb5790$exports, "isWorkspaces", () => $56e7c02732eb5790$export$b7c6924067135ce);
$parcel$export($56e7c02732eb5790$exports, "isWorkspaceWithTheme", () => $56e7c02732eb5790$export$31236b9ee07dd150);
$parcel$export($56e7c02732eb5790$exports, "useTheme", () => $56e7c02732eb5790$export$93d4e7f90805808f);
$parcel$export($56e7c02732eb5790$exports, "useBackgroundColorsFromTheme", () => $56e7c02732eb5790$export$d3a2146a441ec034);
$parcel$export($56e7c02732eb5790$exports, "useBasePath", () => $56e7c02732eb5790$export$53bdd69a9f9bd75);
$parcel$export($56e7c02732eb5790$exports, "useConfigWithBasePath", () => $56e7c02732eb5790$export$297ba38aa0562c6e);
$parcel$export($47ea254c66a1f1fc$exports, "isWorkspaces", () => $47ea254c66a1f1fc$export$b7c6924067135ce);
$parcel$export($47ea254c66a1f1fc$exports, "isWorkspaceWithTheme", () => $47ea254c66a1f1fc$export$31236b9ee07dd150);
$parcel$export($47ea254c66a1f1fc$exports, "useTheme", () => $47ea254c66a1f1fc$export$93d4e7f90805808f);
$parcel$export($47ea254c66a1f1fc$exports, "useBackgroundColorsFromTheme", () => $47ea254c66a1f1fc$export$d3a2146a441ec034);
$parcel$export($47ea254c66a1f1fc$exports, "useBasePath", () => $47ea254c66a1f1fc$export$53bdd69a9f9bd75);
$parcel$export($47ea254c66a1f1fc$exports, "useConfigWithBasePath", () => $47ea254c66a1f1fc$export$297ba38aa0562c6e);
function $56e7c02732eb5790$export$b7c6924067135ce(config) {
function $47ea254c66a1f1fc$export$b7c6924067135ce(config) {
return Array.isArray(config);
}
function $56e7c02732eb5790$export$31236b9ee07dd150(workspace) {
function $47ea254c66a1f1fc$export$31236b9ee07dd150(workspace) {
return Boolean(workspace.theme);
}
function $56e7c02732eb5790$export$93d4e7f90805808f(config) {
const workspace = (0, $3LAn5$useMemo)(()=>$56e7c02732eb5790$export$b7c6924067135ce(config) ? config[0] : config, [
function $47ea254c66a1f1fc$export$93d4e7f90805808f(config) {
const workspace = (0, $4289s$useMemo)(()=>$47ea254c66a1f1fc$export$b7c6924067135ce(config) ? config[0] : config, [
config
]);
return (0, $3LAn5$useMemo)(()=>$56e7c02732eb5790$export$31236b9ee07dd150(workspace) ? workspace.theme : (0, $3LAn5$defaultTheme), [
return (0, $4289s$useMemo)(()=>$47ea254c66a1f1fc$export$31236b9ee07dd150(workspace) ? workspace.theme : (0, $4289s$defaultTheme), [
workspace
]);
}
const $56e7c02732eb5790$export$d3a2146a441ec034 = (theme)=>{
return (0, $3LAn5$useMemo)(()=>({
const $47ea254c66a1f1fc$export$d3a2146a441ec034 = (theme)=>{
return (0, $4289s$useMemo)(()=>({
themeColorLight: theme.color.light.default.base.bg,

@@ -260,5 +276,5 @@ themeColorDark: theme.color.dark.default.base.bg

};
function $56e7c02732eb5790$export$53bdd69a9f9bd75() {
const router = (0, $3LAn5$useRouter)();
return (0, $3LAn5$useMemo)(()=>{
function $47ea254c66a1f1fc$export$53bdd69a9f9bd75() {
const router = (0, $4289s$useRouter)();
return (0, $4289s$useMemo)(()=>{
const [basePath = "/"] = router.route.split("/[");

@@ -270,6 +286,6 @@ return basePath;

}
function $56e7c02732eb5790$export$297ba38aa0562c6e(config) {
const basePath = $56e7c02732eb5790$export$53bdd69a9f9bd75();
return (0, $3LAn5$useMemo)(()=>{
if ($56e7c02732eb5790$export$b7c6924067135ce(config)) return config.map((workspace)=>({
function $47ea254c66a1f1fc$export$297ba38aa0562c6e(config) {
const basePath = $47ea254c66a1f1fc$export$53bdd69a9f9bd75();
return (0, $4289s$useMemo)(()=>{
if ($47ea254c66a1f1fc$export$b7c6924067135ce(config)) return config.map((workspace)=>({
...workspace,

@@ -289,7 +305,7 @@ basePath: workspace.basePath === "/" ? basePath : `${basePath}${workspace.basePath || ""}`

$parcel$exportWildcard($5fad48b1a984c979$exports, $0b1d95a703deb844$exports);
$parcel$exportWildcard($5fad48b1a984c979$exports, $eddad8e374be544b$exports);
$parcel$exportWildcard($5fad48b1a984c979$exports, $ce5bdc1b62c6b4b4$exports);
$parcel$exportWildcard($5fad48b1a984c979$exports, $89005f9f22ebf103$exports);
$parcel$exportWildcard($5fad48b1a984c979$exports, $56e7c02732eb5790$exports);
$parcel$exportWildcard($2e0e6a6d8bb1bf3b$exports, $1512e3a8033a35cc$exports);
$parcel$exportWildcard($2e0e6a6d8bb1bf3b$exports, $96bfa0bd9b2d4d7b$exports);
$parcel$exportWildcard($2e0e6a6d8bb1bf3b$exports, $42e0ba93e8ca4228$exports);
$parcel$exportWildcard($2e0e6a6d8bb1bf3b$exports, $056a6fa2cc4f79d2$exports);
$parcel$exportWildcard($2e0e6a6d8bb1bf3b$exports, $47ea254c66a1f1fc$exports);

@@ -299,3 +315,3 @@

export {$0b1d95a703deb844$export$eefb95cccd1bb6c5 as NextStudio, $eddad8e374be544b$export$c8fda7ee7699d07e as NextStudioGlobalStyle, $ce5bdc1b62c6b4b4$export$79723eee2c1bf75e as NextStudioHead, $89005f9f22ebf103$export$f64e2f55a1dca172 as ServerStyleSheetDocument, $56e7c02732eb5790$export$b7c6924067135ce as isWorkspaces, $56e7c02732eb5790$export$31236b9ee07dd150 as isWorkspaceWithTheme, $56e7c02732eb5790$export$93d4e7f90805808f as useTheme, $56e7c02732eb5790$export$d3a2146a441ec034 as useBackgroundColorsFromTheme, $56e7c02732eb5790$export$53bdd69a9f9bd75 as useBasePath, $56e7c02732eb5790$export$297ba38aa0562c6e as useConfigWithBasePath};
export {$1512e3a8033a35cc$export$eefb95cccd1bb6c5 as NextStudio, $96bfa0bd9b2d4d7b$export$c8fda7ee7699d07e as NextStudioGlobalStyle, $42e0ba93e8ca4228$export$79723eee2c1bf75e as NextStudioHead, $056a6fa2cc4f79d2$export$f64e2f55a1dca172 as ServerStyleSheetDocument, $47ea254c66a1f1fc$export$b7c6924067135ce as isWorkspaces, $47ea254c66a1f1fc$export$31236b9ee07dd150 as isWorkspaceWithTheme, $47ea254c66a1f1fc$export$93d4e7f90805808f as useTheme, $47ea254c66a1f1fc$export$d3a2146a441ec034 as useBackgroundColorsFromTheme, $47ea254c66a1f1fc$export$53bdd69a9f9bd75 as useBasePath, $47ea254c66a1f1fc$export$297ba38aa0562c6e as useConfigWithBasePath};
//# sourceMappingURL=studio.js.map
{
"name": "next-sanity",
"version": "0.6.10",
"version": "0.6.11",
"description": "Sanity.io toolkit for Next.js",

@@ -64,3 +64,3 @@ "keywords": [

"type-check": "tsc --noEmit",
"update:icons": "cp node_modules/@sanity/server/lib/static/favicons/* src/studio/static && cp src/studio/static/favicon-{192,512}.png public && cp src/studio/static/webmanifest.json public/manifest.webmanifest"
"update:icons": "cp node_modules/@sanity/server/lib/static/favicons/* public"
},

@@ -121,15 +121,23 @@ "browserslist": "chrome 59, safari 11, firefox 56, edge 14, ie 11",

"distDir": "./lib/cjs",
"source": "./src/studio.ts",
"outputFormat": "commonjs",
"isLibrary": true,
"context": "node",
"source": "./src/studio.ts",
"outputFormat": "commonjs"
"context": "browser",
"engines": {
"browsers": "chrome 64, safari 12, firefox 62, edge 79"
},
"includeNodeModules": false
},
"esm": {
"distDir": "./lib/esm",
"source": "./src/studio.ts",
"outputFormat": "esmodule",
"isLibrary": true,
"context": "node",
"source": "./src/studio.ts",
"outputFormat": "esmodule"
"context": "browser",
"engines": {
"browsers": "chrome 64, safari 12, firefox 62, edge 79"
},
"includeNodeModules": false
}
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc