Skip to content

Commit

Permalink
upgrade minor dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nkgentile committed Apr 16, 2024
1 parent a066a80 commit e408860
Show file tree
Hide file tree
Showing 17 changed files with 14,487 additions and 6,339 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ yarn-error.log*
.yalc
# Local Netlify folder
.netlify

tsconfig.tsbuildinfo
7,228 changes: 4,840 additions & 2,388 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
}
},
"dependencies": {
"@sanity/language-filter": "^3.1.1",
"@sanity/language-filter": "^4.0.2",
"husky": "^8.0.3",
"prettier": "^2.8.8",
"sanity": "^3.16.1"
"sanity": "^3.38.0"
},
"devDependencies": {
"@sanity/eslint-config-studio": "^2.0.1",
"eslint": "^8.40.0",
"@sanity/eslint-config-studio": "^4.0.0",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-simple-import-sort": "^10.0.0",
"prettier": "2.8.8",
"typescript": "^5.0.4"
"typescript": "^5.4.5"
},
"prettier": {
"semi": false,
Expand Down
9 changes: 0 additions & 9 deletions studio/components/IframeWrapper.tsx

This file was deleted.

6,268 changes: 4,132 additions & 2,136 deletions studio/package-lock.json

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,34 @@
"sanity"
],
"dependencies": {
"@sanity/assist": "^2.0.0",
"@sanity/code-input": "^4.0.0",
"@sanity/document-internationalization": "^2.0.3",
"@sanity/eslint-config-studio": "^2.0.0",
"@sanity/language-filter": "^3.2.2",
"@sanity/vision": "^3.4.0",
"eslint": "^8.6.0",
"eslint-config-prettier": "^8.5.0",
"@sanity/assist": "^3.0.3",
"@sanity/code-input": "^4.1.4",
"@sanity/document-internationalization": "^3.0.0",
"@sanity/eslint-config-studio": "^4.0.0",
"@sanity/language-filter": "^4.0.2",
"@sanity/vision": "^3.38.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-prettier": "^4.2.1",
"framer-motion": "^9.0.4",
"groq": "^3.4.0",
"prettier": "^2.7.1",
"framer-motion": "^11.1.1",
"groq": "^3.38.0",
"prettier": "^2.8.8",
"react": "^18.2.0",
"react-archer": "^4.1.0",
"react-archer": "^4.3.0",
"react-dom": "^18.2.0",
"react-icons": "^4.4.0",
"react-icons": "^5.1.0",
"react-is": "^18.2.0",
"react-xarrows": "^2.0.2",
"sanity": "^3.29.1",
"sanity-plugin-documents-pane": "^2.0.0",
"sanity": "^3.38.0",
"sanity-plugin-documents-pane": "^2.2.1",
"sanity-plugin-google-translate": "^3.0.0",
"sanity-plugin-iframe-pane": "^2.0.0",
"sanity-plugin-internationalized-array": "^1.10.5",
"sanity-plugin-schema-visualizer": "^1.0.0",
"sanity-plugin-transifex": "^3.0.0",
"styled-components": "^5.2.0"
"sanity-plugin-iframe-pane": "^3.1.6",
"sanity-plugin-internationalized-array": "^2.0.0",
"sanity-plugin-schema-visualizer": "^1.1.1",
"sanity-plugin-transifex": "^4.0.0",
"styled-components": "^6.1.8"
},
"devDependencies": {
"@types/styled-components": "^5.1.26"
"@types/styled-components": "^5.1.34"
}
}
3 changes: 2 additions & 1 deletion studio/sanity.config.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Card} from '@sanity/ui'
import {buildLegacyTheme, defineConfig, isKeyedObject} from 'sanity'
import {defineConfig, isKeyedObject} from 'sanity'
import {structureTool} from 'sanity/structure'
import {assist} from '@sanity/assist'
import {visionTool} from '@sanity/vision'
Expand Down Expand Up @@ -92,6 +92,7 @@ export default defineConfig({
}),
],
schema: {
// @ts-expect-error
types: schemaTypes,
templates: (prev) => {
const prevFiltered = prev.filter((template) => template.id !== 'lesson')
Expand Down
2 changes: 1 addition & 1 deletion studio/schemas/objects/marketContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default defineType({
content: 'content',
market: 'market',
},
prepare({content, market}: {content: Block[]; market: string}) {
prepare({content, market}: {content: PortableTextTextBlock[]; market: string}) {
const title = blocksToText(content)

return {
Expand Down
1 change: 0 additions & 1 deletion studio/structure/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {FiAward, FiType, FiUsers} from 'react-icons/fi'
import {StructureResolver, DefaultDocumentNodeResolver} from 'sanity/structure'

import {i18n} from '../../languages'
import preview from './preview'
import references from './references'
import transifex from './transifex'

Expand Down
14 changes: 0 additions & 14 deletions studio/structure/preview.ts

This file was deleted.

4 changes: 2 additions & 2 deletions web/components/Callout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export default function Callout({tone = `positive`, content = []}) {
<div className={classNames}>
{/* {React.createElement(toneIcons[tone], {
className: `w-6 md:w-10 h-auto scale-150 transform -rotate-[10deg]`,
})}
<PortableText value={content} /> */}
})}*/}
<PortableText value={content} />
</div>
)
}
2 changes: 1 addition & 1 deletion web/components/Presenters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function Presenters(props: PresentersProps) {

return (
<div className="mr-auto flex flex-col gap-y-4">
{presenters.map((presenter) => (
{presenters?.map((presenter) => (
<div key={presenter._id} className="mr-auto flex flex-col gap-y-2">
<Clean as="div" value={presenter.name} />
<Clean as="div" value={presenter.title} />
Expand Down
5 changes: 3 additions & 2 deletions web/components/VisualEditing.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* eslint-disable no-restricted-globals */
'use client'

import {enableOverlays, HistoryAdapterNavigate} from '@sanity/overlays'
import {useLiveMode} from '@sanity/react-loader'
import {enableVisualEditing, HistoryAdapterNavigate} from '@sanity/visual-editing'
import {usePathname, useRouter, useSearchParams} from 'next/navigation'
import {useEffect, useRef, useState} from 'react'

Expand All @@ -19,7 +20,7 @@ export default function VisualEditing() {
routerRef.current = router
}, [router])
useEffect(() => {
const disable = enableOverlays({
const disable = enableVisualEditing({
history: {
subscribe: (navigate) => {
setNavigate(() => navigate)
Expand Down
Loading

0 comments on commit e408860

Please sign in to comment.