@reforma/types 0.1.2 → 0.1.3

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
@@ -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": "0.1.2",
5
+ "version": "0.1.3",
6
6
  "license": "UNLICENSED",
7
7
  "repository": {
8
8
  "type": "git",
@@ -0,0 +1,21 @@
1
+ export interface ComponentCatalogEntry {
2
+ /** Index path, such as `ui/button`. */
3
+ key: string;
4
+ /** Component label. */
5
+ name: string;
6
+ /** Variant key. Absent when the story has no `variants` array. */
7
+ variant?: string;
8
+ /** Variant label. Present together with `variant`. */
9
+ variantName?: string;
10
+ file: string;
11
+ from: string;
12
+ exportName: string;
13
+ props: Record<string, unknown>;
14
+ /** Present only when the story's `children` is a string. */
15
+ children?: string;
16
+ }
17
+
18
+ export interface ComponentCatalog {
19
+ components: ComponentCatalogEntry[];
20
+ errors: string[];
21
+ }
package/src/index.ts CHANGED
@@ -8,4 +8,5 @@ export * from './location';
8
8
  export * from './sandbox';
9
9
  export * from './theia';
10
10
  export * from './theme';
11
+ export type * from './component-catalog';
11
12
  export type * from './project-tokens';