@vectoriox/iox-builder 1.4.0 → 1.4.1

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.
@@ -1541,6 +1541,15 @@ class RenderDirective {
1541
1541
  // Register CSS rules in the central stylesheet (inner + outer split).
1542
1542
  if (cssId) {
1543
1543
  this.styleRegistry.upsert(cssId, initialStyle);
1544
+ // Restore per-state overrides saved from a previous session.
1545
+ if (node.stateStyles) {
1546
+ for (const state of Object.keys(node.stateStyles)) {
1547
+ const stateMap = node.stateStyles[state];
1548
+ if (stateMap && Object.keys(stateMap).length) {
1549
+ this.styleRegistry.upsert(cssId, stateMap, state);
1550
+ }
1551
+ }
1552
+ }
1544
1553
  }
1545
1554
  // Set nodeId — declared as @Input() on every builder component.
1546
1555
  if (cssId) {