@unisane/ui 0.1.0-next.b67ebfd0 → 0.1.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": "@unisane/ui",
3
- "version": "0.1.0-next.b67ebfd0",
3
+ "version": "0.1.0",
4
4
  "description": "Open-code React component registry and optional runtime distribution for product interfaces",
5
5
  "private": false,
6
6
  "type": "module",
@@ -431,30 +431,11 @@
431
431
  "publishConfig": {
432
432
  "access": "public",
433
433
  "provenance": true,
434
- "tag": "next"
434
+ "tag": "latest"
435
435
  },
436
436
  "engines": {
437
437
  "node": ">=22.0.0"
438
438
  },
439
- "scripts": {
440
- "build": "pnpm clean && tsc -p tsconfig.json && tsc-alias -p tsconfig.json --resolve-full-paths --resolve-full-extension .js && tailwindcss -i ./src/styles.css -o ./dist/index.css && pnpm check:runtime-exports",
441
- "build:registry": "node scripts/build-registry.mjs",
442
- "check:border-semantics": "node ../../scripts/check-semantic-border-roles.mjs",
443
- "check:contract": "node scripts/check-component-contract.mjs",
444
- "check:convergence": "node scripts/check-convergence.mjs",
445
- "check:raw-colors": "node scripts/check-raw-colors.mjs",
446
- "check:runtime-exports": "node scripts/check-runtime-exports.mjs",
447
- "check-types": "tsc --noEmit",
448
- "check-types:registry": "tsc --noEmit -p tsconfig.registry.json",
449
- "clean": "node ../../scripts/clean-package-output.mjs",
450
- "test": "vitest run --config vitest.config.ts",
451
- "test:registry-contract": "vitest run --config vitest.config.ts scripts/__tests__/registry-contract.test.mjs",
452
- "validate": "pnpm test && pnpm check-types && pnpm check:contract && pnpm check:convergence && pnpm check:raw-colors && pnpm check:border-semantics && pnpm validate:registry",
453
- "dev:styles": "tailwindcss -i ./src/styles.css -o ./dist/index.css --watch",
454
- "dev:components": "tsc --watch",
455
- "lint": "eslint src --max-warnings 0 && pnpm check:contract",
456
- "validate:registry": "node scripts/validate-registry.mjs && pnpm test:registry-contract && pnpm check-types:registry"
457
- },
458
439
  "peerDependencies": {
459
440
  "react": "^19",
460
441
  "react-dom": "^19"
@@ -470,16 +451,35 @@
470
451
  "typescript": "5.9.2"
471
452
  },
472
453
  "dependencies": {
473
- "@unisane/tokens": "workspace:*",
474
454
  "class-variance-authority": "^0.7.1",
475
455
  "clsx": "^2.1.1",
476
456
  "cmdk": "^1.1.1",
477
457
  "tailwind-merge": "^3.4.0",
478
- "vaul": "^1.1.2"
458
+ "vaul": "^1.1.2",
459
+ "@unisane/tokens": "0.1.0"
479
460
  },
480
461
  "unisane": {
481
462
  "kind": "ui",
482
463
  "edition": "oss",
483
464
  "meta": "./unisane.meta.json"
465
+ },
466
+ "scripts": {
467
+ "build": "pnpm clean && tsc -p tsconfig.json && tsc-alias -p tsconfig.json --resolve-full-paths --resolve-full-extension .js && tailwindcss -i ./src/styles.css -o ./dist/index.css && pnpm check:runtime-exports",
468
+ "build:registry": "node scripts/build-registry.mjs",
469
+ "check:border-semantics": "node ../../scripts/check-semantic-border-roles.mjs",
470
+ "check:contract": "node scripts/check-component-contract.mjs",
471
+ "check:convergence": "node scripts/check-convergence.mjs",
472
+ "check:raw-colors": "node scripts/check-raw-colors.mjs",
473
+ "check:runtime-exports": "node scripts/check-runtime-exports.mjs",
474
+ "check-types": "tsc --noEmit",
475
+ "check-types:registry": "tsc --noEmit -p tsconfig.registry.json",
476
+ "clean": "node ../../scripts/clean-package-output.mjs",
477
+ "test": "vitest run --config vitest.config.ts",
478
+ "test:registry-contract": "vitest run --config vitest.config.ts scripts/__tests__/registry-contract.test.mjs",
479
+ "validate": "pnpm test && pnpm check-types && pnpm check:contract && pnpm check:convergence && pnpm check:raw-colors && pnpm check:border-semantics && pnpm validate:registry",
480
+ "dev:styles": "tailwindcss -i ./src/styles.css -o ./dist/index.css --watch",
481
+ "dev:components": "tsc --watch",
482
+ "lint": "eslint src --max-warnings 0 && pnpm check:contract",
483
+ "validate:registry": "node scripts/validate-registry.mjs && pnpm test:registry-contract && pnpm check-types:registry"
484
484
  }
