@reforma/types 1.1.0 → 1.2.1
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 +11 -14
- package/src/component-catalog.ts +3 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@reforma/types",
|
|
3
3
|
"author": "Reforma, Inc. <dev@reforma.ai>",
|
|
4
4
|
"description": "Shared types between Reforma apps/packages",
|
|
5
|
-
"version": "1.1
|
|
5
|
+
"version": "1.2.1",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -13,24 +13,25 @@
|
|
|
13
13
|
"dist",
|
|
14
14
|
"src"
|
|
15
15
|
],
|
|
16
|
-
"main": "
|
|
17
|
-
"types": "src/index.ts",
|
|
16
|
+
"main": "./dist/index.js",
|
|
17
|
+
"types": "./src/index.ts",
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "tsdown && bun run assert-dist",
|
|
20
20
|
"build:publish": "bun run build",
|
|
21
21
|
"assert-dist": "node -e \"const t=require('./dist/index.js'); for (const k of ['DeploymentStatusEnum','DeploymentProviderEnum','DeploymentErrorCodeEnum','DomainStatusEnum','DomainDnsRecordPurposeEnum','McpRuntimeStatus','ProjectEnvEnvironmentEnum','CUSTOM_PLAYBOOK_KIND','CUSTOM_PLAYBOOK_MODES','CUSTOM_PLAYBOOK_NAME_PATTERN','CUSTOM_PLAYBOOK_BODY_MAX_BYTES','CUSTOM_PLAYBOOK_DESCRIPTION_MAX_BYTES']) { if (!t[k]) throw new Error('@reforma/types dist missing '+k); }\"",
|
|
22
22
|
"dev:prepare": "bun run build",
|
|
23
23
|
"clean": "rm -rf node_modules/{*,.*} .turbo dist 2>/dev/null || true",
|
|
24
|
-
"typecheck": "tsc --noEmit"
|
|
24
|
+
"typecheck": "tsc --noEmit",
|
|
25
|
+
"prepack": "node ../components/scripts/prepack.mjs",
|
|
26
|
+
"postpack": "node ../components/scripts/postpack.mjs"
|
|
25
27
|
},
|
|
26
28
|
"exports": {
|
|
27
29
|
".": {
|
|
28
30
|
"types": "./src/index.ts",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"default": "./
|
|
32
|
-
}
|
|
33
|
-
"./*": "./src/*/index.ts"
|
|
31
|
+
"import": "./dist/index.js",
|
|
32
|
+
"require": "./dist/index.js",
|
|
33
|
+
"default": "./dist/index.js"
|
|
34
|
+
}
|
|
34
35
|
},
|
|
35
36
|
"publishConfig": {
|
|
36
37
|
"access": "public",
|
|
@@ -46,11 +47,7 @@
|
|
|
46
47
|
}
|
|
47
48
|
},
|
|
48
49
|
"dependencies": {
|
|
49
|
-
"@reforma/project-tokens": "
|
|
50
|
+
"@reforma/project-tokens": "0.0.2",
|
|
50
51
|
"ai": "7.0.31"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"tsdown": "^0.22.14",
|
|
54
|
-
"typescript": "^7"
|
|
55
52
|
}
|
|
56
53
|
}
|
package/src/component-catalog.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export interface ComponentCatalogEntry {
|
|
2
|
-
/**
|
|
2
|
+
/** Story path, such as `ui/button` for `ui/button.story.tsx`. */
|
|
3
3
|
key: string;
|
|
4
4
|
/** Component label. */
|
|
5
5
|
name: string;
|
|
6
|
+
/** List section title. Absent when the story declares no `group`. */
|
|
7
|
+
group?: string;
|
|
6
8
|
/** Variant key. Absent when the story has no `variants` array. */
|
|
7
9
|
variant?: string;
|
|
8
10
|
/** Variant label. Present together with `variant`. */
|