@cosmicdrift/kumiko-headless 0.24.1 → 0.26.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-headless",
3
- "version": "0.24.1",
3
+ "version": "0.26.0",
4
4
  "description": "Headless UI logic for Kumiko — Dispatcher contract, Form-Controller, View-Model, Nav-Resolver. Plattform- und React-frei; jeder Renderer (renderer, renderer-web, renderer-native, …) komponiert darauf.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -0,0 +1,19 @@
1
+ import { describe, expect, test } from "bun:test";
2
+ import type { FieldIssue as FrameworkFieldIssue } from "@cosmicdrift/kumiko-framework/errors";
3
+ import type { FieldIssue as HeadlessFieldIssue } from "../../index";
4
+
5
+ // Lives in headless (not framework) because headless already depends on
6
+ // framework — the reverse import (framework → headless) would introduce a
7
+ // dependency cycle that breaks standalone typecheck + published-isolation.
8
+ describe("FieldIssue cross-package contract", () => {
9
+ test("framework and headless FieldIssue shapes are assignable", () => {
10
+ const frameworkIssue: FrameworkFieldIssue = {
11
+ path: "title",
12
+ code: "too_small",
13
+ i18nKey: "errors.validation.too_small",
14
+ params: { minimum: 1 },
15
+ };
16
+ const headlessIssue: HeadlessFieldIssue = frameworkIssue;
17
+ expect(headlessIssue.path).toBe("title");
18
+ });
19
+ });