@blueprint-ts/core 1.1.1 → 1.1.2

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
@@ -1,3 +1,12 @@
1
+ ## v1.1.2 - 2026-01-09
2
+
3
+ ## [1.1.2](/compare/v1.1.1...v1.1.2) (2026-01-09)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Adjusted PropertyAware type 893f705
9
+ * Change @ts-expect-error to @ts-ignore to prevent errors in consuming projects 346a5b0
1
10
  ## v1.1.1 - 2026-01-08
2
11
 
3
12
  ## [1.1.1](/compare/v1.1.0...v1.1.1) (2026-01-08)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueprint-ts/core",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,10 +1,10 @@
1
+ import { type WritableComputedRef } from 'vue'
2
+
1
3
  /**
2
4
  * Repräsentiert eine reaktive Property mit model.value Zugriff
3
5
  */
4
6
  export interface PropertyAwareField<T> {
5
- model: {
6
- value: T
7
- }
7
+ model: WritableComputedRef<T>
8
8
  errors: any[]
9
9
  suggestions: any[]
10
10
  dirty: boolean
@@ -15,7 +15,7 @@ export interface PropertyAwareField<T> {
15
15
  * Jedes Feld vom Typ T wird zu einem PropertyAwareField<T>
16
16
  */
17
17
  export type PropertyAware<T> = {
18
- [K in keyof T]: T[K] extends Array<infer U> ? Array<PropertyAware<U>> : PropertyAwareField<T[K]>
18
+ [K in keyof T]: PropertyAwareField<T[K]>
19
19
  }
20
20
  /**
21
21
  * Extends Array with property awareness.
@@ -262,7 +262,7 @@ export abstract class State<T extends object> {
262
262
 
263
263
  for (let i = 1; i < pathParts.length; i++) {
264
264
  if (!obj || typeof obj !== 'object') return undefined
265
- // @ts-expect-error: obj is guaranteed to be an object at this point
265
+ // @ts-ignore: obj is guaranteed to be an object at this point
266
266
  obj = (obj as any)[pathParts[i]]
267
267
  }
268
268