@vincentt-xr/sdk 2.0.0-alpha.11 → 2.0.0-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/GROUNDING.md CHANGED
@@ -190,17 +190,22 @@ that is not on an exported component.
190
190
 
191
191
  ### Live preview of unsaved editor changes
192
192
 
193
- In the console's visual editor, an unsaved change to `color` on `<ScreenText>`
194
- or `<TextLabel>` shows in the running app at once. Its other changes show after
195
- Save, which rebuilds the app. The editor's build defines a small override store
196
- on the page, and those two components read it for `color`. Published and
193
+ In the console's visual editor, an unsaved change to one of these settings
194
+ shows in the running app at once: `<ScreenText>` colour, font size and screen
195
+ placement; `<ScreenImage>` screen placement; `<ScreenShape>` screen placement
196
+ and fill colour; `<TextLabel>` colour. Other changes show after Save, which
197
+ rebuilds the app. The editor's build defines a small override store on the
198
+ page, and those components read it for those settings. Published and
197
199
  preview builds have no store, so they render the props exactly as written.
198
200
  App code does nothing for this and must not define or read
199
201
  `__VCT_EDIT_OVERRIDES__`.
200
202
 
201
- SDK authors: to make another prop live, add its name to the component's
202
- `LIVE_EDITABLE` list (`lib/components/ScreenText/index.tsx`,
203
- `lib/components/TextLabel/TextLabel.tsx`). The hook is
203
+ SDK authors: to make another prop live, add its key to the component's
204
+ `LIVE_EDITABLE` list (in `ScreenText`, `ScreenImage`, `ScreenShape` and
205
+ `TextLabel`). A key is the prop name or a dotted path into an object prop
206
+ (`settings.fillColor`, `transform.position`), the same key as in
207
+ `settings.json`. A dotted key replaces only that leaf, copying the objects
208
+ around it, and is skipped when the parent object is not written. The hook is
204
209
  `useEditOverrides(props, keys)` in `lib/utils/useEditOverrides.ts`. Call it with
205
210
  the component's own props object, before destructuring.
206
211