Use case
Framework
Owner
- Translate String- This is a codemod created with - codemod init.
- With React Integration- This codemod transforms the usage of - withReact(createEditor())into a- useMemo-based structure, which wraps the editor creation and introduces an inline-checking function (- isInline) for the editor instance. This transformation optimizes the creation of the editor object by memoizing it.
- Editor State- This codemod migrates from using - useContext(EditorContext)to the new- useSlate()hook in Slate. It transforms the editor state management approach and adds new state hooks.
- Cursor Selection Handling- This codemod shows how to migrate cursor and - selectionhandling from Slate v0.88 to v0.104, including the Preventing runtime errors from null selections.
- Editor Has Path- This guide covers the migration of - Editor.hasPathusage from Slate.js v0.88 to v0.104. The API has changed from a property-based check to a function call pattern, requiring updates to existing code.
- Custom Renderers- This codemod updates the - renderElementfunction to include TypeScript typings and adds a default case for rendering unsupported element types.
- I18n/23/Add Namespace Type Annotation- Modification of the InterpolationOptions type. In version 23.0.0, the ns property within InterpolationOptions is now constrained to be of type Namespace instead of being a string or a readonly string[]. This change requires you to adjust your code accordingly. 
- Three/R168/Pointerlockcontrols Object To Controls Object- This codemod helps in transforming - PointerLockControls.getObject()to- controls.object
- Playcanvas Esm Scripts- Updates legacy PlayCanvas scripts to the newer ESM Scripts format