@stackable-labs/sdk-extension-react 1.86.3 → 1.88.0
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/README.md +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,7 +32,9 @@ export default createExtension(() => (
|
|
|
32
32
|
## Key exports
|
|
33
33
|
|
|
34
34
|
- **`createExtension`** — entry point bootstrap; mounts the extension React tree
|
|
35
|
-
- **`useCapabilities`** — call host-mediated APIs (`data.query`, `actions.toast`, `actions.invoke`)
|
|
35
|
+
- **`useCapabilities`** — call host-mediated APIs (`data.query`, `data.fetch`, `actions.toast`, `actions.invoke`)
|
|
36
|
+
- **`useContextData`** — read host context (customer info, identity, messaging, settings)
|
|
37
|
+
- **`useSettings`** — convenience hook for reading extension settings (`contextData.settings ?? {}`)
|
|
36
38
|
- **`useSurfaceContext`** — read the context object passed by the host
|
|
37
39
|
- **`useStore` / `createStore`** — lightweight store for extension-local state
|
|
38
40
|
- **`ui`** — pre-approved UI primitive Components (`Button`, `Text`, `Card`, `Badge`, `Input`, etc.)
|