@meonode/ui 0.2.20 → 0.3.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.
package/CHANGELOG.md CHANGED
@@ -2,9 +2,81 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- The format is based on [Keep a Changelog](https://keepachachangelog.com/en/1.0.0/),
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.3.0] - 2025-09-26
9
+
10
+ ### Added
11
+
12
+ - **feat(theme):** use React Context for theme propagation
13
+
14
+ ### Refactor
15
+
16
+ - **refactor(core):** remove unused _childrenHash property from Node class
17
+
18
+ ### Example
19
+
20
+ - **feat(theme):** use React Context for theme propagation
21
+
22
+ **Before**:
23
+ ```typescript
24
+ import { Div } from '@meonode/ui';
25
+
26
+ const App = () => {
27
+ return Div({
28
+ theme: {
29
+ // theme object
30
+ },
31
+ children: 'Hello world!',
32
+ });
33
+ };
34
+ ```
35
+
36
+ **After**:
37
+ ```typescript
38
+ import { Div, ThemeProvider } from '@meonode/ui';
39
+
40
+ const App = () => {
41
+ return ThemeProvider({
42
+ theme: {
43
+ mode: 'light', // or 'dark' or any custom mode
44
+ system: {
45
+ base: {
46
+ default: '#ffffff',
47
+ content: '#000000',
48
+ }
49
+ }
50
+ },
51
+ children: [
52
+ Div({
53
+ backgroundColor: 'theme.base',
54
+ color: 'theme.content',
55
+ children: 'Hello world!',
56
+ }),
57
+ ],
58
+ });
59
+ };
60
+ ```
61
+
62
+ ## [0.2.21] - 2025-09-23
63
+
64
+ ### Refactor
65
+
66
+ - **refactor(core):** make node processing logic static and robust
67
+
68
+ ### Added
69
+
70
+ - **feat:** update NodeFunction type to improve dynamic node content generation and update FunctionRendererProps interface to use NodeFunction
71
+
72
+ ### Fixed
73
+
74
+ - **fix(component.hoc.ts):** enhance node instance check in Renderer for improved stability
75
+ - **fix(node.type.ts):** remove unused processRawNode property from Node type
76
+
77
+ ### Changed
78
+ - **package:** update dependencies to latest versions
79
+
8
80
  ## [0.2.20] - 2025-09-22
9
81
 
10
82
  ### Refactor