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.mjs CHANGED
@@ -26702,6 +26702,22 @@ var CONTEXT_DEPENDENT_COMPONENTS = /* @__PURE__ */ new Set([
26702
26702
  "NavigationMenuContent",
26703
26703
  "NavigationMenuItem"
26704
26704
  ]);
26705
+ var renderComponentNotFoundError = (componentName, key) => {
26706
+ return /* @__PURE__ */ jsxs144(
26707
+ "div",
26708
+ {
26709
+ className: "p-4 border-2 border-dashed border-gray-300 rounded-lg bg-gray-50/80 my-2",
26710
+ children: [
26711
+ /* @__PURE__ */ jsx195("p", { className: "text-sm font-semibold text-gray-600", children: "This content couldn't be displayed." }),
26712
+ /* @__PURE__ */ jsxs144("p", { className: "text-xs text-gray-400 mt-1", children: [
26713
+ "Unknown component: ",
26714
+ componentName
26715
+ ] })
26716
+ ]
26717
+ },
26718
+ key
26719
+ );
26720
+ };
26705
26721
  var COMPONENT_SUGGESTIONS = {
26706
26722
  FormLabel: "FormInputAtom (with label prop)",
26707
26723
  FormControl: "FormInputAtom",
@@ -26956,7 +26972,7 @@ var PXEngineRenderer = React120.memo(function PXEngineRenderer2({
26956
26972
  console.warn(
26957
26973
  `[PXEngineRenderer] Component not found: ${componentName}`
26958
26974
  );
26959
- return null;
26975
+ return renderComponentNotFoundError(componentName, uniqueKey);
26960
26976
  }
26961
26977
  }
26962
26978
  const resolvedNormalized = resolvedIdentifier.charAt(0).toUpperCase() + resolvedIdentifier.slice(1);