Releases: portabletext/editor
@portabletext/plugin-character-pair-decorator@6.0.4
Patch Changes
- Updated dependencies [
a3eb985]:- @portabletext/editor@5.0.4
@portabletext/editor@5.0.4
Patch Changes
- #2215
a3eb985Thanks @christianhg! - fix: give core behaviors unique priority IDs to preserve order through re-sorts
racejar@2.0.3
@portabletext/toolbar@6.0.3
Patch Changes
- Updated dependencies []:
- @portabletext/editor@5.0.3
@portabletext/toolbar@6.0.2
Patch Changes
- Updated dependencies []:
- @portabletext/editor@5.0.2
@portabletext/toolbar@6.0.1
@portabletext/sanity-bridge@2.0.2
Patch Changes
-
#2205
d095284Thanks @christianhg! - fix: harden schema compilation against built-in name collisions and restore inline object type namesAdds
file,slug, andgeopointto the set of Sanity built-in names that need temporary names duringSanitySchema.compile(). Without this, schemas using these names as block or inline objects get extra fields injected by the Sanity schema compiler.Fixes inline object
type.namerestoration for shared and built-in names. Previously onlyinlineObject.namewas restored from the temporary name, leavinginlineObject.type.namewith thetmp-prefix.Simplifies the name restoration pass to mutate shared references directly instead of mapping over
portableText.ofseparately.
@portabletext/sanity-bridge@2.0.1
Patch Changes
-
#2198
5f1b1fbThanks @christianhg! - fix: deduplicate shared block/inline object names in schema compilationWhen a type name appears in both
blockObjectsandinlineObjectsof aSchemaDefinition,compileSchemaDefinitionToPortableTextMemberSchemaTypeswould pass duplicate type names toSanitySchema.compile(), causing a "Duplicate type name added to schema" error. This generalizes the existing temporary-name pattern (previously only handlingimageandurl) to dynamically detect and rename any shared names before compilation, then map them back afterward.
@portabletext/plugin-typography@6.0.3
Patch Changes
- Updated dependencies []:
- @portabletext/editor@5.0.3
- @portabletext/plugin-input-rule@3.0.3
@portabletext/plugin-typography@6.0.2
Patch Changes
- Updated dependencies []:
- @portabletext/editor@5.0.2
- @portabletext/plugin-input-rule@3.0.2