@reforma/types 0.1.5 → 1.0.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/dist/index.js CHANGED
@@ -313,8 +313,6 @@ let ProjectStatusEnum = /* @__PURE__ */ function(ProjectStatusEnum) {
313
313
  }({});
314
314
  const DEFAULT_PROJECT_SETTINGS = {
315
315
  timezone: "UTC",
316
- language: "en",
317
- theme: "system",
318
316
  pendingPublish: false
319
317
  };
320
318
  // src/api/projects/sandbox/sandbox-status.enum.ts
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.5",
5
+ "version": "1.0.0",
6
6
  "license": "UNLICENSED",
7
7
  "repository": {
8
8
  "type": "git",
@@ -1,5 +1,3 @@
1
- import type { Theme } from '../../theme';
2
-
3
1
  /** Project lifecycle: created → initialized → ready → published */
4
2
  export enum ProjectStatusEnum {
5
3
  /** Project exists. Design direction is not committed yet. */
@@ -19,6 +17,8 @@ export interface ProjectEditorSettings {
19
17
 
20
18
  /** Editable values in the project's site.config.ts, outside database settings. */
21
19
  export interface SiteConfig {
20
+ /** BCP 47 tag rendered as `html lang` by the starter layout. */
21
+ language: string;
22
22
  faviconUrl: string;
23
23
  indexingEnabled: boolean;
24
24
  analyticsEnabled: boolean;
@@ -28,8 +28,6 @@ export interface SiteConfig {
28
28
 
29
29
  export interface ProjectSettings {
30
30
  timezone: string;
31
- language: string;
32
- theme: Theme;
33
31
  editor?: ProjectEditorSettings;
34
32
  /** Environment variables changed since the last successful publish. */
35
33
  pendingPublish: boolean;
@@ -37,8 +35,6 @@ export interface ProjectSettings {
37
35
 
38
36
  export const DEFAULT_PROJECT_SETTINGS: ProjectSettings = {
39
37
  timezone: 'UTC',
40
- language: 'en',
41
- theme: 'system',
42
38
  pendingPublish: false,
43
39
  };
44
40
 
@@ -60,8 +56,6 @@ export interface Project {
60
56
 
61
57
  export interface UpdateProjectSettings {
62
58
  timezone?: string;
63
- language?: string;
64
- theme?: ProjectSettings['theme'];
65
59
  editor?: ProjectEditorSettings;
66
60
  }
67
61
 
@@ -11,8 +11,8 @@ export interface ComponentCatalogEntry {
11
11
  from: string;
12
12
  exportName: string;
13
13
  props: Record<string, unknown>;
14
- /** Present only when the story's `children` is a string. */
15
- children?: string;
14
+ /** Imported components used in this entry's render, besides `exportName`. */
15
+ covers?: Array<{ from: string; exportName: string }>;
16
16
  }
17
17
 
18
18
  export interface ComponentCatalog {
@@ -82,7 +82,17 @@ export type ReformaUserMessageMetadata = {
82
82
  /** Unix ms when the user sent this message (client clock). */
83
83
  sentAt?: number;
84
84
 
85
- page?: string; // '/about'
85
+ page?: string; // '/about', or a story path while one is open
86
+
87
+ /**
88
+ * Set while Design System is the screen.
89
+ * `story` is the open story path (same as `page`). `sitePage` is the site preview
90
+ * while the component list is open — not the screen the user is looking at.
91
+ */
92
+ designSystem?: {
93
+ story?: string;
94
+ sitePage?: string;
95
+ };
86
96
 
87
97
  /** Preview frame width in px at send time. Omitted when the frame has no width. */
88
98
  viewport?: number;
@@ -293,6 +303,8 @@ export interface ReformaChatDataContextCompactionPayload {
293
303
  trigger?: ReformaChatContextCompactionTrigger;
294
304
  /** Model-window prefix. Persisted; stripped before the client SSE/DTO. */
295
305
  messages?: ReformaUIMessage[];
306
+ /** Synthetic continuation inside messages; never starts a real user turn. */
307
+ resumeMessageId?: string;
296
308
  }
297
309
 
298
310
  /** Maps `data-*` suffix keys to payload shapes for {@link ReformaUIMessage}. */