mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-05 00:56:23 +00:00
fix: document safe template default editing
This commit is contained in:
@@ -15,6 +15,10 @@ Only defaults declared in `data-composition-variables` are editable:
|
||||
|
||||
Keep replacement copy within 20% of the original length.
|
||||
|
||||
## Safe editing mechanics
|
||||
|
||||
Call `set_template_variable_defaults` once with the existing variable ids and their new defaults. Do not directly edit or rewrite `index.html` or its `data-composition-variables` attribute; the imported declaration is HTML-entity-encoded JSON and the setter preserves that encoding. Never edit `__template_baseline__.html` or a duplicate composition file. For an image slot, pass only the token returned by an image tool. Validate after the setter succeeds.
|
||||
|
||||
## Protected
|
||||
|
||||
Preserve messaging chrome, bubble styling, receipts, palette, typography, geometry, scene structure, duration, timing, easing, and reveal behavior. Do not replace any image outside the declared link-card and closing-card logo slots, and do not recolor the messaging interface to match the supplied website.
|
||||
|
||||
Reference in New Issue
Block a user