pxengine 0.1.149 → 0.1.150
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/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +17 -1
- package/dist/index.mjs.map +1 -1
- package/dist/registry.json +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -27038,6 +27038,22 @@ var CONTEXT_DEPENDENT_COMPONENTS = /* @__PURE__ */ new Set([
|
|
|
27038
27038
|
"NavigationMenuContent",
|
|
27039
27039
|
"NavigationMenuItem"
|
|
27040
27040
|
]);
|
|
27041
|
+
var renderComponentNotFoundError = (componentName, key) => {
|
|
27042
|
+
return /* @__PURE__ */ (0, import_jsx_runtime195.jsxs)(
|
|
27043
|
+
"div",
|
|
27044
|
+
{
|
|
27045
|
+
className: "p-4 border-2 border-dashed border-gray-300 rounded-lg bg-gray-50/80 my-2",
|
|
27046
|
+
children: [
|
|
27047
|
+
/* @__PURE__ */ (0, import_jsx_runtime195.jsx)("p", { className: "text-sm font-semibold text-gray-600", children: "This content couldn't be displayed." }),
|
|
27048
|
+
/* @__PURE__ */ (0, import_jsx_runtime195.jsxs)("p", { className: "text-xs text-gray-400 mt-1", children: [
|
|
27049
|
+
"Unknown component: ",
|
|
27050
|
+
componentName
|
|
27051
|
+
] })
|
|
27052
|
+
]
|
|
27053
|
+
},
|
|
27054
|
+
key
|
|
27055
|
+
);
|
|
27056
|
+
};
|
|
27041
27057
|
var COMPONENT_SUGGESTIONS = {
|
|
27042
27058
|
FormLabel: "FormInputAtom (with label prop)",
|
|
27043
27059
|
FormControl: "FormInputAtom",
|
|
@@ -27292,7 +27308,7 @@ var PXEngineRenderer = import_react101.default.memo(function PXEngineRenderer2({
|
|
|
27292
27308
|
console.warn(
|
|
27293
27309
|
`[PXEngineRenderer] Component not found: ${componentName}`
|
|
27294
27310
|
);
|
|
27295
|
-
return
|
|
27311
|
+
return renderComponentNotFoundError(componentName, uniqueKey);
|
|
27296
27312
|
}
|
|
27297
27313
|
}
|
|
27298
27314
|
const resolvedNormalized = resolvedIdentifier.charAt(0).toUpperCase() + resolvedIdentifier.slice(1);
|