Skip to content

Commit

Permalink
Update sanity (#3096)
Browse files Browse the repository at this point in the history
* feat: Update sanity

* feat: Update sanity minor

* feat: Bumped sanity to 3.55

* Update aksel.nav.no/website/sanity/schema/objects/templates/ExampletextBlock.tsx

Co-authored-by: Halvor Haugan <[email protected]>

---------

Co-authored-by: Halvor Haugan <[email protected]>
  • Loading branch information
KenAJoh and HalvorHaugan committed Sep 2, 2024
1 parent c98ab95 commit 531e720
Show file tree
Hide file tree
Showing 3 changed files with 519 additions and 288 deletions.
19 changes: 9 additions & 10 deletions aksel.nav.no/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
"@amplitude/analytics-browser": "^2.2.3",
"@navikt/next-logger": "1.24.0",
"@navikt/oasis": "3.2.1",
"@portabletext/react": "^3.0.11",
"@portabletext/react": "^3.1.0",
"@sanity/client": "^6.18.0",
"@sanity/code-input": "4.1.4",
"@sanity/color-input": "^3.1.1",
"@sanity/image-url": "1.0.2",
"@sanity/locale-nb-no": "^1.1.7",
"@sanity/preview-url-secret": "^1.6.12",
"@sanity/locale-nb-no": "^1.1.11",
"@sanity/preview-url-secret": "^1.6.20",
"@sanity/table": "1.1.2",
"@sanity/vision": "3.41.1",
"@sanity/vision": "3.55.0",
"@slack/web-api": "^7.0.2",
"boring-avatars": "1.10.1",
"clsx": "^2.1.0",
Expand All @@ -55,7 +55,7 @@
"lz-string": "^1.5.0",
"next": "^14.2.3",
"next-logger": "^4.0.0",
"next-sanity": "9.0.17",
"next-sanity": "9.4.5",
"node-cache": "^5.1.2",
"pino": "^8.21.0",
"prism-react-renderer": "^2.0.0",
Expand All @@ -65,9 +65,8 @@
"react-responsive-masonry": "2.2.0",
"react-rx": "^2.1.3",
"remark-gfm": "^4.0.0",
"sanity": "3.41.1",
"sanity-plugin-media": "^2.2.5",
"sanity-plugin-utils": "^1.6.4",
"sanity": "3.55.0",
"sanity-plugin-media": "^2.3.2",
"sharp": "0.32.6",
"styled-components": "^6.0.0",
"swr": "^1.1.2",
Expand All @@ -81,8 +80,8 @@
"@next/bundle-analyzer": "^14.2.3",
"@next/eslint-plugin-next": "^14.2.3",
"@playwright/test": "1.35.1",
"@sanity/block-tools": "3.41.1",
"@sanity/schema": "3.41.1",
"@sanity/block-tools": "3.55.0",
"@sanity/schema": "3.55.0",
"@types/jscodeshift": "^0.11.11",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ export const ExampletextBlock = defineType({
},
},
components: {
preview: (values: Omit<ExampletextBlockT, "_key">) => (
<AkselExampletextBlock node={values} />
preview: (values) => (
<AkselExampletextBlock
node={{ ...values, title: values.title?.toString() }}
/>
),
},
});
Loading

0 comments on commit 531e720

Please sign in to comment.