@pyreon/core 0.7.7 → 0.7.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.
Files changed (2) hide show
  1. package/README.md +11 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -65,6 +65,16 @@ function Counter() {
65
65
  - **`Suspense`** -- Shows fallback content while async children resolve.
66
66
  - **`ErrorBoundary`** -- Catches errors in descendant components and renders a fallback.
67
67
 
68
+ ### Props Utilities
69
+
70
+ - **`splitProps(props, keys)`** -- Splits a props object into `[picked, rest]`, preserving signal reactivity.
71
+ - **`mergeProps(...sources)`** -- Merges multiple props objects; last source wins. Preserves reactivity.
72
+ - **`createUniqueId(): string`** -- Returns an SSR-safe unique ID (`"pyreon-1"`, `"pyreon-2"`, etc.).
73
+
74
+ ### Class Utility
75
+
76
+ - **`cx(...values: ClassValue[]): string`** -- Combines class values (strings, arrays, objects, nested mix) into a single class string.
77
+
68
78
  ### Utilities
69
79
 
70
80
  - **`mapArray(source, mapFn)`** -- Reactively maps over an array source.
@@ -72,7 +82,7 @@ function Counter() {
72
82
 
73
83
  ### Types
74
84
 
75
- `VNode`, `VNodeChild`, `VNodeChildAtom`, `Props`, `ComponentFn`, `ExtractProps`, `HigherOrderComponent`, `ComponentInstance`, `LifecycleHooks`, `CleanupFn`, `NativeItem`, `Ref`, `Context`, `LazyComponent`, `ShowProps`, `SwitchProps`, `MatchProps`, `ForProps`, `PortalProps`, `ErrorContext`, `ErrorHandler`
85
+ `VNode`, `VNodeChild`, `VNodeChildAtom`, `Props`, `ComponentFn`, `ExtractProps`, `HigherOrderComponent`, `ComponentInstance`, `LifecycleHooks`, `CleanupFn`, `NativeItem`, `Ref`, `Context`, `LazyComponent`, `ShowProps`, `SwitchProps`, `MatchProps`, `ForProps`, `PortalProps`, `ErrorContext`, `ErrorHandler`, `ClassValue`, `TargetedEvent`, `PyreonHTMLAttributes`, `CSSProperties`, `StyleValue`, `CanvasAttributes`
76
86
 
77
87
  ## License
78
88
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyreon/core",
3
- "version": "0.7.7",
3
+ "version": "0.7.8",
4
4
  "description": "Core component model and lifecycle for Pyreon",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -49,7 +49,7 @@
49
49
  "prepublishOnly": "bun run build"
50
50
  },
51
51
  "dependencies": {
52
- "@pyreon/reactivity": "^0.7.7"
52
+ "@pyreon/reactivity": "^0.7.8"
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public"