UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

344 lines • 10.4 kB
{ "name": "sanity", "version": "4.4.1", "description": "Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches", "keywords": [ "sanity", "cms", "headless", "realtime", "content" ], "homepage": "https://www.sanity.io/", "bugs": { "url": "https://github.com/sanity-io/sanity/issues" }, "repository": { "type": "git", "url": "git+https://github.com/sanity-io/sanity.git", "directory": "packages/sanity" }, "license": "MIT", "author": "Sanity.io <hello@sanity.io>", "sideEffects": false, "type": "commonjs", "exports": { ".": { "source": "./src/_exports/index.ts", "import": "./lib/index.mjs", "require": "./lib/index.js", "default": "./lib/index.js" }, "./_internal": { "source": "./src/_exports/_internal.ts", "require": "./lib/_internal.js", "default": "./lib/_internal.js" }, "./_singletons": { "source": "./src/_exports/_singletons.ts", "import": "./lib/_singletons.mjs", "require": "./lib/_singletons.js", "default": "./lib/_singletons.js" }, "./_createContext": { "source": "./src/_exports/_createContext.ts", "import": "./lib/_createContext.mjs", "require": "./lib/_createContext.js", "default": "./lib/_createContext.js" }, "./cli": { "source": "./src/_exports/cli.ts", "require": "./lib/cli.js", "default": "./lib/cli.js" }, "./desk": { "source": "./src/_exports/desk.ts", "import": "./lib/desk.mjs", "require": "./lib/desk.js", "default": "./lib/desk.js" }, "./presentation": { "source": "./src/_exports/presentation.ts", "import": "./lib/presentation.mjs", "require": "./lib/presentation.js", "default": "./lib/presentation.js" }, "./router": { "source": "./src/_exports/router.ts", "import": "./lib/router.mjs", "require": "./lib/router.js", "default": "./lib/router.js" }, "./structure": { "source": "./src/_exports/structure.ts", "import": "./lib/structure.mjs", "require": "./lib/structure.js", "default": "./lib/structure.js" }, "./media-library": { "source": "./src/_exports/media-library.ts", "import": "./lib/media-library.mjs", "require": "./lib/media-library.js", "default": "./lib/media-library.js" }, "./migrate": { "source": "./src/_exports/migrate.ts", "require": "./lib/migrate.js", "default": "./lib/migrate.js" }, "./package.json": "./package.json" }, "main": "./lib/index.js", "module": "./lib/index.mjs", "types": "./lib/index.d.ts", "typesVersions": { "*": { "_internal": [ "./lib/_internal.d.ts" ], "_singletons": [ "./lib/_singletons.d.ts" ], "_createContext": [ "./lib/_createContext.d.ts" ], "cli": [ "./lib/cli.d.ts" ], "desk": [ "./lib/desk.d.ts" ], "migrate": [ "./lib/migrate.d.ts" ], "presentation": [ "./lib/presentation.d.ts" ], "router": [ "./lib/router.d.ts" ], "structure": [ "./lib/structure.d.ts" ] } }, "bin": { "sanity": "./bin/sanity" }, "files": [ "bin", "lib", "dist", "static" ], "dependencies": { "@dnd-kit/core": "^6.3.1", "@dnd-kit/modifiers": "^6.0.1", "@dnd-kit/sortable": "^7.0.2", "@dnd-kit/utilities": "^3.2.2", "@juggle/resize-observer": "^3.4.0", "@mux/mux-player-react": "^3.5.3", "@portabletext/block-tools": "^3.0.0", "@portabletext/editor": "^2.3.3", "@portabletext/react": "^3.2.1", "@portabletext/toolkit": "^2.0.17", "@rexxars/react-json-inspector": "^9.0.1", "@sanity/asset-utils": "^2.2.1", "@sanity/bifur-client": "^0.4.1", "@sanity/client": "^7.8.2", "@sanity/color": "^3.0.6", "@sanity/comlink": "^3.0.9", "@sanity/diff-match-patch": "^3.2.0", "@sanity/diff-patch": "^5.0.0", "@sanity/eventsource": "^5.0.2", "@sanity/export": "^4.0.1", "@sanity/icons": "^3.7.4", "@sanity/id-utils": "^1.0.0", "@sanity/image-url": "^1.1.0", "@sanity/import": "^3.38.3", "@sanity/insert-menu": "^2.0.1", "@sanity/logos": "^2.2.2", "@sanity/media-library-types": "^1.0.0", "@sanity/message-protocol": "^0.17.0", "@sanity/presentation-comlink": "^1.0.28", "@sanity/preview-url-secret": "^2.1.14", "@sanity/sdk": "2.1.2", "@sanity/telemetry": "^0.8.0", "@sanity/ui": "^3.0.7", "@sanity/uuid": "^3.0.2", "@sentry/react": "^8.55.0", "@tanstack/react-table": "^8.21.3", "@tanstack/react-virtual": "^3.13.12", "@types/react-is": "^19.0.0", "@types/shallow-equals": "^1.0.0", "@types/speakingurl": "^13.0.3", "@types/tar-stream": "^3.1.3", "@types/use-sync-external-store": "^1.5.0", "@types/which": "^3.0.4", "@vitejs/plugin-react": "^4.6.0", "@xstate/react": "^6.0.0", "archiver": "^7.0.0", "arrify": "^2.0.1", "async-mutex": "^0.4.1", "chalk": "^4.1.2", "chokidar": "^3.5.3", "classnames": "^2.2.5", "color2k": "^2.0.0", "configstore": "^5.0.1", "console-table-printer": "^2.11.1", "dataloader": "^2.2.3", "date-fns": "^2.30.0", "debug": "^4.4.1", "esbuild": "0.25.9", "esbuild-register": "^3.6.0", "execa": "^2.0.0", "exif-component": "^1.0.1", "fast-deep-equal": "3.1.3", "form-data": "^4.0.0", "framer-motion": "^12.23.12", "get-it": "^8.6.10", "get-random-values-esm": "1.0.2", "groq-js": "^1.17.3", "gunzip-maybe": "^1.4.2", "history": "^5.3.0", "i18next": "^23.16.8", "import-fresh": "^3.3.0", "is-hotkey-esm": "^1.0.0", "is-tar": "^1.0.0", "isomorphic-dompurify": "^2.19.0", "jsdom": "^23.0.1", "jsdom-global": "^3.0.2", "json-lexer": "^1.2.0", "json-reduce": "^3.0.0", "json5": "^2.2.3", "lodash": "^4.17.21", "log-symbols": "^2.2.0", "mendoza": "^3.0.8", "module-alias": "^2.2.2", "nano-pubsub": "^3.0.0", "nanoid": "^3.3.11", "node-html-parser": "^6.1.13", "observable-callback": "^1.0.3", "oneline": "^1.0.3", "open": "^8.4.0", "p-map": "^7.0.0", "path-to-regexp": "^6.3.0", "peek-stream": "^1.1.3", "pirates": "^4.0.0", "player.style": "^0.1.9", "pluralize-esm": "^9.0.2", "polished": "^4.3.1", "preferred-pm": "^4.1.1", "pretty-ms": "^7.0.1", "quick-lru": "^5.1.1", "raf": "^3.4.1", "react-compiler-runtime": "19.1.0-rc.2", "react-fast-compare": "^3.2.2", "react-focus-lock": "^2.13.6", "react-i18next": "15.6.1", "react-is": "^19.1.1", "react-refractor": "^4.0.0", "react-rx": "^4.1.31", "read-pkg-up": "^7.0.1", "refractor": "^5.0.0", "resolve-from": "^5.0.0", "resolve.exports": "^2.0.2", "rimraf": "^5.0.10", "rxjs": "^7.8.2", "rxjs-exhaustmap-with-trailing": "^2.1.1", "rxjs-mergemap-array": "^0.1.0", "scroll-into-view-if-needed": "^3.1.0", "scrollmirror": "^1.2.4", "semver": "^7.3.5", "shallow-equals": "^1.0.0", "speakingurl": "^14.0.1", "tar-fs": "^2.1.1", "tar-stream": "^3.1.7", "tinyglobby": "^0.2.14", "urlpattern-polyfill": "10.1.0", "use-device-pixel-ratio": "^1.1.2", "use-effect-event": "^2.0.3", "use-hot-module-reload": "^2.0.0", "use-sync-external-store": "^1.5.0", "uuid": "^11.1.0", "vite": "^7.1.2", "which": "^5.0.0", "xstate": "^5.20.2", "yargs": "^17.3.0", "@sanity/cli": "4.4.1", "@sanity/migrate": "4.4.1", "@sanity/diff": "4.4.1", "@sanity/mutator": "4.4.1", "@sanity/types": "4.4.1", "@sanity/schema": "4.4.1", "@sanity/util": "4.4.1" }, "devDependencies": { "@playwright/experimental-ct-react": "1.54.2", "@playwright/test": "1.54.2", "@sanity/eslint-config-i18n": "^2.0.0", "@sanity/generate-help-url": "^3.0.0", "@sanity/pkg-utils": "6.13.4", "@sanity/tsdoc": "1.0.169", "@sanity/ui-workshop": "^2.1.4", "@sanity/visual-editing-csm": "^2.0.23", "@sentry/types": "^8.55.0", "@testing-library/jest-dom": "^6.6.4", "@testing-library/react": "^16.3.0", "@testing-library/user-event": "^13.5.0", "@types/archiver": "^6.0.2", "@types/configstore": "^5.0.1", "@types/debug": "^4.1.12", "@types/gunzip-maybe": "^1.4.2", "@types/jsdom": "^20.0.0", "@types/lodash": "^4.17.20", "@types/log-symbols": "^2.0.0", "@types/node": "^22.10.0", "@types/raf": "^3.4.0", "@types/react": "^19.1.9", "@types/react-dom": "^19.1.7", "@types/refractor": "^3.4.1", "@types/resolve-from": "^4.0.0", "@types/semver": "^6.2.3", "@types/tar-fs": "^2.0.1", "@types/wicg-task-scheduling": "^2024.1.0", "@vitest/expect": "^3.2.4", "babel-plugin-react-compiler": "19.1.0-rc.2", "blob-polyfill": "^9.0.20240710", "date-fns-tz": "2.0.1", "eslint-plugin-boundaries": "^5.0.1", "globals": "^16.2.0", "react": "^18.3.1", "react-dom": "^18.3.1", "rxjs-etc": "^10.6.2", "styled-components": "^6.1.18", "swr": "2.2.5", "vitest": "^3.2.4", "vitest-package-exports": "^0.1.1", "@repo/dev-aliases": "4.4.1", "@repo/eslint-config": "4.4.1", "@repo/package.bundle": "4.4.1", "@repo/test-config": "4.4.1", "@sanity/codegen": "4.4.1", "@repo/package.config": "4.4.1" }, "peerDependencies": { "react": "^18 || ^19", "react-dom": "^18 || ^19", "styled-components": "^6.1.15" }, "engines": { "node": ">=20.19 <22 || >=22.12" }, "scripts": { "build": "pnpm clean && pkg-utils build --strict --check --clean", "build:bundle": "vite build --configLoader runner --config package.bundle.ts", "check:types": "(cd ../.. && tsc --project packages/sanity/tsconfig.lib.json --erasableSyntaxOnly)", "clean": "rimraf _internal.js _singletons.js _createContext.js cli.js desk.js migrate.js presentation.js router.js structure.js lib", "coverage": "vitest --coverage", "lint": "eslint .", "test": "vitest run", "test:ct": "rimraf playwright-ct/template/.cache && playwright test -c playwright-ct.config.ts", "watch": "pkg-utils watch" } }