Skip to content

Commit 267142f

Browse files
Version Packages (#865)
Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
1 parent 43b39cf commit 267142f

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

.changeset/presets-require-name-and-inline-blocks.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

plugins/@sanity/presets/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @sanity/presets
22

3+
## 0.4.0
4+
5+
### Minor Changes
6+
7+
- [#859](https://github.com/sanity-io/plugins/pull/859) [`d9a9f21`](https://github.com/sanity-io/plugins/commit/d9a9f21af2b20dd55a3772ab10a3a6d439853319) Thanks [@jordanl17](https://github.com/jordanl17)! - `name` is now required on every `define<Type>` factory (`defineLink`, `defineCta`, `defineSeo`, `defineImage`, `definePage`, `defineRichText`). Calls without a name fail at the type level and throw at runtime.
8+
9+
`definePage`'s `pageBuilderBlocks` now accepts inline preset instances alongside string type-name references, so you can mix both: `pageBuilderBlocks: ['hero', defineImage({name: 'imageBlock'})]`.
10+
311
## 0.3.0
412

513
### Minor Changes

plugins/@sanity/presets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sanity/presets",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "Production ready preset patterns for Sanity Studio",
55
"keywords": [
66
"sanity",

0 commit comments

Comments
 (0)