@elvix.is/sdk 0.6.3 → 0.6.4
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/dist/react.js +2 -2
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -169,8 +169,8 @@ function useElvixContext() {
|
|
|
169
169
|
}
|
|
170
170
|
function useResolvedBaseUrl(propBaseUrl) {
|
|
171
171
|
const ctx = useContext(ElvixContext);
|
|
172
|
-
if (propBaseUrl) return propBaseUrl;
|
|
173
|
-
if (ctx
|
|
172
|
+
if (typeof propBaseUrl === "string") return propBaseUrl;
|
|
173
|
+
if (ctx && typeof ctx.baseUrl === "string") return ctx.baseUrl;
|
|
174
174
|
return DEFAULT_BASE_URL;
|
|
175
175
|
}
|
|
176
176
|
function ElvixProvider({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elvix.is/sdk",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"description": "Official elvix SDK. Drop-in React components, server helpers, and an MCP server so AI coding agents integrate elvix on the first try.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://elvix.is",
|