pxengine 0.1.49 → 0.1.50
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 +18 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.mjs +17 -0
- package/dist/index.mjs.map +1 -1
- package/dist/registry.json +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -234,6 +234,7 @@ __export(index_exports, {
|
|
|
234
234
|
PopoverTrigger: () => PopoverTrigger,
|
|
235
235
|
Progress: () => Progress,
|
|
236
236
|
ProgressAtom: () => ProgressAtom,
|
|
237
|
+
REGISTERED_COMPONENTS: () => REGISTERED_COMPONENTS,
|
|
237
238
|
RadioAtom: () => RadioAtom,
|
|
238
239
|
RadioGroup: () => RadioGroup,
|
|
239
240
|
RadioGroupAtom: () => RadioGroupAtom,
|
|
@@ -42304,6 +42305,19 @@ var COMPONENT_SUGGESTIONS = {
|
|
|
42304
42305
|
Icon: "IconAtom",
|
|
42305
42306
|
ArrowToggle: "ArrowToggleAtom"
|
|
42306
42307
|
};
|
|
42308
|
+
var REGISTERED_COMPONENTS = /* @__PURE__ */ new Set([
|
|
42309
|
+
...Object.keys(atoms_exports),
|
|
42310
|
+
...Object.keys(molecules_exports),
|
|
42311
|
+
...Object.keys(ui_exports),
|
|
42312
|
+
// Additional common aliases/normalizations
|
|
42313
|
+
"MCQCard",
|
|
42314
|
+
"SearchSpecCard",
|
|
42315
|
+
"CampaignSeedCard",
|
|
42316
|
+
"CampaignConceptCard",
|
|
42317
|
+
"CreatorWidget",
|
|
42318
|
+
"Layout",
|
|
42319
|
+
"Text"
|
|
42320
|
+
]);
|
|
42307
42321
|
var renderContextDependentError = (componentName, normalizedName, key) => {
|
|
42308
42322
|
const suggestion = COMPONENT_SUGGESTIONS[normalizedName] || `${componentName}Atom (if available)`;
|
|
42309
42323
|
return /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)(
|
|
@@ -42400,6 +42414,9 @@ var PXEngineRenderer = ({
|
|
|
42400
42414
|
if (!schema) return null;
|
|
42401
42415
|
const root = schema.root || schema;
|
|
42402
42416
|
const renderRecursive = (component, index) => {
|
|
42417
|
+
if (Array.isArray(component)) {
|
|
42418
|
+
return /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(import_react79.default.Fragment, { children: component.map((child, idx) => renderRecursive(child, idx)) }, index !== void 0 ? `array-${index}` : "array-root");
|
|
42419
|
+
}
|
|
42403
42420
|
if (typeof component === "string" || typeof component === "number") {
|
|
42404
42421
|
return component;
|
|
42405
42422
|
}
|
|
@@ -42714,6 +42731,7 @@ var PXEngineRenderer = ({
|
|
|
42714
42731
|
PopoverTrigger,
|
|
42715
42732
|
Progress,
|
|
42716
42733
|
ProgressAtom,
|
|
42734
|
+
REGISTERED_COMPONENTS,
|
|
42717
42735
|
RadioAtom,
|
|
42718
42736
|
RadioGroup,
|
|
42719
42737
|
RadioGroupAtom,
|