@unoverse-platform/studio 0.1.44 → 0.1.45
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/local/plugin.ts +5 -2
- package/package.json +1 -1
package/local/plugin.ts
CHANGED
|
@@ -347,8 +347,11 @@ export function localStudioHost(): Plugin {
|
|
|
347
347
|
case path === "/dev/components":
|
|
348
348
|
return json(res, {
|
|
349
349
|
components: c.listDefinitions("component", org).map((d) => {
|
|
350
|
-
const def = d as { name: string; props?: unknown };
|
|
351
|
-
|
|
350
|
+
const def = d as { name: string; org?: string; props?: unknown };
|
|
351
|
+
// Qualified ref for org components: a bare name two orgs share is an
|
|
352
|
+
// explicit resolver error, never a guess (UNOVERSE_COMPONENT_ORGS.md).
|
|
353
|
+
const ref = def.org ? `${def.org}/${def.name}` : def.name;
|
|
354
|
+
return { ...def, inputs: c.inputPropKeys(def.props), states: c.listStates("component", ref) };
|
|
352
355
|
}),
|
|
353
356
|
});
|
|
354
357
|
|