mirror of
https://github.com/hanzoai/frames.git
synced 2026-09-24 00:08:03 +00:00
docs(sdk): pin editing-affordances availability to @hyperframes/[email protected]
Concrete version now that the /editing subpath shipped in v0.7.22 (review follow-up). Also forces a fresh Mintlify build to register the new SDK tab. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
2489505560
commit
4316da99e5
@@ -6,7 +6,7 @@ description: "Resolve capability flags and inspector sections for a selected ele
|
||||
`resolveElementAffordances` answers the question "what can the user do with this element right now?" given a live DOM element and its SDK model entry. It returns two objects: `capabilities` (boolean flags for each edit action) and `sections` (which inspector panels apply). You use these to conditionally render controls in your editor's detail panel rather than showing a fixed field set for all elements.
|
||||
|
||||
<Note>
|
||||
This API lives on the `@hyperframes/sdk/editing` subpath, added in the editing-affordances change (merged to `main`). It is available in any `@hyperframes/sdk` build cut from `main` after that merge — if the import fails to resolve, upgrade to the latest `0.7.x`.
|
||||
This API lives on the `@hyperframes/sdk/editing` subpath, available since `@hyperframes/sdk@0.7.22`. If the import fails to resolve, upgrade: `npm install @hyperframes/sdk@latest`.
|
||||
</Note>
|
||||
|
||||
## Import
|
||||
|
||||
Reference in New Issue
Block a user