@almadar/ui 4.51.11 → 4.51.12

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.
@@ -60247,8 +60247,17 @@ function findPatternInTree(root, path) {
60247
60247
  for (const part of parts) {
60248
60248
  if (current === null || current === void 0 || typeof current !== "object") return null;
60249
60249
  const record = current;
60250
- if (part === "children" && Array.isArray(record.children)) {
60251
- current = record.children;
60250
+ if (part === "children") {
60251
+ if (Array.isArray(record.children)) {
60252
+ current = record.children;
60253
+ } else {
60254
+ const nestedProps = record.props;
60255
+ if (nestedProps && typeof nestedProps === "object" && !Array.isArray(nestedProps) && Array.isArray(nestedProps.children)) {
60256
+ current = nestedProps.children;
60257
+ } else {
60258
+ return null;
60259
+ }
60260
+ }
60252
60261
  } else if (Array.isArray(current)) {
60253
60262
  const idx = parseInt(part, 10);
60254
60263
  if (isNaN(idx) || idx < 0 || idx >= current.length) return null;
@@ -60292,7 +60301,13 @@ function OrbInspector({ node, schema, editable = false, userType = "builder", th
60292
60301
  for (const eff of transition.effects ?? []) {
60293
60302
  if (Array.isArray(eff) && eff[0] === "render-ui" && eff[2]) {
60294
60303
  const found = findPatternInTree(eff[2], patternId);
60295
- if (found) return found;
60304
+ if (!found) continue;
60305
+ const nested = found.props;
60306
+ if (nested && typeof nested === "object" && !Array.isArray(nested)) {
60307
+ const { props: _stripped, ...rest } = found;
60308
+ return { ...nested, ...rest };
60309
+ }
60310
+ return found;
60296
60311
  }
60297
60312
  }
60298
60313
  if (selectedPattern.patternId) {
package/dist/avl/index.js CHANGED
@@ -60201,8 +60201,17 @@ function findPatternInTree(root, path) {
60201
60201
  for (const part of parts) {
60202
60202
  if (current === null || current === void 0 || typeof current !== "object") return null;
60203
60203
  const record = current;
60204
- if (part === "children" && Array.isArray(record.children)) {
60205
- current = record.children;
60204
+ if (part === "children") {
60205
+ if (Array.isArray(record.children)) {
60206
+ current = record.children;
60207
+ } else {
60208
+ const nestedProps = record.props;
60209
+ if (nestedProps && typeof nestedProps === "object" && !Array.isArray(nestedProps) && Array.isArray(nestedProps.children)) {
60210
+ current = nestedProps.children;
60211
+ } else {
60212
+ return null;
60213
+ }
60214
+ }
60206
60215
  } else if (Array.isArray(current)) {
60207
60216
  const idx = parseInt(part, 10);
60208
60217
  if (isNaN(idx) || idx < 0 || idx >= current.length) return null;
@@ -60246,7 +60255,13 @@ function OrbInspector({ node, schema, editable = false, userType = "builder", th
60246
60255
  for (const eff of transition.effects ?? []) {
60247
60256
  if (Array.isArray(eff) && eff[0] === "render-ui" && eff[2]) {
60248
60257
  const found = findPatternInTree(eff[2], patternId);
60249
- if (found) return found;
60258
+ if (!found) continue;
60259
+ const nested = found.props;
60260
+ if (nested && typeof nested === "object" && !Array.isArray(nested)) {
60261
+ const { props: _stripped, ...rest } = found;
60262
+ return { ...nested, ...rest };
60263
+ }
60264
+ return found;
60250
60265
  }
60251
60266
  }
60252
60267
  if (selectedPattern.patternId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "4.51.11",
3
+ "version": "4.51.12",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "sideEffects": [