@reforma/types 0.1.2 → 0.1.4

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/dist/index.js CHANGED
@@ -339,13 +339,6 @@ const DEFAULT_PROJECT_SETTINGS = {
339
339
  timezone: "UTC",
340
340
  language: "en",
341
341
  theme: "system",
342
- seo: {
343
- defaultPageTitle: "",
344
- defaultMetaDescription: "",
345
- faviconUrl: null,
346
- indexingEnabled: true,
347
- analyticsEnabled: true
348
- },
349
342
  pendingPublish: false
350
343
  };
351
344
  //#endregion
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.4",
6
6
  "license": "UNLICENSED",
7
7
  "repository": {
8
8
  "type": "git",
@@ -17,20 +17,21 @@ export interface ProjectEditorSettings {
17
17
  showLayerSizes?: boolean;
18
18
  }
19
19
 
20
+ /** Editable values in the project's site.config.ts, outside database settings. */
21
+ export interface SiteConfig {
22
+ faviconUrl: string;
23
+ indexingEnabled: boolean;
24
+ analyticsEnabled: boolean;
25
+ analyticsWriteKey: string;
26
+ analyticsEndpoint: string;
27
+ }
28
+
20
29
  export interface ProjectSettings {
21
30
  timezone: string;
22
31
  language: string;
23
32
  theme: Theme;
24
- seo: {
25
- defaultPageTitle: string;
26
- defaultMetaDescription: string;
27
- faviconUrl: string | null;
28
- indexingEnabled: boolean;
29
- /** First-party pageview collection. Default on; publish bakes `REFORMA_ANALYTICS`. */
30
- analyticsEnabled: boolean;
31
- };
32
33
  editor?: ProjectEditorSettings;
33
- /** SEO or env changed since the last successful publish. */
34
+ /** Environment variables changed since the last successful publish. */
34
35
  pendingPublish: boolean;
35
36
  }
36
37
 
@@ -38,13 +39,6 @@ export const DEFAULT_PROJECT_SETTINGS: ProjectSettings = {
38
39
  timezone: 'UTC',
39
40
  language: 'en',
40
41
  theme: 'system',
41
- seo: {
42
- defaultPageTitle: '',
43
- defaultMetaDescription: '',
44
- faviconUrl: null,
45
- indexingEnabled: true,
46
- analyticsEnabled: true,
47
- },
48
42
  pendingPublish: false,
49
43
  };
50
44
 
@@ -68,7 +62,6 @@ export interface UpdateProjectSettings {
68
62
  timezone?: string;
69
63
  language?: string;
70
64
  theme?: ProjectSettings['theme'];
71
- seo?: Partial<ProjectSettings['seo']>;
72
65
  editor?: ProjectEditorSettings;
73
66
  }
74
67
 
@@ -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';