@meonode/ui 0.2.7 → 0.2.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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,32 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.2.8] - 2025-09-05
9
+
10
+ ### Changed
11
+ - **core.node**: refactor props handling to use a single utility type:
12
+ - `MergedProps<E, AdditionalProps>` — merges `NodeProps<E>` with custom props, giving precedence to overlapping keys from `AdditionalProps`.
13
+ - Simplifies and unifies the typing system for node factories (`createNode`, `createChildrenFirstNode`).
14
+ - Improves developer experience when working with prebuilt components:
15
+ - Example:
16
+ ```typescript
17
+ import { Div, Input } from '@meonode/ui'
18
+
19
+ // Add new props
20
+ Div<{ field: string }>({ field: 'Hello' })
21
+
22
+ // Override existing React props
23
+ Input<{ onChange: (e: { target: { value: string } }) }>({
24
+ onChange: ({ target }) => console.log(target.value),
25
+ })
26
+ ```
27
+ Extending prebuilt components is now safer and more predictable, with generic props always taking precedence when keys overlap.
28
+
29
+ - **helpers**: reorganize helper files and update import paths
30
+
31
+ ### Fixed
32
+ - **styled-renderer**: make `children` prop optional in `StyledRendererProps`
33
+
8
34
  ## [0.2.7] - 2025-09-04
9
35
 
10
36
  ### Changed