@almadar/ui 4.50.7 → 4.50.8

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.
@@ -59171,7 +59171,12 @@ var OrbPreviewNodeInner = (props) => {
59171
59171
  const elRect = patternEl.getBoundingClientRect();
59172
59172
  select({
59173
59173
  patternType: patternEl.getAttribute("data-pattern") ?? "unknown",
59174
- patternId: patternEl.getAttribute("data-id") ?? void 0,
59174
+ // `data-pattern-path` is the SExpr tree path (`children.0.…`) emitted by
59175
+ // UISlotRenderer; `data-id` is the runtime content id. `OrbInspector`
59176
+ // resolves pattern config by walking the render-ui SExpr tree, so the
59177
+ // path is the correct key — reading `data-id` silently broke prop
59178
+ // resolution and rendered every value as '—'.
59179
+ patternId: patternEl.getAttribute("data-pattern-path") ?? void 0,
59175
59180
  sourceTrait: patternEl.getAttribute("data-source-trait") ?? void 0,
59176
59181
  nodeData: data,
59177
59182
  rect: nodeRect ? {
@@ -59735,6 +59740,7 @@ init_AvlFieldType();
59735
59740
  init_types();
59736
59741
  init_useEventBus();
59737
59742
  init_useTranslate();
59743
+ var inspectorLog = logger.createLogger("almadar:ui:inspector");
59738
59744
  function formatExpression(expr) {
59739
59745
  if (!expr) return "";
59740
59746
  if (typeof expr === "string") return expr;
@@ -59852,8 +59858,17 @@ function OrbInspector({ node, schema, editable = false, onSchemaChange, onClose
59852
59858
  if (found) return found;
59853
59859
  }
59854
59860
  }
59861
+ if (selectedPattern.patternId) {
59862
+ inspectorLog.warn("pattern-config-unresolved", () => ({
59863
+ patternId: selectedPattern.patternId,
59864
+ patternType: selectedPattern.patternType,
59865
+ orbitalName,
59866
+ traitName,
59867
+ transitionEvent
59868
+ }));
59869
+ }
59855
59870
  return null;
59856
- }, [selectedPattern, transition]);
59871
+ }, [selectedPattern, transition, orbitalName, traitName, transitionEvent]);
59857
59872
  const orbCode = React93.useMemo(() => {
59858
59873
  const orbital = (schema.orbitals ?? []).find((o) => o.name === orbitalName);
59859
59874
  if (!orbital) return "{}";
@@ -913,6 +913,15 @@ interface PreviewNodeData extends Record<string, unknown> {
913
913
  * trace inline.
914
914
  */
915
915
  status?: 'idle' | 'running' | 'success' | 'error';
916
+ /**
917
+ * The `OrbitalSchema.name` this node was derived from. The reserved value
918
+ * `'__design_system__'` identifies nodes belonging to the Design System
919
+ * tab's synthesized catalog schema, so downstream event handlers can route
920
+ * mutation events to the project theme manifest instead of the project's
921
+ * orbital schema. Unset for project orbitals — handlers treat absence as
922
+ * "project schema".
923
+ */
924
+ sourceSchemaName?: string;
916
925
  }
917
926
  /** Data for event flow edges. */
918
927
  interface EventEdgeData extends Record<string, unknown> {
package/dist/avl/index.js CHANGED
@@ -59125,7 +59125,12 @@ var OrbPreviewNodeInner = (props) => {
59125
59125
  const elRect = patternEl.getBoundingClientRect();
59126
59126
  select({
59127
59127
  patternType: patternEl.getAttribute("data-pattern") ?? "unknown",
59128
- patternId: patternEl.getAttribute("data-id") ?? void 0,
59128
+ // `data-pattern-path` is the SExpr tree path (`children.0.…`) emitted by
59129
+ // UISlotRenderer; `data-id` is the runtime content id. `OrbInspector`
59130
+ // resolves pattern config by walking the render-ui SExpr tree, so the
59131
+ // path is the correct key — reading `data-id` silently broke prop
59132
+ // resolution and rendered every value as '—'.
59133
+ patternId: patternEl.getAttribute("data-pattern-path") ?? void 0,
59129
59134
  sourceTrait: patternEl.getAttribute("data-source-trait") ?? void 0,
59130
59135
  nodeData: data,
59131
59136
  rect: nodeRect ? {
@@ -59689,6 +59694,7 @@ init_AvlFieldType();
59689
59694
  init_types();
59690
59695
  init_useEventBus();
59691
59696
  init_useTranslate();
59697
+ var inspectorLog = createLogger("almadar:ui:inspector");
59692
59698
  function formatExpression(expr) {
59693
59699
  if (!expr) return "";
59694
59700
  if (typeof expr === "string") return expr;
@@ -59806,8 +59812,17 @@ function OrbInspector({ node, schema, editable = false, onSchemaChange, onClose
59806
59812
  if (found) return found;
59807
59813
  }
59808
59814
  }
59815
+ if (selectedPattern.patternId) {
59816
+ inspectorLog.warn("pattern-config-unresolved", () => ({
59817
+ patternId: selectedPattern.patternId,
59818
+ patternType: selectedPattern.patternType,
59819
+ orbitalName,
59820
+ traitName,
59821
+ transitionEvent
59822
+ }));
59823
+ }
59809
59824
  return null;
59810
- }, [selectedPattern, transition]);
59825
+ }, [selectedPattern, transition, orbitalName, traitName, transitionEvent]);
59811
59826
  const orbCode = useMemo(() => {
59812
59827
  const orbital = (schema.orbitals ?? []).find((o) => o.name === orbitalName);
59813
59828
  if (!orbital) return "{}";
@@ -101,6 +101,15 @@ export interface PreviewNodeData extends Record<string, unknown> {
101
101
  * trace inline.
102
102
  */
103
103
  status?: 'idle' | 'running' | 'success' | 'error';
104
+ /**
105
+ * The `OrbitalSchema.name` this node was derived from. The reserved value
106
+ * `'__design_system__'` identifies nodes belonging to the Design System
107
+ * tab's synthesized catalog schema, so downstream event handlers can route
108
+ * mutation events to the project theme manifest instead of the project's
109
+ * orbital schema. Unset for project orbitals — handlers treat absence as
110
+ * "project schema".
111
+ */
112
+ sourceSchemaName?: string;
104
113
  }
105
114
  /** Data for event flow edges. */
106
115
  export interface EventEdgeData extends Record<string, unknown> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "4.50.7",
3
+ "version": "4.50.8",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "sideEffects": [