@contractspec/lib.ui-link 3.7.5 → 3.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.
package/README.md CHANGED
@@ -1,37 +1,53 @@
1
1
  # @contractspec/lib.ui-link
2
2
 
3
- Website: https://contractspec.io/
3
+ Website: https://contractspec.io
4
4
 
5
- **Deep linking utilities for navigation.**
5
+ **Deep linking utilities for cross-platform navigation.**
6
6
 
7
- Provides a styled React `Link` component wrapping the native `<a>` element with `cn()` class merging from `@contractspec/lib.ui-kit-core`.
7
+ ## What It Provides
8
+
9
+ - **Layer**: lib
10
+ - **Consumers**: bundles, apps
8
11
 
9
12
  ## Installation
10
13
 
11
- ```bash
12
- bun add @contractspec/lib.ui-link
13
- ```
14
+ `npm install @contractspec/lib.ui-link`
14
15
 
15
- ## Exports
16
+ or
16
17
 
17
- - `.` -- Default `Link` component
18
- - `./ui/link` -- Same `Link` component (explicit subpath)
18
+ `bun add @contractspec/lib.ui-link`
19
19
 
20
20
  ## Usage
21
21
 
22
- ```tsx
23
- import Link from "@contractspec/lib.ui-link";
24
-
25
- function Nav() {
26
- return (
27
- <nav>
28
- <Link href="/docs" className="text-blue-600 hover:underline">
29
- Documentation
30
- </Link>
31
- <Link href="/studio">
32
- Studio
33
- </Link>
34
- </nav>
35
- );
36
- }
37
- ```
22
+ Import the root entrypoint from `@contractspec/lib.ui-link`, or use one of the documented subpaths when you want a narrower surface area.
23
+
24
+ ## Public Entry Points
25
+
26
+ - `.` — `./index.ts`
27
+ - `./ui/link` — `./ui/link.tsx`
28
+
29
+ ## Local Commands
30
+
31
+ - `bun run dev` — contractspec-bun-build dev
32
+ - `bun run build` — bun run prebuild && bun run build:bundle && bun run build:types
33
+ - `bun run lint` — bun run lint:fix
34
+ - `bun run lint:check` — biome check .
35
+ - `bun run lint:fix` — biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .
36
+ - `bun run typecheck` — tsc --noEmit
37
+ - `bun run publish:pkg` — bun publish --tolerate-republish --ignore-scripts --verbose
38
+ - `bun run publish:pkg:canary` — bun publish:pkg --tag canary
39
+ - `bun run clean` — rm -rf dist
40
+ - `bun run build:bundle` — contractspec-bun-build transpile
41
+ - `bun run build:types` — contractspec-bun-build types
42
+ - `bun run prebuild` — contractspec-bun-build prebuild
43
+
44
+ ## Recent Updates
45
+
46
+ - Replace eslint+prettier by biomejs to optimize speed
47
+ - Package exports
48
+ - PublishConfig not supported by bun
49
+
50
+ ## Notes
51
+
52
+ - Link component must stay framework-agnostic (no router-specific coupling)
53
+ - Depends on ui-kit-core — coordinate changes with that package
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { default } from "./ui/link";
1
+ export { default } from './ui/link';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/lib.ui-link",
3
- "version": "3.7.5",
3
+ "version": "3.7.8",
4
4
  "description": "Deep linking utilities for navigation",
5
5
  "keywords": [
6
6
  "contractspec",
@@ -21,20 +21,20 @@
21
21
  "dev": "contractspec-bun-build dev",
22
22
  "clean": "rm -rf dist",
23
23
  "lint": "bun run lint:fix",
24
- "lint:fix": "eslint ui --fix",
25
- "lint:check": "eslint ui",
24
+ "lint:fix": "biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .",
25
+ "lint:check": "biome check .",
26
26
  "prebuild": "contractspec-bun-build prebuild",
27
27
  "typecheck": "tsc --noEmit"
28
28
  },
29
29
  "dependencies": {
30
- "@contractspec/lib.ui-kit-core": "3.7.5",
30
+ "@contractspec/lib.ui-kit-core": "3.7.8",
31
31
  "react": "19.2.0",
32
32
  "react-dom": "19.2.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@contractspec/tool.typescript": "3.7.5",
35
+ "@contractspec/tool.typescript": "3.7.8",
36
36
  "typescript": "^5.9.3",
37
- "@contractspec/tool.bun": "3.7.5"
37
+ "@contractspec/tool.bun": "3.7.8"
38
38
  },
39
39
  "files": [
40
40
  "dist",