Skip to content

Commit

Permalink
Update Sanity example deps and prepare for next v15
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed May 28, 2024
1 parent dfe7fc0 commit e384e0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
16 changes: 8 additions & 8 deletions examples/cms-sanity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@
"@sanity/assist": "^3.0.4",
"@sanity/icons": "^2.11.8",
"@sanity/image-url": "^1.0.2",
"@sanity/preview-url-secret": "^1.6.13",
"@sanity/vision": "^3.42.1",
"@sanity/preview-url-secret": "^1.6.15",
"@sanity/vision": "^3.43.0",
"@tailwindcss/typography": "^0.5.13",
"@types/node": "^20.12.12",
"@types/react": "^18.3.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vercel/speed-insights": "^1.0.10",
"@vercel/speed-insights": "^1.0.11",
"autoprefixer": "^10.4.19",
"date-fns": "^3.6.0",
"next": "latest",
"next-sanity": "^9.0.18",
"next": "^14.2.3",
"next-sanity": "^9.3.3",
"postcss": "^8.4.38",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sanity": "^3.42.1",
"sanity": "^3.43.0",
"sanity-plugin-asset-source-unsplash": "^3.0.1",
"server-only": "^0.0.1",
"styled-components": "^6.1.11",
Expand All @@ -39,6 +39,6 @@
},
"devDependencies": {
"eslint": "^8.57.0",
"eslint-config-next": "latest"
"eslint-config-next": "^14.2.3"
}
}
5 changes: 0 additions & 5 deletions examples/cms-sanity/sanity.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ export type SanityAssistSchemaTypeField = {
>;
};
export declare const internalGroqTypeReferenceTo: unique symbol;

// Source: ./sanity/lib/queries.ts
// Variable: settingsQuery
// Query: *[_type == "settings"][0]
Expand Down Expand Up @@ -454,7 +453,6 @@ export type SettingsQueryResult = {
_type: "image";
};
} | null;

// Variable: heroQuery
// Query: *[_type == "post" && defined(slug.current)] | order(date desc, _updatedAt desc) [0] { content, _id, "status": select(_originalId in path("drafts.**") => "draft", "published"), "title": coalesce(title, "Untitled"), "slug": slug.current, excerpt, coverImage, "date": coalesce(date, _updatedAt), "author": author->{"name": coalesce(name, "Anonymous"), picture},}
export type HeroQueryResult = {
Expand Down Expand Up @@ -510,7 +508,6 @@ export type HeroQueryResult = {
} | null;
} | null;
} | null;

// Variable: moreStoriesQuery
// Query: *[_type == "post" && _id != $skip && defined(slug.current)] | order(date desc, _updatedAt desc) [0...$limit] { _id, "status": select(_originalId in path("drafts.**") => "draft", "published"), "title": coalesce(title, "Untitled"), "slug": slug.current, excerpt, coverImage, "date": coalesce(date, _updatedAt), "author": author->{"name": coalesce(name, "Anonymous"), picture},}
export type MoreStoriesQueryResult = Array<{
Expand Down Expand Up @@ -548,7 +545,6 @@ export type MoreStoriesQueryResult = Array<{
} | null;
} | null;
}>;

// Variable: postQuery
// Query: *[_type == "post" && slug.current == $slug] [0] { content, _id, "status": select(_originalId in path("drafts.**") => "draft", "published"), "title": coalesce(title, "Untitled"), "slug": slug.current, excerpt, coverImage, "date": coalesce(date, _updatedAt), "author": author->{"name": coalesce(name, "Anonymous"), picture},}
export type PostQueryResult = {
Expand Down Expand Up @@ -604,7 +600,6 @@ export type PostQueryResult = {
} | null;
} | null;
} | null;

// Source: ./app/(blog)/posts/[slug]/page.tsx
// Variable: postSlugs
// Query: *[_type == "post"]{slug}
Expand Down

0 comments on commit e384e0e

Please # to comment.