next-sanity 9.0.16 → 9.0.18

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.
@@ -1 +1 @@
1
- {"version":3,"file":"studio.cjs","sources":["../src/studio/head.tsx"],"sourcesContent":["import type {Metadata, Viewport} from 'next'\n\n/**\n * In router segments (`/app/studio/[[...index]]/page.tsx`):\n * ```tsx\n * // If you don't want to change any defaults you can just re-export the viewport config directly:\n * export {viewport} from 'next-sanity/studio'\n *\n * // To customize the viewport config, spread it on the export:\n * import {viewport as studioViewport} from 'next-sanity/studio'\n * import type { Viewport } from 'next'\n *\n * export const viewport: Viewport = {\n * ...studioViewport,\n * // Overrides the viewport to resize behavior\n * interactiveWidget: 'resizes-content'\n * })\n * ```\n * @public\n */\nexport const viewport = {\n width: 'device-width',\n initialScale: 1,\n // Studio implements display cutouts CSS (The iPhone Notch ™ ) and needs `viewport-fit=covered` for it to work correctly\n viewportFit: 'cover',\n} satisfies Viewport\n\n/**\n * In router segments (`/app/studio/[[...index]]/page.tsx`):\n * ```tsx\n * // If you don't want to change any defaults you can just re-export the metadata directly:\n * export {metadata} from 'next-sanity/studio'\n *\n * // To customize the metadata, spread it on the export:\n * import {metadata as studioMetadata} from 'next-sanity/studio'\n * import type { Metadata } from 'next'\n *\n * export const metadata: Metadata = {\n * ...studioMetadata,\n * // Set another title\n * title: 'My Studio',\n * })\n * ```\n * @public\n */\nexport const metadata = {\n referrer: 'same-origin' as const,\n robots: 'noindex' as const,\n} satisfies Metadata\n"],"names":["Object","defineProperty","exports","value","NextStudioNoScript","require","clientComponent","NextStudioLayout","N","a","enumerable","get","NextStudio","metadata","referrer","robots","viewport","width","initialScale","viewportFit"],"mappings":"aAoBOA,OAAAC,eAAAC,QAAA,aAAA,CAAAC,OAAA,IAAA,IAAAC,EAAAC,QAAA,wCAAAC,EAAAD,QAAA,uCA4BPH,QAAAK,iBAAAH,EAAAI,EAAAN,QAAAE,mBAAAA,EAAAK,EAAAT,OAAAC,eAAAC,QAAA,aAAA,CAAAQ,YAAA,EAAAC,IAAA,WAAA,OAAAL,EAAAM,UAAA,IAAAV,QAAAW,SAHwB,CACtBC,SAAU,cACVC,OAAQ,WACVb,QAAAc,SA5BwB,CACtBC,MAAO,eACPC,aAAc,EAEdC,YAAa"}
1
+ {"version":3,"file":"studio.cjs","sources":["../src/studio/head.tsx"],"sourcesContent":["import type {Metadata, Viewport} from 'next'\n\n/**\n * In router segments (`/app/studio/[[...index]]/page.tsx`):\n * ```tsx\n * // If you don't want to change any defaults you can just re-export the viewport config directly:\n * export {viewport} from 'next-sanity/studio'\n *\n * // To customize the viewport config, spread it on the export:\n * import {viewport as studioViewport} from 'next-sanity/studio'\n * import type { Viewport } from 'next'\n *\n * export const viewport: Viewport = {\n * ...studioViewport,\n * // Overrides the viewport to resize behavior\n * interactiveWidget: 'resizes-content'\n * })\n * ```\n * @public\n */\nexport const viewport = {\n width: 'device-width' as const,\n initialScale: 1 as const,\n // Studio implements display cutouts CSS (The iPhone Notch ™ ) and needs `viewport-fit=covered` for it to work correctly\n viewportFit: 'cover',\n} satisfies Viewport\n\n/**\n * In router segments (`/app/studio/[[...index]]/page.tsx`):\n * ```tsx\n * // If you don't want to change any defaults you can just re-export the metadata directly:\n * export {metadata} from 'next-sanity/studio'\n *\n * // To customize the metadata, spread it on the export:\n * import {metadata as studioMetadata} from 'next-sanity/studio'\n * import type { Metadata } from 'next'\n *\n * export const metadata: Metadata = {\n * ...studioMetadata,\n * // Set another title\n * title: 'My Studio',\n * })\n * ```\n * @public\n */\nexport const metadata = {\n referrer: 'same-origin' as const,\n robots: 'noindex' as const,\n} satisfies Metadata\n"],"names":["Object","defineProperty","exports","value","NextStudioNoScript","require","clientComponent","NextStudioLayout","N","a","enumerable","get","NextStudio","metadata","referrer","robots","viewport","width","initialScale","viewportFit"],"mappings":"aAoBOA,OAAAC,eAAAC,QAAA,aAAA,CAAAC,OAAA,IAAA,IAAAC,EAAAC,QAAA,wCAAAC,EAAAD,QAAA,uCA4BPH,QAAAK,iBAAAH,EAAAI,EAAAN,QAAAE,mBAAAA,EAAAK,EAAAT,OAAAC,eAAAC,QAAA,aAAA,CAAAQ,YAAA,EAAAC,IAAA,WAAA,OAAAL,EAAAM,UAAA,IAAAV,QAAAW,SAHwB,CACtBC,SAAU,cACVC,OAAQ,WACVb,QAAAc,SA5BwB,CACtBC,MAAO,eACPC,aAAc,EAEdC,YAAa"}
package/dist/studio.d.cts CHANGED
@@ -64,8 +64,8 @@ export {NextStudioProps}
64
64
  * @public
