@yahoo/uds-create-config 5.53.1 → 5.55.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.
Files changed (51) hide show
  1. package/dist/capture/node-ops.js +1 -1
  2. package/dist/configs/system.js +2 -0
  3. package/dist/entities/canvas/node-gestures.js +1 -1
  4. package/dist/entities/canvas/node-patches.js +1 -1
  5. package/dist/entities/system/Component.d.ts +5 -2
  6. package/dist/entities/system/Component.js +121 -8
  7. package/dist/entities/system/LinkedSystem.js +2 -2
  8. package/dist/entities/system/Operation.js +1 -1
  9. package/dist/entities/system/StyleProperty.js +5 -0
  10. package/dist/entities/system/component-forwards.js +1 -1
  11. package/dist/entities/system/component-source-fields.js +1 -1
  12. package/dist/entities/system/component-style-set.js +1 -1
  13. package/dist/entities/system/conditional-defaults.d.ts +45 -0
  14. package/dist/entities/system/conditional-defaults.js +142 -0
  15. package/dist/entities/system/copy-plan.js +1 -1
  16. package/dist/entities/system/css-motion-reach.js +1 -1
  17. package/dist/entities/system/defineComponent.d.ts +11 -2
  18. package/dist/entities/system/defineComponent.js +3 -0
  19. package/dist/entities/system/drawn-motion.d.ts +2 -1
  20. package/dist/entities/system/drawn-motion.js +23 -16
  21. package/dist/entities/system/link-plan.js +1 -1
  22. package/dist/entities/system/motion-convert.js +1 -1
  23. package/dist/entities/system/motion-variants.js +2 -2
  24. package/dist/framework/Config.d.ts +1 -1
  25. package/dist/framework/Config.js +13 -4
  26. package/dist/framework/class-names.d.ts +14 -9
  27. package/dist/framework/class-names.js +37 -22
  28. package/dist/framework/default-conditions.d.ts +26 -0
  29. package/dist/framework/default-conditions.js +35 -0
  30. package/dist/framework/defineEntity.js +1 -1
  31. package/dist/framework/inline-sources.js +1 -1
  32. package/dist/framework/layer-styles.js +7 -2
  33. package/dist/framework/module-views.d.ts +9 -10
  34. package/dist/framework/plan.js +1 -1
  35. package/dist/framework/projections.d.ts +36 -4
  36. package/dist/framework/projections.js +97 -24
  37. package/dist/framework/render-spec.js +10 -2
  38. package/dist/framework/schema-version.d.ts +1 -1
  39. package/dist/framework/schema-version.js +5 -5
  40. package/dist/framework/schemas.js +2 -2
  41. package/dist/framework/source-integrity.js +1 -1
  42. package/dist/index.d.ts +6 -3
  43. package/dist/index.js +7 -4
  44. package/dist/migrations/20261023152030_conditional_defaults.d.ts +6 -0
  45. package/dist/migrations/20261023152030_conditional_defaults.js +8 -0
  46. package/dist/spec/bake.js +14 -6
  47. package/dist/spec/cell.d.ts +2 -1
  48. package/dist/spec/cell.js +14 -6
  49. package/dist/spec/detach.js +5 -1
  50. package/dist/tsconfig.tsbuildinfo +1 -1
  51. package/package.json +2 -2
@@ -1,4 +1,5 @@
1
1
  import { isRef, kindOf, pathOf, refLeaf } from "../framework/utils/refs.js";
2
+ import { defaultsFor } from "../framework/default-conditions.js";
2
3
  import { rootLayerOf } from "../entities/system/element.js";
3
4
  import { authoredValue, declaredPropDefaults } from "../framework/projections.js";
4
5
  import { forwardRoutes, isValueSlot } from "../framework/prop-surface.js";
@@ -106,7 +107,10 @@ function bakeInstance({ config, source, instanceProps, layerProps, filled }) {
106
107
  const sourceAnatomy = anatomyOf(sourceBody);
107
108
  const state = {
108
109
  ...declaredPropDefaults(sourceBody.props),
109
- ...sourceBody.defaultProps ?? {},
110
+ ...defaultsFor({
111
+ body: sourceBody,
112
+ given: instanceProps
113
+ }),
110
114
  ...instanceProps
111
115
  };
112
116
  for (const from of filled) if (state[from] === void 0) state[from] = true;