From f33e307e95cbce9785176538c13b89beea1c004a Mon Sep 17 00:00:00 2001 From: Mitchell Christ Date: Tue, 24 Sep 2024 17:59:34 -0700 Subject: [PATCH] update stegaClean import --- package-lock.json | 142 +++++++++--------- package.json | 14 +- src/lib/moduleProps.ts | 2 +- src/lib/processUrl.ts | 2 +- src/ui/CTA.tsx | 2 +- src/ui/Img.tsx | 2 +- src/ui/Pretitle.tsx | 2 +- src/ui/Reputation/getStargazers.ts | 2 +- src/ui/footer/Navigation.tsx | 4 +- src/ui/modules/Breadcrumbs.tsx | 2 +- .../modules/CreativeModule/ImageSubModule.tsx | 2 +- src/ui/modules/CreativeModule/index.tsx | 3 +- src/ui/modules/CustomHTML.tsx | 2 +- src/ui/modules/FlagList.tsx | 3 +- src/ui/modules/Hero.tsx | 3 +- src/ui/modules/RichtextModule/Code.tsx | 2 +- src/ui/modules/RichtextModule/Image.tsx | 2 +- src/ui/modules/RichtextModule/index.tsx | 2 +- src/ui/modules/StatList.tsx | 3 +- src/ui/modules/TestimonialList.tsx | 3 +- src/ui/modules/blog/BlogFrontpage/index.tsx | 2 +- src/ui/modules/blog/BlogList/index.tsx | 3 +- 22 files changed, 98 insertions(+), 106 deletions(-) diff --git a/package-lock.json b/package-lock.json index 210b2b20..2ba0dba6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sanitypress", - "version": "4.7.3", + "version": "4.7.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "sanitypress", - "version": "4.7.3", + "version": "4.7.5", "license": "ISC", "dependencies": { "@next/third-parties": "^14.2.13", @@ -15,12 +15,12 @@ "@sanity/dashboard": "^4.0.0", "@sanity/image-url": "^1.0.2", "@sanity/preview-url-secret": "^1.6.21", - "@sanity/vision": "^3.57.4", + "@sanity/vision": "^3.58.0", "@vercel/analytics": "^1.3.1", "@vercel/speed-insights": "^1.0.12", "clsx": "^2.1.1", "feed": "^4.2.2", - "groq": "^3.57.4", + "groq": "^3.58.0", "next": "^14.2.13", "next-sanity": "^9.5.0", "next-sanity-image": "^6.1.1", @@ -32,7 +32,7 @@ "react-is": "^18.3.1", "rss": "^1.2.2", "rxjs": "^7.8.1", - "sanity": "^3.57.4", + "sanity": "^3.58.0", "sanity-plugin-dashboard-widget-vercel": "^2.0.1", "shiki": "^1.18.0", "styled-components": "^6.1.13", @@ -41,15 +41,15 @@ }, "devDependencies": { "@sanity/eslint-config-studio": "^4.0.0", - "@types/node": "^22.6.1", - "@types/react": "^18.3.8", + "@types/node": "^22.6.2", + "@types/react": "^18.3.9", "@types/react-dom": "^18.3.0", "@types/rss": "^0.0.32", "autoprefixer": "^10.4.20", "eslint": "^9.11.1", "postcss": "^8.4.47", "prettier": "^3.3.3", - "prettier-plugin-tailwindcss": "^0.6.6", + "prettier-plugin-tailwindcss": "^0.6.8", "tailwindcss": "^3.4.13", "typescript": "^5.6.2" } @@ -3680,26 +3680,26 @@ } }, "node_modules/@sanity/block-tools": { - "version": "3.57.4", - "resolved": "https://registry.npmjs.org/@sanity/block-tools/-/block-tools-3.57.4.tgz", - "integrity": "sha512-b9h0G8s4dH1tkxIhkkR0wDDAgYoXKQEIgp3DzyMeAQEKKZ3hTyXrqb905M8HzXOR01IBt3T305N6fbCK6ivxSg==", + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@sanity/block-tools/-/block-tools-3.58.0.tgz", + "integrity": "sha512-SY5Ahq3fjyWqsCRikjoojO6U0XviP0kLWsM2CBoJyXSkioCcQmolOXnk9BvP5sI7F6Y0HKL0qrOpE2MmAeVXrg==", "dependencies": { - "@sanity/types": "3.57.4", + "@sanity/types": "3.58.0", "@types/react": "^18.3.5", "get-random-values-esm": "1.0.2", "lodash": "^4.17.21" } }, "node_modules/@sanity/cli": { - "version": "3.57.4", - "resolved": "https://registry.npmjs.org/@sanity/cli/-/cli-3.57.4.tgz", - "integrity": "sha512-hP8sd7v+T85e5JlrrTASbY6jPj0etb1BEySnJZpzdBa/Bslydbp/MIDoe84K4DfZ4nOmDeaPEs8DJrQzfgDRxw==", + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@sanity/cli/-/cli-3.58.0.tgz", + "integrity": "sha512-OQY7LnvQpz62zNBFl0UpA+Mv+r84I/yeSKw8SG9N1nX4fboPMx97bMeSHISpe4hagKwZ7bkRJSx22/C2cMAnLA==", "dependencies": { "@babel/traverse": "^7.23.5", "@sanity/client": "^6.21.3", - "@sanity/codegen": "3.57.4", + "@sanity/codegen": "3.58.0", "@sanity/telemetry": "^0.7.7", - "@sanity/util": "3.57.4", + "@sanity/util": "3.58.0", "chalk": "^4.1.2", "debug": "^4.3.4", "decompress": "^4.2.0", @@ -3772,9 +3772,9 @@ } }, "node_modules/@sanity/codegen": { - "version": "3.57.4", - "resolved": "https://registry.npmjs.org/@sanity/codegen/-/codegen-3.57.4.tgz", - "integrity": "sha512-JL9gXBsrBplZFFf05Jth4JF6DeiLdhUKlJQtE/XYsazKd6/JEgZO260zG8e734k/Zpgu7X1ZSld6JljpRHg0dQ==", + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@sanity/codegen/-/codegen-3.58.0.tgz", + "integrity": "sha512-IiN/OOsrRjngwjD0ZGwWi8/U07ycREtLVJPh/bb24EA+VaVx1Udhqb02CB+NJnBzEg/dXXYx3UuO1EFenwCKdg==", "dependencies": { "@babel/core": "^7.23.9", "@babel/generator": "^7.23.6", @@ -3786,7 +3786,7 @@ "@babel/types": "^7.23.9", "debug": "^4.3.4", "globby": "^10.0.0", - "groq": "3.57.4", + "groq": "3.58.0", "groq-js": "^1.13.0", "json5": "^2.2.3", "tsconfig-paths": "^4.2.0", @@ -3884,9 +3884,9 @@ } }, "node_modules/@sanity/diff": { - "version": "3.57.4", - "resolved": "https://registry.npmjs.org/@sanity/diff/-/diff-3.57.4.tgz", - "integrity": "sha512-eKFv3kiymVNN1ROec1Pe0OtSz6cd/zg0mkn+KvEVBlUHVHICAD7AeEso1/4IAcqby4APv2lmzQ861cymGYq/Fg==", + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@sanity/diff/-/diff-3.58.0.tgz", + "integrity": "sha512-l5qLOt6WQckWFrs3153cV3x5It8X3wvO6Rxn0OXJIuCCJsYwMyBbUDZJh5J2e3hJNoksZyFp/+10kWQeFr/Xbg==", "dependencies": { "@sanity/diff-match-patch": "^3.1.1" }, @@ -4166,14 +4166,14 @@ } }, "node_modules/@sanity/migrate": { - "version": "3.57.4", - "resolved": "https://registry.npmjs.org/@sanity/migrate/-/migrate-3.57.4.tgz", - "integrity": "sha512-HJDaxI6V1mOE5N68wE3bd9Ab1EJB1QKUfQLukQTTgcszXbbZfnZ7BeogZFNyCsZunnYqD4f1HOJELxq7Zy8Dvg==", + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@sanity/migrate/-/migrate-3.58.0.tgz", + "integrity": "sha512-o6uiIKdfxiQLT+HoXmo5aZ+I/JhVQscsWPuukwiMAazK5ftTDU3DjfDvS5skt3qN95NdfKJT7dFwOnH3LKCHdw==", "dependencies": { "@sanity/client": "^6.21.3", "@sanity/mutate": "^0.10.0", - "@sanity/types": "3.57.4", - "@sanity/util": "3.57.4", + "@sanity/types": "3.58.0", + "@sanity/util": "3.58.0", "arrify": "^2.0.1", "debug": "^4.3.4", "fast-fifo": "^1.3.2", @@ -4226,12 +4226,12 @@ } }, "node_modules/@sanity/mutator": { - "version": "3.57.4", - "resolved": "https://registry.npmjs.org/@sanity/mutator/-/mutator-3.57.4.tgz", - "integrity": "sha512-24KryNSaFAvRDL01pBp7HrQbJp0cS/JMzLYxS6J5fJAi7VmTg5bm7a0FAKmIGXwSnn1RzV9Y5WqRmDT2IHC69Q==", + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@sanity/mutator/-/mutator-3.58.0.tgz", + "integrity": "sha512-Z00TZ8Q/GpdJTjXPfjV1UhoAUBwVxj1xpeFUiuliCHPY6bMgyvVATGVDd5yvPy6fKN3XIKOPtFPq6Btuv+9Vvw==", "dependencies": { "@sanity/diff-match-patch": "^3.1.1", - "@sanity/types": "3.57.4", + "@sanity/types": "3.58.0", "@sanity/uuid": "^3.0.1", "debug": "^4.3.4", "lodash": "^4.17.21" @@ -4373,12 +4373,12 @@ } }, "node_modules/@sanity/schema": { - "version": "3.57.4", - "resolved": "https://registry.npmjs.org/@sanity/schema/-/schema-3.57.4.tgz", - "integrity": "sha512-4nx9QUDx1GozFDxjcQr00L9XigCdCRZCkWAF4GUT79vTmowu5zvxuxMJg2VPwbpglwoKb/HQyqcZQuz2iIIzOQ==", + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@sanity/schema/-/schema-3.58.0.tgz", + "integrity": "sha512-bn966DmeJ6mNoAqtp/YOAc4ZKp65vtkN2se5xaRyvy+7SjtCTbAASeZbVWLkPAlbIiEsrhHChCdVhzzNRxtqJA==", "dependencies": { "@sanity/generate-help-url": "^3.0.0", - "@sanity/types": "3.57.4", + "@sanity/types": "3.58.0", "arrify": "^1.0.1", "groq-js": "^1.13.0", "humanize-list": "^1.0.1", @@ -4404,9 +4404,9 @@ } }, "node_modules/@sanity/types": { - "version": "3.57.4", - "resolved": "https://registry.npmjs.org/@sanity/types/-/types-3.57.4.tgz", - "integrity": "sha512-KggXoUesFRp3ZMle5C4wrnkXxpanauGAaxa0vAbMJiTU4n0EiGbzzk5cZ+mb4dxV6358fnaY0nQ4ybsfgVy3dQ==", + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@sanity/types/-/types-3.58.0.tgz", + "integrity": "sha512-Ha85XNp50Y32qQz6+JQmQDvh9mYtni5fpLWi0ywUrOmx00SABFNcrZ2PIktL2Bq2/PeFcEetsps4fl8ug39wfg==", "dependencies": { "@sanity/client": "^6.21.3", "@types/react": "^18.3.5" @@ -4451,12 +4451,12 @@ } }, "node_modules/@sanity/util": { - "version": "3.57.4", - "resolved": "https://registry.npmjs.org/@sanity/util/-/util-3.57.4.tgz", - "integrity": "sha512-zl/vNnjljhVGCqL92P4lxqrXcjTqUc14f/O4guRj4KMU94Gjk74M6e2QKWDoV3iTHtLILt88sLnjb1pLFOlWSQ==", + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@sanity/util/-/util-3.58.0.tgz", + "integrity": "sha512-kH2nA7f9I834+LAi9Mvv98PnvPFg8KUu1UhTQRj68P1B/bR/qAqdVB6RGpCctyFKuFLAXw/d2USbSesoUgEtQg==", "dependencies": { "@sanity/client": "^6.21.3", - "@sanity/types": "3.57.4", + "@sanity/types": "3.58.0", "get-random-values-esm": "1.0.2", "moment": "^2.29.4", "rxjs": "^7.8.1" @@ -4475,9 +4475,9 @@ } }, "node_modules/@sanity/vision": { - "version": "3.57.4", - "resolved": "https://registry.npmjs.org/@sanity/vision/-/vision-3.57.4.tgz", - "integrity": "sha512-pNJFIctnRBjiyUsMebcaxW4927E/JxrFof/qojflqV6DIVyO9STReMPJZgxcU3d5Sj5D5Zn3KxRaWzwob4xMDw==", + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@sanity/vision/-/vision-3.58.0.tgz", + "integrity": "sha512-7GDvdDOMIcYYp3yRtbtXrYq5HfxvEfjyy/r5/EX7tHHaQf2DOs5txtq6OK0OSVOoC0ezzJMR0Tx048DjW/HVHA==", "dependencies": { "@codemirror/autocomplete": "^6.1.0", "@codemirror/commands": "^6.0.1", @@ -4988,9 +4988,9 @@ "integrity": "sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==" }, "node_modules/@types/node": { - "version": "22.6.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.6.1.tgz", - "integrity": "sha512-V48tCfcKb/e6cVUigLAaJDAILdMP0fUW6BidkPK4GpGjXcfbnoHasCZDwz3N3yVt5we2RHm4XTQCpv0KJz9zqw==", + "version": "22.6.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.6.2.tgz", + "integrity": "sha512-roF5SJIJFOiDNf+vO6h/a0Y02/U4wJ7KwgDNrBdkBGUstvOkct7JQaSkF16jXn/UsAhvNeLEXqyuN6EUvg6+xw==", "dependencies": { "undici-types": "~6.19.2" } @@ -5014,10 +5014,9 @@ "integrity": "sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==" }, "node_modules/@types/react": { - "version": "18.3.8", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.8.tgz", - "integrity": "sha512-syBUrW3/XpnW4WJ41Pft+I+aPoDVbrBVQGEnbD7NijDGlVC+8gV/XKRY+7vMDlfPpbwYt0l1vd/Sj8bJGMbs9Q==", - "license": "MIT", + "version": "18.3.9", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.9.tgz", + "integrity": "sha512-+BpAVyTpJkNWWSSnaLBk6ePpHLOGJKnEQNbINNovPWzvEUyAe3e+/d494QdEh71RekM/qV7lw6jzf1HGrJyAtQ==", "dependencies": { "@types/prop-types": "*", "csstype": "^3.0.2" @@ -9050,9 +9049,9 @@ "dev": true }, "node_modules/groq": { - "version": "3.57.4", - "resolved": "https://registry.npmjs.org/groq/-/groq-3.57.4.tgz", - "integrity": "sha512-ITafp0JhY+ta/Vh5WvfRjyo2rMMJ7uu/nz+qFpiX5B9AIcW+Qezx394zdEFiG1PWRJ90hav4fWYMynp6pjO9KA==", + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/groq/-/groq-3.58.0.tgz", + "integrity": "sha512-LgGIlMe75I5HPyY5jPIfDEym4yWOSQn+ynop+NbMAlc9qYd1mt3+xcTrimKaUbJ+S2QTD0x5uhc3ftC0Gpp0TA==", "engines": { "node": ">=18" } @@ -12110,11 +12109,10 @@ } }, "node_modules/prettier-plugin-tailwindcss": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.6.6.tgz", - "integrity": "sha512-OPva5S7WAsPLEsOuOWXATi13QrCKACCiIonFgIR6V4lYv4QLp++UXVhZSzRbZxXGimkQtQT86CC6fQqTOybGng==", + "version": "0.6.8", + "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.6.8.tgz", + "integrity": "sha512-dGu3kdm7SXPkiW4nzeWKCl3uoImdd5CTZEJGxyypEPL37Wj0HT2pLqjrvSei1nTeuQfO4PUfjeW5cTUNRLZ4sA==", "dev": true, - "license": "MIT", "engines": { "node": ">=14.21.3" }, @@ -13207,9 +13205,9 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "node_modules/sanity": { - "version": "3.57.4", - "resolved": "https://registry.npmjs.org/sanity/-/sanity-3.57.4.tgz", - "integrity": "sha512-uNgIQEWQ7aa4lzGk20Ya8coNTuE8wNmuMJdhpBG5tmvRi9KQ3em4cUZKW9b6KNiyKs6VCIa8qWqLVCVXDMwTOA==", + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/sanity/-/sanity-3.58.0.tgz", + "integrity": "sha512-xqmDdxDhbx66ntnj1jM6SpT6RYtklOkaMURsQ+uI2/jw33myD1TsJdp9Sbkms6LotsQrWAHJrn+mFYTMsc8tPA==", "dependencies": { "@dnd-kit/core": "^6.0.5", "@dnd-kit/modifiers": "^6.0.0", @@ -13221,11 +13219,11 @@ "@rexxars/react-json-inspector": "^8.0.1", "@sanity/asset-utils": "^1.2.5", "@sanity/bifur-client": "^0.4.1", - "@sanity/block-tools": "3.57.4", - "@sanity/cli": "3.57.4", + "@sanity/block-tools": "3.58.0", + "@sanity/cli": "3.58.0", "@sanity/client": "^6.21.3", "@sanity/color": "^3.0.0", - "@sanity/diff": "3.57.4", + "@sanity/diff": "3.58.0", "@sanity/diff-match-patch": "^3.1.1", "@sanity/eventsource": "^5.0.0", "@sanity/export": "^3.41.0", @@ -13234,14 +13232,14 @@ "@sanity/import": "^3.37.3", "@sanity/insert-menu": "1.0.9", "@sanity/logos": "^2.1.4", - "@sanity/migrate": "3.57.4", - "@sanity/mutator": "3.57.4", + "@sanity/migrate": "3.58.0", + "@sanity/mutator": "3.58.0", "@sanity/presentation": "1.16.5", - "@sanity/schema": "3.57.4", + "@sanity/schema": "3.58.0", "@sanity/telemetry": "^0.7.7", - "@sanity/types": "3.57.4", + "@sanity/types": "3.58.0", "@sanity/ui": "^2.8.9", - "@sanity/util": "3.57.4", + "@sanity/util": "3.58.0", "@sanity/uuid": "^3.0.1", "@sentry/react": "^8.7.0", "@tanstack/react-table": "^8.16.0", diff --git a/package.json b/package.json index 0f5746af..ae0c3617 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sanitypress", - "version": "4.7.5", + "version": "4.7.6", "description": "A Next.js + Sanity.io Starter Template", "author": "nuotsu (https://nuotsu.dev)", "license": "ISC", @@ -17,12 +17,12 @@ "@sanity/dashboard": "^4.0.0", "@sanity/image-url": "^1.0.2", "@sanity/preview-url-secret": "^1.6.21", - "@sanity/vision": "^3.57.4", + "@sanity/vision": "^3.58.0", "@vercel/analytics": "^1.3.1", "@vercel/speed-insights": "^1.0.12", "clsx": "^2.1.1", "feed": "^4.2.2", - "groq": "^3.57.4", + "groq": "^3.58.0", "next": "^14.2.13", "next-sanity": "^9.5.0", "next-sanity-image": "^6.1.1", @@ -34,7 +34,7 @@ "react-is": "^18.3.1", "rss": "^1.2.2", "rxjs": "^7.8.1", - "sanity": "^3.57.4", + "sanity": "^3.58.0", "sanity-plugin-dashboard-widget-vercel": "^2.0.1", "shiki": "^1.18.0", "styled-components": "^6.1.13", @@ -43,15 +43,15 @@ }, "devDependencies": { "@sanity/eslint-config-studio": "^4.0.0", - "@types/node": "^22.6.1", - "@types/react": "^18.3.8", + "@types/node": "^22.6.2", + "@types/react": "^18.3.9", "@types/react-dom": "^18.3.0", "@types/rss": "^0.0.32", "autoprefixer": "^10.4.20", "eslint": "^9.11.1", "postcss": "^8.4.47", "prettier": "^3.3.3", - "prettier-plugin-tailwindcss": "^0.6.6", + "prettier-plugin-tailwindcss": "^0.6.8", "tailwindcss": "^3.4.13", "typescript": "^5.6.2" } diff --git a/src/lib/moduleProps.ts b/src/lib/moduleProps.ts index ab1901a7..168538e9 100644 --- a/src/lib/moduleProps.ts +++ b/src/lib/moduleProps.ts @@ -1,4 +1,4 @@ -import { stegaClean } from '@sanity/client/stega' +import { stegaClean } from 'next-sanity' export default function ({ _type, uid, _key }: Partial) { return { diff --git a/src/lib/processUrl.ts b/src/lib/processUrl.ts index 36f8869e..04f3b1b5 100644 --- a/src/lib/processUrl.ts +++ b/src/lib/processUrl.ts @@ -1,4 +1,4 @@ -import { stegaClean } from '@sanity/client/stega' +import { stegaClean } from 'next-sanity' export default function ( page: Sanity.PageBase, diff --git a/src/ui/CTA.tsx b/src/ui/CTA.tsx index 19552b64..6e94af26 100644 --- a/src/ui/CTA.tsx +++ b/src/ui/CTA.tsx @@ -1,7 +1,7 @@ import Link from 'next/link' import processUrl from '@/lib/processUrl' import { cn } from '@/lib/utils' -import { stegaClean } from '@sanity/client/stega' +import { stegaClean } from 'next-sanity' export default function CTA({ link, diff --git a/src/ui/Img.tsx b/src/ui/Img.tsx index df6ef806..fc3de196 100644 --- a/src/ui/Img.tsx +++ b/src/ui/Img.tsx @@ -4,7 +4,7 @@ import { } from 'next-sanity-image' import client from '@/lib/sanity/client' import { urlFor } from '@/lib/sanity/urlFor' -import { stegaClean } from '@sanity/client/stega' +import { stegaClean } from 'next-sanity' const SIZES = [ 120, 160, 200, 240, 320, 400, 480, 520, 560, 600, 640, 800, 960, 1280, 1440, diff --git a/src/ui/Pretitle.tsx b/src/ui/Pretitle.tsx index af21021a..023713a1 100644 --- a/src/ui/Pretitle.tsx +++ b/src/ui/Pretitle.tsx @@ -1,5 +1,5 @@ import { cn } from '@/lib/utils' -import { stegaClean } from '@sanity/client/stega' +import { stegaClean } from 'next-sanity' export default function Pretitle({ className, diff --git a/src/ui/Reputation/getStargazers.ts b/src/ui/Reputation/getStargazers.ts index 404bdd12..c7145c90 100644 --- a/src/ui/Reputation/getStargazers.ts +++ b/src/ui/Reputation/getStargazers.ts @@ -1,5 +1,5 @@ import { Octokit } from 'octokit' -import { stegaClean } from '@sanity/client/stega' +import { stegaClean } from 'next-sanity' const octokit = new Octokit({ auth: process.env.NEXT_PUBLIC_GITHUB_TOKEN!, diff --git a/src/ui/footer/Navigation.tsx b/src/ui/footer/Navigation.tsx index 3ff721e2..0ce75349 100644 --- a/src/ui/footer/Navigation.tsx +++ b/src/ui/footer/Navigation.tsx @@ -1,7 +1,7 @@ import { getSite } from '@/lib/sanity/queries' -import { cn } from '@/lib/utils' import CTA from '@/ui/CTA' -import { stegaClean } from '@sanity/client/stega' +import { cn } from '@/lib/utils' +import { stegaClean } from 'next-sanity' export default async function Menu() { const { footerMenu } = await getSite() diff --git a/src/ui/modules/Breadcrumbs.tsx b/src/ui/modules/Breadcrumbs.tsx index c8be9ba9..d29ed138 100644 --- a/src/ui/modules/Breadcrumbs.tsx +++ b/src/ui/modules/Breadcrumbs.tsx @@ -1,6 +1,6 @@ import { Fragment } from 'react' import CTA from '@/ui/CTA' -import { stegaClean } from '@sanity/client/stega' +import { stegaClean } from 'next-sanity' export default async function Breadcrumbs({ crumbs, diff --git a/src/ui/modules/CreativeModule/ImageSubModule.tsx b/src/ui/modules/CreativeModule/ImageSubModule.tsx index a8c8e163..5d9ada53 100644 --- a/src/ui/modules/CreativeModule/ImageSubModule.tsx +++ b/src/ui/modules/CreativeModule/ImageSubModule.tsx @@ -1,5 +1,5 @@ import Img from '@/ui/Img' -import { stegaClean } from '@sanity/client/stega' +import { stegaClean } from 'next-sanity' import type { ComponentProps } from 'react' export type ImageSubModuleType = Sanity.Module<'image'> & diff --git a/src/ui/modules/CreativeModule/index.tsx b/src/ui/modules/CreativeModule/index.tsx index 81f62b3a..0af131a0 100644 --- a/src/ui/modules/CreativeModule/index.tsx +++ b/src/ui/modules/CreativeModule/index.tsx @@ -1,4 +1,4 @@ -import { PortableText } from 'next-sanity' +import { PortableText, stegaClean } from 'next-sanity' import CTAsSubModule, { type CTAsSubModuleType } from './CTAsSubModule' import CustomHTMLSubmodule, { type CustomHTMLSubmoduleType, @@ -9,7 +9,6 @@ import RichtextSubModule, { type RichtextSubModuleType, } from './RichtextSubModule' import { cn } from '@/lib/utils' -import { stegaClean } from '@sanity/client/stega' export default function CreativeModule({ intro, diff --git a/src/ui/modules/CustomHTML.tsx b/src/ui/modules/CustomHTML.tsx index bfbf64fe..6be6ed0e 100644 --- a/src/ui/modules/CustomHTML.tsx +++ b/src/ui/modules/CustomHTML.tsx @@ -1,7 +1,7 @@ 'use client' import moduleProps from '@/lib/moduleProps' -import { stegaClean } from '@sanity/client/stega' +import { stegaClean } from 'next-sanity' import { useEffect, useRef, useState } from 'react' export default function CustomHTML({ diff --git a/src/ui/modules/FlagList.tsx b/src/ui/modules/FlagList.tsx index 1a86f522..0d8c8a94 100644 --- a/src/ui/modules/FlagList.tsx +++ b/src/ui/modules/FlagList.tsx @@ -1,7 +1,6 @@ -import { PortableText } from 'next-sanity' +import { PortableText, stegaClean } from 'next-sanity' import Img from '@/ui/Img' import { cn } from '@/lib/utils' -import { stegaClean } from '@sanity/client/stega' export default function FlagList({ intro, diff --git a/src/ui/modules/Hero.tsx b/src/ui/modules/Hero.tsx index 286ae53d..2dcec8b0 100644 --- a/src/ui/modules/Hero.tsx +++ b/src/ui/modules/Hero.tsx @@ -1,10 +1,9 @@ import Img, { Source } from '@/ui/Img' -import { PortableText } from 'next-sanity' +import { PortableText, stegaClean } from 'next-sanity' import CTAList from '@/ui/CTAList' import Pretitle from '@/ui/Pretitle' import Reputation from '@/ui/Reputation' import { cn } from '@/lib/utils' -import { stegaClean } from '@sanity/client/stega' import css from './Hero.module.css' export default function Hero({ diff --git a/src/ui/modules/RichtextModule/Code.tsx b/src/ui/modules/RichtextModule/Code.tsx index 3004fb9d..5f5fff90 100644 --- a/src/ui/modules/RichtextModule/Code.tsx +++ b/src/ui/modules/RichtextModule/Code.tsx @@ -1,8 +1,8 @@ import { codeToHtml, splitLines } from 'shiki' -import { stegaClean } from '@sanity/client/stega' import ClickToCopy from '@/ui/ClickToCopy' import css from './Code.module.css' import { cn } from '@/lib/utils' +import { stegaClean } from 'next-sanity' export default async function Code({ value, diff --git a/src/ui/modules/RichtextModule/Image.tsx b/src/ui/modules/RichtextModule/Image.tsx index 9a87d94b..19d800b3 100644 --- a/src/ui/modules/RichtextModule/Image.tsx +++ b/src/ui/modules/RichtextModule/Image.tsx @@ -1,5 +1,5 @@ import Img from '@/ui/Img' -import { stegaClean } from '@sanity/client/stega' +import { stegaClean } from 'next-sanity' export default function Image({ value, diff --git a/src/ui/modules/RichtextModule/index.tsx b/src/ui/modules/RichtextModule/index.tsx index 15831a9f..1c5cc0c5 100644 --- a/src/ui/modules/RichtextModule/index.tsx +++ b/src/ui/modules/RichtextModule/index.tsx @@ -1,7 +1,7 @@ import TableOfContents from './TableOfContents' import Content from './Content' import { cn } from '@/lib/utils' -import { stegaClean } from '@sanity/client/stega' +import { stegaClean } from 'next-sanity' export default function RichtextModule({ content, diff --git a/src/ui/modules/StatList.tsx b/src/ui/modules/StatList.tsx index 6475afe0..30af5f00 100644 --- a/src/ui/modules/StatList.tsx +++ b/src/ui/modules/StatList.tsx @@ -1,5 +1,4 @@ -import { PortableText } from 'next-sanity' -import { stegaClean } from '@sanity/client/stega' +import { PortableText, stegaClean } from 'next-sanity' export default function StatList({ intro, diff --git a/src/ui/modules/TestimonialList.tsx b/src/ui/modules/TestimonialList.tsx index f2ed374f..d4624ea3 100644 --- a/src/ui/modules/TestimonialList.tsx +++ b/src/ui/modules/TestimonialList.tsx @@ -1,5 +1,4 @@ -import { PortableText } from 'next-sanity' -import { stegaClean } from '@sanity/client/stega' +import { PortableText, stegaClean } from 'next-sanity' import Img from '@/ui/Img' import { cn } from '@/lib/utils' diff --git a/src/ui/modules/blog/BlogFrontpage/index.tsx b/src/ui/modules/blog/BlogFrontpage/index.tsx index adb56bb9..d9efaa16 100644 --- a/src/ui/modules/blog/BlogFrontpage/index.tsx +++ b/src/ui/modules/blog/BlogFrontpage/index.tsx @@ -3,7 +3,7 @@ import FilterList from '../BlogList/FilterList' import PostPreviewLarge from '../PostPreviewLarge' import Paginated from './Paginated' import sortFeaturedPosts from './sortFeaturedPosts' -import { stegaClean } from '@sanity/client/stega' +import { stegaClean } from 'next-sanity' export default async function BlogFrontpage({ mainPost, diff --git a/src/ui/modules/blog/BlogList/index.tsx b/src/ui/modules/blog/BlogList/index.tsx index 1acec97f..02886390 100644 --- a/src/ui/modules/blog/BlogList/index.tsx +++ b/src/ui/modules/blog/BlogList/index.tsx @@ -1,8 +1,7 @@ import { fetchSanity, groq } from '@/lib/sanity/fetch' -import { PortableText } from 'next-sanity' +import { PortableText, stegaClean } from 'next-sanity' import FilterList from '@/ui/modules/blog/BlogList/FilterList' import List from './List' -import { stegaClean } from '@sanity/client/stega' import { cn } from '@/lib/utils' export default async function BlogList({