65
65
  */
66
66
  export declare const viewport: {
67
- width: string
68
- initialScale: number
67
+ width: 'device-width'
68
+ initialScale: 1
69
69
  viewportFit: 'cover'
70
70
  }
71
71
 
package/dist/studio.d.ts CHANGED
@@ -64,8 +64,8 @@ export {NextStudioProps}
64
64
  * @public
65
65
  */
66
66
  export declare const viewport: {
67
- width: string
68
- initialScale: number
67
+ width: 'device-width'
68
+ initialScale: 1
69
69
  viewportFit: 'cover'
70
70
  }
71
71
 
@@ -1 +1 @@
1
- {"version":3,"file":"studio.js","sources":["../src/studio/head.tsx"],"sourcesContent":["import type {Metadata, Viewport} from 'next'\n\n/**\n * In router segments (`/app/studio/[[...index]]/page.tsx`):\n * ```tsx\n * // If you don't want to change any defaults you can just re-export the viewport config directly:\n * export {viewport} from 'next-sanity/studio'\n *\n * // To customize the viewport config, spread it on the export:\n * import {viewport as studioViewport} from 'next-sanity/studio'\n * import type { Viewport } from 'next'\n *\n * export const viewport: Viewport = {\n * ...studioViewport,\n * // Overrides the viewport to resize behavior\n * interactiveWidget: 'resizes-content'\n * })\n * ```\n * @public\n */\nexport const viewport = {\n width: 'device-width',\n initialScale: 1,\n // Studio implements display cutouts CSS (The iPhone Notch ™ ) and needs `viewport-fit=covered` for it to work correctly\n viewportFit: 'cover',\n} satisfies Viewport\n\n/**\n * In router segments (`/app/studio/[[...index]]/page.tsx`):\n * ```tsx\n * // If you don't want to change any defaults you can just re-export the metadata directly:\n * export {metadata} from 'next-sanity/studio'\n *\n * // To customize the metadata, spread it on the export:\n * import {metadata as studioMetadata} from 'next-sanity/studio'\n * import type { Metadata } from 'next'\n *\n * export const metadata: Metadata = {\n * ...studioMetadata,\n * // Set another title\n * title: 'My Studio',\n * })\n * ```\n * @public\n */\nexport const metadata = {\n referrer: 'same-origin' as const,\n robots: 'noindex' as const,\n} satisfies Metadata\n"],"names":["N","a","NextStudio","viewport","width","initialScale","viewportFit","metadata","referrer","robots"],"mappings":"YAoBOA,OAAAC,MAAA,0DAAAC,MAAA,sCAAA,MAAMC,EAAW,CACtBC,MAAO,eACPC,aAAc,EAEdC,YAAa,SAqBFC,EAAW,CACtBC,SAAU,cACVC,OAAQ"}
1
+ {"version":3,"file":"studio.js","sources":["../src/studio/head.tsx"],"sourcesContent":["import type {Metadata, Viewport} from 'next'\n\n/**\n * In router segments (`/app/studio/[[...index]]/page.tsx`):\n * ```tsx\n * // If you don't want to change any defaults you can just re-export the viewport config directly:\n * export {viewport} from 'next-sanity/studio'\n *\n * // To customize the viewport config, spread it on the export:\n * import {viewport as studioViewport} from 'next-sanity/studio'\n * import type { Viewport } from 'next'\n *\n * export const viewport: Viewport = {\n * ...studioViewport,\n * // Overrides the viewport to resize behavior\n * interactiveWidget: 'resizes-content'\n * })\n * ```\n * @public\n */\nexport const viewport = {\n width: 'device-width' as const,\n initialScale: 1 as const,\n // Studio implements display cutouts CSS (The iPhone Notch ™ ) and needs `viewport-fit=covered` for it to work correctly\n viewportFit: 'cover',\n} satisfies Viewport\n\n/**\n * In router segments (`/app/studio/[[...index]]/page.tsx`):\n * ```tsx\n * // If you don't want to change any defaults you can just re-export the metadata directly:\n * export {metadata} from 'next-sanity/studio'\n *\n * // To customize the metadata, spread it on the export:\n * import {metadata as studioMetadata} from 'next-sanity/studio'\n * import type { Metadata } from 'next'\n *\n * export const metadata: Metadata = {\n * ...studioMetadata,\n * // Set another title\n * title: 'My Studio',\n * })\n * ```\n * @public\n */\nexport const metadata = {\n referrer: 'same-origin' as const,\n robots: 'noindex' as const,\n} satisfies Metadata\n"],"names":["N","a","NextStudio","viewport","width","initialScale","viewportFit","metadata","referrer","robots"],"mappings":"YAoBOA,OAAAC,MAAA,0DAAAC,MAAA,sCAAA,MAAMC,EAAW,CACtBC,MAAO,eACPC,aAAc,EAEdC,YAAa,SAqBFC,EAAW,CACtBC,SAAU,cACVC,OAAQ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-sanity",
3
- "version": "9.0.16",
3
+ "version": "9.0.18",
4
4
  "description": "Sanity.io toolkit for Next.js",
5
5
  "keywords": [
6
6
  "sanity",
@@ -119,8 +119,8 @@
119
119
  "browserslist": "extends @sanity/browserslist-config",
120
120
  "dependencies": {
121
121
  "@portabletext/react": "^3.0.18",
122
- "@sanity/client": "^6.18.1",
123
- "@sanity/preview-kit": "5.0.54",
122
+ "@sanity/client": "^6.18.2",
123
+ "@sanity/preview-kit": "5.0.57",
124
124
  "@sanity/visual-editing": "1.8.19",
125
125
  "groq": "^3.37.1",
126
126
  "history": "^5.3.0"
@@ -128,7 +128,7 @@
128
128
  "devDependencies": {
129
129
  "@sanity/browserslist-config": "^1.0.3",
130
130
  "@sanity/eslint-config-studio": "^4.0.0",
131
- "@sanity/pkg-utils": "^6.8.14",
131
+ "@sanity/pkg-utils": "^6.8.15",
132
132
  "@sanity/webhook": "4.0.4",
133
133
  "@types/react": "^18.3.2",
134
134
  "@typescript-eslint/eslint-plugin": "^7.9.0",
@@ -147,7 +147,7 @@
147
147
  "vitest-github-actions-reporter": "^0.11.1"
148
148
  },
149
149
  "peerDependencies": {
150
- "@sanity/client": "^6.18.1",
150
+ "@sanity/client": "^6.18.2",
151
151
  "@sanity/icons": "^2.11.3",
152
152
  "@sanity/types": "^3.37.1",
153
153
  "@sanity/ui": "^2.0.11",
@@ -19,8 +19,8 @@ import type {Metadata, Viewport} from 'next'
19
19
  * @public
20
20
  */
21
21
  export const viewport = {
22
- width: 'device-width',
23
- initialScale: 1,
22
+ width: 'device-width' as const,
23
+ initialScale: 1 as const,
24
24
  // Studio implements display cutouts CSS (The iPhone Notch ™ ) and needs `viewport-fit=covered` for it to work correctly
25
25
  viewportFit: 'cover',
26
26
  } satisfies Viewport