485
- }
485
+ }
@@ -1,30 +1,37 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://ui.unisane.com/schema/registry.json",
3
4
  "type": "object",
5
+ "additionalProperties": false,
4
6
  "properties": {
5
7
  "$schema": {
6
8
  "type": "string"
7
9
  },
8
- "version": {
10
+ "name": {
9
11
  "type": "string"
10
12
  },
11
- "components": {
12
- "type": "object",
13
- "additionalProperties": {
13
+ "homepage": {
14
+ "type": "string"
15
+ },
16
+ "items": {
17
+ "type": "array",
18
+ "items": {
14
19
  "type": "object",
20
+ "additionalProperties": false,
15
21
  "properties": {
16
22
  "name": {
17
23
  "type": "string"
18
24
  },
25
+ "title": {
26
+ "type": "string"
27
+ },
19
28
  "type": {
20
29
  "type": "string",
21
30
  "enum": [
22
- "components:ui",
23
- "primitives:ui",
24
- "layout:ui",
25
- "hooks:ui",
26
- "lib:util",
27
- "types:ui"
31
+ "registry:ui",
32
+ "registry:lib",
33
+ "registry:hook",
34
+ "registry:file"
28
35
  ]
29
36
  },
30
37
  "description": {
@@ -33,7 +40,30 @@
33
40
  "files": {
34
41
  "type": "array",
35
42
  "items": {
36
- "type": "string"
43
+ "type": "object",
44
+ "additionalProperties": false,
45
+ "properties": {
46
+ "path": {
47
+ "type": "string"
48
+ },
49
+ "type": {
50
+ "type": "string",
51
+ "enum": [
52
+ "registry:ui",
53
+ "registry:lib",
54
+ "registry:hook",
55
+ "registry:file"
56
+ ]
57
+ },
58
+ "target": {
59
+ "type": "string"
60
+ }
61
+ },
62
+ "required": [
63
+ "path",
64
+ "type",
65
+ "target"
66
+ ]
37
67
  }
38
68
  },
39
69
  "dependencies": {
@@ -48,44 +78,29 @@
48
78
  "type": "string"
49
79
  }
50
80
  },
51
- "variants": {
52
- "type": "object",
53
- "additionalProperties": {
54
- "type": "array",
55
- "items": {
56
- "type": "string"
57
- }
58
- }
59
- },
60
- "accessibility": {
61
- "type": "object",
62
- "properties": {
63
- "keyboard": {
64
- "type": "boolean"
65
- },
66
- "screenReader": {
67
- "type": "boolean"
68
- },
69
- "contrast": {
70
- "type": "string",
71
- "enum": [
72
- "AA",
73
- "AAA"
74
- ]
75
- }
81
+ "devDependencies": {
82
+ "type": "array",
83
+ "items": {
84
+ "type": "string"
76
85
  }
77
86
  }
78
87
  },
79
88
  "required": [
80
89
  "name",
90
+ "title",
81
91
  "type",
82
92
  "description",
83
- "files"
93
+ "files",
94
+ "dependencies",
95
+ "registryDependencies"
84
96
  ]
85
97
  }
86
98
  }
87
99
  },
88
100
  "required": [
89
- "components"
101
+ "$schema",
102
+ "name",
103
+ "homepage",
104
+ "items"
90
105
  ]
91
106
  }