@almadar/ui 2.31.0 → 2.32.0

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.
@@ -35045,7 +35045,8 @@ function renderPatternChildren(children, onDismiss, parentId = "root") {
35045
35045
  id: childId,
35046
35046
  pattern: child.type,
35047
35047
  props: child.props ?? {},
35048
- priority: 0
35048
+ priority: 0,
35049
+ nodeId: child._id
35049
35050
  };
35050
35051
  return /* @__PURE__ */ jsxRuntime.jsx(
35051
35052
  SlotContentRenderer,
@@ -35114,6 +35115,8 @@ function SlotContentRenderer({
35114
35115
  className: "slot-content",
35115
35116
  "data-pattern": content.pattern,
35116
35117
  "data-id": content.id,
35118
+ "data-node-id": content.nodeId,
35119
+ "data-source-trait": content.sourceTrait,
35117
35120
  children: /* @__PURE__ */ jsxRuntime.jsx(PatternComponent, { ...finalProps, children: renderedChildren })
35118
35121
  }
35119
35122
  );
@@ -35124,6 +35127,8 @@ function SlotContentRenderer({
35124
35127
  className: "slot-content",
35125
35128
  "data-pattern": content.pattern,
35126
35129
  "data-id": content.id,
35130
+ "data-node-id": content.nodeId,
35131
+ "data-source-trait": content.sourceTrait,
35127
35132
  children: content.props.children ?? /* @__PURE__ */ jsxRuntime.jsxs(Box, { className: "p-4 text-sm text-muted-foreground border border-dashed border-border rounded", children: [
35128
35133
  "Unknown pattern: ",
35129
35134
  content.pattern,
@@ -35015,7 +35015,8 @@ function renderPatternChildren(children, onDismiss, parentId = "root") {
35015
35015
  id: childId,
35016
35016
  pattern: child.type,
35017
35017
  props: child.props ?? {},
35018
- priority: 0
35018
+ priority: 0,
35019
+ nodeId: child._id
35019
35020
  };
35020
35021
  return /* @__PURE__ */ jsx(
35021
35022
  SlotContentRenderer,
@@ -35084,6 +35085,8 @@ function SlotContentRenderer({
35084
35085
  className: "slot-content",
35085
35086
  "data-pattern": content.pattern,
35086
35087
  "data-id": content.id,
35088
+ "data-node-id": content.nodeId,
35089
+ "data-source-trait": content.sourceTrait,
35087
35090
  children: /* @__PURE__ */ jsx(PatternComponent, { ...finalProps, children: renderedChildren })
35088
35091
  }
35089
35092
  );
@@ -35094,6 +35097,8 @@ function SlotContentRenderer({
35094
35097
  className: "slot-content",
35095
35098
  "data-pattern": content.pattern,
35096
35099
  "data-id": content.id,
35100
+ "data-node-id": content.nodeId,
35101
+ "data-source-trait": content.sourceTrait,
35097
35102
  children: content.props.children ?? /* @__PURE__ */ jsxs(Box, { className: "p-4 text-sm text-muted-foreground border border-dashed border-border rounded", children: [
35098
35103
  "Unknown pattern: ",
35099
35104
  content.pattern,
@@ -26,6 +26,8 @@ export interface SlotContent {
26
26
  onDismiss?: () => void;
27
27
  /** Source trait that rendered this content */
28
28
  sourceTrait?: string;
29
+ /** Stable node ID from the schema pattern tree (for edit mode overlay targeting) */
30
+ nodeId?: string;
29
31
  }
30
32
  /**
31
33
  * Configuration for render_ui effect
@@ -32308,7 +32308,8 @@ function renderPatternChildren(children, onDismiss, parentId = "root") {
32308
32308
  id: childId,
32309
32309
  pattern: child.type,
32310
32310
  props: child.props ?? {},
32311
- priority: 0
32311
+ priority: 0,
32312
+ nodeId: child._id
32312
32313
  };
32313
32314
  return /* @__PURE__ */ jsxRuntime.jsx(
32314
32315
  SlotContentRenderer,
@@ -32377,6 +32378,8 @@ function SlotContentRenderer({
32377
32378
  className: "slot-content",
32378
32379
  "data-pattern": content.pattern,
32379
32380
  "data-id": content.id,
32381
+ "data-node-id": content.nodeId,
32382
+ "data-source-trait": content.sourceTrait,
32380
32383
  children: /* @__PURE__ */ jsxRuntime.jsx(PatternComponent, { ...finalProps, children: renderedChildren })
32381
32384
  }
32382
32385
  );
@@ -32387,6 +32390,8 @@ function SlotContentRenderer({
32387
32390
  className: "slot-content",
32388
32391
  "data-pattern": content.pattern,
32389
32392
  "data-id": content.id,
32393
+ "data-node-id": content.nodeId,
32394
+ "data-source-trait": content.sourceTrait,
32390
32395
  children: content.props.children ?? /* @__PURE__ */ jsxRuntime.jsxs(Box, { className: "p-4 text-sm text-muted-foreground border border-dashed border-border rounded", children: [
32391
32396
  "Unknown pattern: ",
32392
32397
  content.pattern,
@@ -32278,7 +32278,8 @@ function renderPatternChildren(children, onDismiss, parentId = "root") {
32278
32278
  id: childId,
32279
32279
  pattern: child.type,
32280
32280
  props: child.props ?? {},
32281
- priority: 0
32281
+ priority: 0,
32282
+ nodeId: child._id
32282
32283
  };
32283
32284
  return /* @__PURE__ */ jsx(
32284
32285
  SlotContentRenderer,
@@ -32347,6 +32348,8 @@ function SlotContentRenderer({
32347
32348
  className: "slot-content",
32348
32349
  "data-pattern": content.pattern,
32349
32350
  "data-id": content.id,
32351
+ "data-node-id": content.nodeId,
32352
+ "data-source-trait": content.sourceTrait,
32350
32353
  children: /* @__PURE__ */ jsx(PatternComponent, { ...finalProps, children: renderedChildren })
32351
32354
  }
32352
32355
  );
@@ -32357,6 +32360,8 @@ function SlotContentRenderer({
32357
32360
  className: "slot-content",
32358
32361
  "data-pattern": content.pattern,
32359
32362
  "data-id": content.id,
32363
+ "data-node-id": content.nodeId,
32364
+ "data-source-trait": content.sourceTrait,
32360
32365
  children: content.props.children ?? /* @__PURE__ */ jsxs(Box, { className: "p-4 text-sm text-muted-foreground border border-dashed border-border rounded", children: [
32361
32366
  "Unknown pattern: ",
32362
32367
  content.pattern,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "2.31.0",
3
+ "version": "2.32.0",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",