mirror of
https://github.com/vercel/commerce.git
synced 2025-08-06 08:51:25 +00:00
.github
.vscode
app
components
helpers
lib
sanity
components
desk
schemas
blocks
documents
objects
singletons
index.ts
slugWithLocalizedType.ts
utils
constants.ts
languages.ts
localizedTypes.ts
queries.tsx
sanity.api.ts
sanity.client.ts
sanity.fetch.ts
sanity.image.ts
sanity.types.ts
shopify
storm
constants.ts
constants.tsx
type-guards.ts
utils.ts
messages
public
.env.example
.eslintrc.js
.gitignore
.npmrc
.nvmrc
.prettierignore
README.md
components.json
i18n-config.ts
license.md
middleware.ts
next.config.js
package.json
playwright.config.ts
pnpm-lock.yaml
postcss.config.js
prettier.config.js
sanity.config.ts
tailwind.config.js
tsconfig.json
84 lines
2.1 KiB
TypeScript
84 lines
2.1 KiB
TypeScript
// Rich text annotations used in the block content editor
|
|
// import annotationLinkEmail from './annotations/linkEmail'
|
|
// import annotationLinkExternal from './annotations/linkExternal'
|
|
// import annotationLinkInternal from './annotations/linkInternal'
|
|
// import annotationProduct from './annotations/product'
|
|
|
|
// const annotations = [
|
|
// annotationLinkEmail,
|
|
// annotationLinkExternal,
|
|
// annotationLinkInternal,
|
|
// annotationProduct,
|
|
// ]
|
|
|
|
// Document types
|
|
import blurb from './documents/blurb'
|
|
import category from './documents/category'
|
|
import footerMenu from './documents/footerMenu'
|
|
import page from './documents/page'
|
|
import product from './documents/product'
|
|
import productVariant from './documents/productVariant'
|
|
import section from './documents/section'
|
|
import usp from './documents/usp'
|
|
|
|
const documents = [
|
|
category,
|
|
page,
|
|
product,
|
|
productVariant,
|
|
blurb,
|
|
section,
|
|
usp,
|
|
footerMenu
|
|
]
|
|
|
|
// Singleton document types
|
|
import home from './singletons/home'
|
|
import search from './singletons/search'
|
|
import settings from './singletons/settings'
|
|
import utilityMenu from './singletons/utilityMenu'
|
|
|
|
const singletons = [home, settings, utilityMenu, search]
|
|
|
|
// Block content
|
|
import body from './blocks/body'
|
|
|
|
const blocks = [body]
|
|
|
|
// Object types
|
|
import banner from './objects/banner'
|
|
import blurbSection from './objects/blurbSection'
|
|
import filteredProductList from './objects/filteredProductList'
|
|
import hero from './objects/hero'
|
|
import linkExternal from './objects/linkExternal'
|
|
import linkInternal from './objects/linkInternal'
|
|
import mainImage from './objects/mainImage'
|
|
import menu from './objects/menu'
|
|
import reusableSection from './objects/reusableSection'
|
|
import seo from './objects/seo'
|
|
import slider from './objects/slider'
|
|
import uspSection from './objects/uspSection'
|
|
|
|
const objects = [
|
|
linkExternal,
|
|
linkInternal,
|
|
hero,
|
|
seo,
|
|
mainImage,
|
|
slider,
|
|
filteredProductList,
|
|
banner,
|
|
blurbSection,
|
|
uspSection,
|
|
reusableSection,
|
|
menu
|
|
]
|
|
|
|
export const schemaTypes = [
|
|
// ...annotations,
|
|
...documents,
|
|
...singletons,
|
|
...objects,
|
|
...blocks
|
|
]
|