@meonode/ui 0.2.7 → 0.2.9

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,38 @@ 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.9] - 2025-09-05
9
+
10
+ ### Fixed
11
+ - **core.types**: corrected `MergedProps` definition to restore proper TypeScript inference and props autocomplete
12
+ - Fixes regression from v0.2.8 where `createNode` and `createChildrenFirstNode` lost autocomplete for props due to incorrect `MergedProps` typing
13
+
14
+ ## [0.2.8] - 2025-09-05
15
+
16
+ ### Changed
17
+ - **core.node**: refactor props handling to use a single utility type:
18
+ - `MergedProps<E, AdditionalProps>` — merges `NodeProps<E>` with custom props, giving precedence to overlapping keys from `AdditionalProps`.
19
+ - Simplifies and unifies the typing system for node factories (`createNode`, `createChildrenFirstNode`).
20
+ - Improves developer experience when working with prebuilt components:
21
+ - Example:
22
+ ```typescript
23
+ import { Div, Input } from '@meonode/ui'
24
+
25
+ // Add new props
26
+ Div<{ field: string }>({ field: 'Hello' })
27
+
28
+ // Override existing React props
29
+ Input<{ onChange: (e: { target: { value: string } }) }>({
30
+ onChange: ({ target }) => console.log(target.value),
31
+ })
32
+ ```
33
+ Extending prebuilt components is now safer and more predictable, with generic props always taking precedence when keys overlap.
34
+
35
+ - **helpers**: reorganize helper files and update import paths
36
+
37
+ ### Fixed
38
+ - **styled-renderer**: make `children` prop optional in `StyledRendererProps`
39
+
8
40
  ## [0.2.7] - 2025-09-04
9
41
 
10
42
  ### Changed