@burger-editor/client 4.0.0-alpha.62 → 4.0.0-alpha.63

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/client.js CHANGED
@@ -3387,11 +3387,17 @@ function getCustomProperties(scope, containerType) {
3387
3387
  }
3388
3388
  }
3389
3389
  }
3390
- // Merge nested defaults as fallback: use nested default only when
3391
- // no direct (non-nested) default exists for a category.
3392
- for (const [category, property] of nestedDefaultValues.entries()) {
3393
- if (!defaultValues.has(category)) {
3394
- defaultValues.set(category, property);
3390
+ // Merge nested defaults: use nested default when no direct default exists,
3391
+ // or when the nested default has higher cascade layer priority.
3392
+ for (const [category, nestedProperty] of nestedDefaultValues.entries()) {
3393
+ const directProperty = defaultValues.get(category);
3394
+ if (directProperty) {
3395
+ // Compare by layer priority; on equal priority, direct selector wins
3396
+ const winner = compareCustomPropertyByLayerPriority(nestedProperty, directProperty);
3397
+ defaultValues.set(category, winner);
3398
+ }
3399
+ else {
3400
+ defaultValues.set(category, nestedProperty);
3395
3401
  }
3396
3402
  }
3397
3403
  for (const [category, property] of defaultValues.entries()) {
@@ -45099,7 +45105,7 @@ function parseConfig(config) {
45099
45105
  }
45100
45106
  }
45101
45107
 
45102
- const version = "4.0.0-alpha.61";
45108
+ const version = "4.0.0-alpha.62";
45103
45109
  function attachDraftSwitcher(engine) {
45104
45110
  if (engine.hasDraft()) {
45105
45111
  const container = document.createElement("div");