@ramme-io/shared 2.0.2 → 2.0.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/dist/index.cjs CHANGED
@@ -33,6 +33,7 @@ __export(index_exports, {
33
33
  DEFAULT_CHAT_MODEL: () => DEFAULT_CHAT_MODEL,
34
34
  DEFAULT_PRO_MODEL: () => DEFAULT_PRO_MODEL,
35
35
  DEFAULT_SCHEMA_MODEL: () => DEFAULT_SCHEMA_MODEL,
36
+ DEFAULT_THEME_TOKENS: () => DEFAULT_THEME_TOKENS,
36
37
  EntitySchema: () => EntitySchema,
37
38
  FieldSchema: () => FieldSchema,
38
39
  FloraTelemetrySchema: () => FloraTelemetrySchema,
@@ -54,6 +55,7 @@ __export(index_exports, {
54
55
  THEME_SYSTEM_PROMPT: () => THEME_SYSTEM_PROMPT,
55
56
  ThemeFontsSchema: () => ThemeFontsSchema,
56
57
  ThemeOverridesSchema: () => ThemeOverridesSchema,
58
+ ThemeTokensSchema: () => ThemeTokensSchema,
57
59
  TriggerSchema: () => TriggerSchema,
58
60
  UserSchema: () => UserSchema,
59
61
  WorkflowSchema: () => WorkflowSchema,
@@ -604,6 +606,22 @@ var AIThemeSchema = import_zod6.z.object({
604
606
  cssVars: ThemeOverridesSchema
605
607
  });
606
608
  var THEME_PRESETS = ["light", "dark", "system", "corporate", "midnight", "blueprint"];
609
+ var ThemeTokensSchema = import_zod6.z.object({
610
+ primary: RGBString,
611
+ neutral: RGBString,
612
+ success: RGBString,
613
+ warning: RGBString,
614
+ destructive: RGBString,
615
+ radius: import_zod6.z.enum(["none", "sm", "md", "lg", "full"])
616
+ });
617
+ var DEFAULT_THEME_TOKENS = {
618
+ primary: "13 110 253",
619
+ neutral: "24 24 27",
620
+ success: "34 197 94",
621
+ warning: "234 179 8",
622
+ destructive: "239 68 68",
623
+ radius: "md"
624
+ };
607
625
 
608
626
  // src/auth/schema.ts
609
627
  var import_zod7 = require("zod");
@@ -633,6 +651,7 @@ var UserSchema = import_zod7.z.object({
633
651
  DEFAULT_CHAT_MODEL,
634
652
  DEFAULT_PRO_MODEL,
635
653
  DEFAULT_SCHEMA_MODEL,
654
+ DEFAULT_THEME_TOKENS,
636
655
  EntitySchema,
637
656
  FieldSchema,
638
657
  FloraTelemetrySchema,
@@ -654,6 +673,7 @@ var UserSchema = import_zod7.z.object({
654
673
  THEME_SYSTEM_PROMPT,
655
674
  ThemeFontsSchema,
656
675
  ThemeOverridesSchema,
676
+ ThemeTokensSchema,
657
677
  TriggerSchema,
658
678
  UserSchema,
659
679
  WorkflowSchema,
package/dist/index.d.cts CHANGED
@@ -2172,6 +2172,37 @@ type AITheme = z.infer<typeof AIThemeSchema>;
2172
2172
  /** All built-in theme preset CSS class names. */
2173
2173
  declare const THEME_PRESETS: readonly ["light", "dark", "system", "corporate", "midnight", "blueprint"];
2174
2174
  type ThemePreset = typeof THEME_PRESETS[number];
2175
+ /**
2176
+ * ThemeTokensSchema — the 5-token palette + radius contract for the Settings
2177
+ * Theme Lab. Stored in useSettingsStore (kernel) and rendered by ThemeLab (ui).
2178
+ *
2179
+ * All color values MUST be space-separated RGB integers (not hex, not rgb()).
2180
+ * This enables Tailwind opacity modifiers: `bg-primary/50`.
2181
+ */
2182
+ declare const ThemeTokensSchema: z.ZodObject<{
2183
+ primary: z.ZodString;
2184
+ neutral: z.ZodString;
2185
+ success: z.ZodString;
2186
+ warning: z.ZodString;
2187
+ destructive: z.ZodString;
2188
+ radius: z.ZodEnum<["none", "sm", "md", "lg", "full"]>;
2189
+ }, "strip", z.ZodTypeAny, {
2190
+ primary: string;
2191
+ neutral: string;
2192
+ success: string;
2193
+ warning: string;
2194
+ destructive: string;
2195
+ radius: "none" | "sm" | "md" | "lg" | "full";
2196
+ }, {
2197
+ primary: string;
2198
+ neutral: string;
2199
+ success: string;
2200
+ warning: string;
2201
+ destructive: string;
2202
+ radius: "none" | "sm" | "md" | "lg" | "full";
2203
+ }>;
2204
+ type ThemeTokens = z.infer<typeof ThemeTokensSchema>;
2205
+ declare const DEFAULT_THEME_TOKENS: ThemeTokens;
2175
2206
 
2176
2207
  declare const UserSchema: z.ZodObject<{
2177
2208
  id: z.ZodDefault<z.ZodString>;
@@ -2206,4 +2237,4 @@ declare const UserSchema: z.ZodObject<{
2206
2237
  }>;
2207
2238
  type User = z.infer<typeof UserSchema>;
2208
2239
 
2209
- export { type AIKeyManifest, AIKeyManifestSchema, type AITheme, AIThemeSchema, AI_ROSTER, AI_TOOLS, type ActionDefinition, ActionSchema, type AgentRoleConfig, type AgentRoleKey, AppSignalSchema, type AppSpecification, AppSpecificationSchema, AuthStrategySchema, type Block, BlockSchema, schema as Bodewell, DEFAULT_CHAT_MODEL, DEFAULT_PRO_MODEL, DEFAULT_SCHEMA_MODEL, type EntityDefinition, EntitySchema, type FieldDefinition, FieldSchema, type FloraTelemetry, FloraTelemetrySchema, GENESIS_LIBRARY_CONTEXT, GENESIS_VALID_COMPONENTS, type GenesisComponentType, type PageDefinition, PageSchema, type PageSection, PageSectionSchema, type ResourceDefinition, ResourceSchema, SIGNAL_DOMAINS, SIGNAL_KINDS, SIGNAL_KIND_LABELS, SIGNAL_SOURCES, type Signal, type SignalArray, SignalArraySchema, type SignalDefinition, type SignalDomain, type SignalKind, SignalKindSchema, type SignalPacket, SignalPacketSchema, SignalSchema, type SignalSource, SignalSourceSchema, type StockChartParams, THEME_PRESETS, THEME_SYSTEM_PROMPT, type TelemetryGraphParams, type ThemeFonts, ThemeFontsSchema, type ThemeOverrides, ThemeOverridesSchema, type ThemePreset, type ToolCall, type ToolDefinition, TriggerSchema, type User, UserSchema, type WorkflowDefinition, WorkflowSchema, stockChartParameters, telemetryGraphParameters };
2240
+ export { type AIKeyManifest, AIKeyManifestSchema, type AITheme, AIThemeSchema, AI_ROSTER, AI_TOOLS, type ActionDefinition, ActionSchema, type AgentRoleConfig, type AgentRoleKey, AppSignalSchema, type AppSpecification, AppSpecificationSchema, AuthStrategySchema, type Block, BlockSchema, schema as Bodewell, DEFAULT_CHAT_MODEL, DEFAULT_PRO_MODEL, DEFAULT_SCHEMA_MODEL, DEFAULT_THEME_TOKENS, type EntityDefinition, EntitySchema, type FieldDefinition, FieldSchema, type FloraTelemetry, FloraTelemetrySchema, GENESIS_LIBRARY_CONTEXT, GENESIS_VALID_COMPONENTS, type GenesisComponentType, type PageDefinition, PageSchema, type PageSection, PageSectionSchema, type ResourceDefinition, ResourceSchema, SIGNAL_DOMAINS, SIGNAL_KINDS, SIGNAL_KIND_LABELS, SIGNAL_SOURCES, type Signal, type SignalArray, SignalArraySchema, type SignalDefinition, type SignalDomain, type SignalKind, SignalKindSchema, type SignalPacket, SignalPacketSchema, SignalSchema, type SignalSource, SignalSourceSchema, type StockChartParams, THEME_PRESETS, THEME_SYSTEM_PROMPT, type TelemetryGraphParams, type ThemeFonts, ThemeFontsSchema, type ThemeOverrides, ThemeOverridesSchema, type ThemePreset, type ThemeTokens, ThemeTokensSchema, type ToolCall, type ToolDefinition, TriggerSchema, type User, UserSchema, type WorkflowDefinition, WorkflowSchema, stockChartParameters, telemetryGraphParameters };
package/dist/index.d.ts CHANGED
@@ -2172,6 +2172,37 @@ type AITheme = z.infer<typeof AIThemeSchema>;
2172
2172
  /** All built-in theme preset CSS class names. */
2173
2173
  declare const THEME_PRESETS: readonly ["light", "dark", "system", "corporate", "midnight", "blueprint"];
2174
2174
  type ThemePreset = typeof THEME_PRESETS[number];
2175
+ /**
2176
+ * ThemeTokensSchema — the 5-token palette + radius contract for the Settings
2177
+ * Theme Lab. Stored in useSettingsStore (kernel) and rendered by ThemeLab (ui).
2178
+ *
2179
+ * All color values MUST be space-separated RGB integers (not hex, not rgb()).
2180
+ * This enables Tailwind opacity modifiers: `bg-primary/50`.
2181
+ */
2182
+ declare const ThemeTokensSchema: z.ZodObject<{
2183
+ primary: z.ZodString;
2184
+ neutral: z.ZodString;
2185
+ success: z.ZodString;
2186
+ warning: z.ZodString;
2187
+ destructive: z.ZodString;
2188
+ radius: z.ZodEnum<["none", "sm", "md", "lg", "full"]>;
2189
+ }, "strip", z.ZodTypeAny, {
2190
+ primary: string;
2191
+ neutral: string;
2192
+ success: string;
2193
+ warning: string;
2194
+ destructive: string;
2195
+ radius: "none" | "sm" | "md" | "lg" | "full";
2196
+ }, {
2197
+ primary: string;
2198
+ neutral: string;
2199
+ success: string;
2200
+ warning: string;
2201
+ destructive: string;
2202
+ radius: "none" | "sm" | "md" | "lg" | "full";
2203
+ }>;
2204
+ type ThemeTokens = z.infer<typeof ThemeTokensSchema>;
2205
+ declare const DEFAULT_THEME_TOKENS: ThemeTokens;
2175
2206
 
2176
2207
  declare const UserSchema: z.ZodObject<{
2177
2208
  id: z.ZodDefault<z.ZodString>;
@@ -2206,4 +2237,4 @@ declare const UserSchema: z.ZodObject<{
2206
2237
  }>;
2207
2238
  type User = z.infer<typeof UserSchema>;
2208
2239
 
2209
- export { type AIKeyManifest, AIKeyManifestSchema, type AITheme, AIThemeSchema, AI_ROSTER, AI_TOOLS, type ActionDefinition, ActionSchema, type AgentRoleConfig, type AgentRoleKey, AppSignalSchema, type AppSpecification, AppSpecificationSchema, AuthStrategySchema, type Block, BlockSchema, schema as Bodewell, DEFAULT_CHAT_MODEL, DEFAULT_PRO_MODEL, DEFAULT_SCHEMA_MODEL, type EntityDefinition, EntitySchema, type FieldDefinition, FieldSchema, type FloraTelemetry, FloraTelemetrySchema, GENESIS_LIBRARY_CONTEXT, GENESIS_VALID_COMPONENTS, type GenesisComponentType, type PageDefinition, PageSchema, type PageSection, PageSectionSchema, type ResourceDefinition, ResourceSchema, SIGNAL_DOMAINS, SIGNAL_KINDS, SIGNAL_KIND_LABELS, SIGNAL_SOURCES, type Signal, type SignalArray, SignalArraySchema, type SignalDefinition, type SignalDomain, type SignalKind, SignalKindSchema, type SignalPacket, SignalPacketSchema, SignalSchema, type SignalSource, SignalSourceSchema, type StockChartParams, THEME_PRESETS, THEME_SYSTEM_PROMPT, type TelemetryGraphParams, type ThemeFonts, ThemeFontsSchema, type ThemeOverrides, ThemeOverridesSchema, type ThemePreset, type ToolCall, type ToolDefinition, TriggerSchema, type User, UserSchema, type WorkflowDefinition, WorkflowSchema, stockChartParameters, telemetryGraphParameters };
2240
+ export { type AIKeyManifest, AIKeyManifestSchema, type AITheme, AIThemeSchema, AI_ROSTER, AI_TOOLS, type ActionDefinition, ActionSchema, type AgentRoleConfig, type AgentRoleKey, AppSignalSchema, type AppSpecification, AppSpecificationSchema, AuthStrategySchema, type Block, BlockSchema, schema as Bodewell, DEFAULT_CHAT_MODEL, DEFAULT_PRO_MODEL, DEFAULT_SCHEMA_MODEL, DEFAULT_THEME_TOKENS, type EntityDefinition, EntitySchema, type FieldDefinition, FieldSchema, type FloraTelemetry, FloraTelemetrySchema, GENESIS_LIBRARY_CONTEXT, GENESIS_VALID_COMPONENTS, type GenesisComponentType, type PageDefinition, PageSchema, type PageSection, PageSectionSchema, type ResourceDefinition, ResourceSchema, SIGNAL_DOMAINS, SIGNAL_KINDS, SIGNAL_KIND_LABELS, SIGNAL_SOURCES, type Signal, type SignalArray, SignalArraySchema, type SignalDefinition, type SignalDomain, type SignalKind, SignalKindSchema, type SignalPacket, SignalPacketSchema, SignalSchema, type SignalSource, SignalSourceSchema, type StockChartParams, THEME_PRESETS, THEME_SYSTEM_PROMPT, type TelemetryGraphParams, type ThemeFonts, ThemeFontsSchema, type ThemeOverrides, ThemeOverridesSchema, type ThemePreset, type ThemeTokens, ThemeTokensSchema, type ToolCall, type ToolDefinition, TriggerSchema, type User, UserSchema, type WorkflowDefinition, WorkflowSchema, stockChartParameters, telemetryGraphParameters };
package/dist/index.js CHANGED
@@ -546,6 +546,22 @@ var AIThemeSchema = z6.object({
546
546
  cssVars: ThemeOverridesSchema
547
547
  });
548
548
  var THEME_PRESETS = ["light", "dark", "system", "corporate", "midnight", "blueprint"];
549
+ var ThemeTokensSchema = z6.object({
550
+ primary: RGBString,
551
+ neutral: RGBString,
552
+ success: RGBString,
553
+ warning: RGBString,
554
+ destructive: RGBString,
555
+ radius: z6.enum(["none", "sm", "md", "lg", "full"])
556
+ });
557
+ var DEFAULT_THEME_TOKENS = {
558
+ primary: "13 110 253",
559
+ neutral: "24 24 27",
560
+ success: "34 197 94",
561
+ warning: "234 179 8",
562
+ destructive: "239 68 68",
563
+ radius: "md"
564
+ };
549
565
 
550
566
  // src/auth/schema.ts
551
567
  import { z as z7 } from "zod";
@@ -574,6 +590,7 @@ export {
574
590
  DEFAULT_CHAT_MODEL,
575
591
  DEFAULT_PRO_MODEL,
576
592
  DEFAULT_SCHEMA_MODEL,
593
+ DEFAULT_THEME_TOKENS,
577
594
  EntitySchema,
578
595
  FieldSchema,
579
596
  FloraTelemetrySchema,
@@ -595,6 +612,7 @@ export {
595
612
  THEME_SYSTEM_PROMPT,
596
613
  ThemeFontsSchema,
597
614
  ThemeOverridesSchema,
615
+ ThemeTokensSchema,
598
616
  TriggerSchema,
599
617
  UserSchema,
600
618
  WorkflowSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ramme-io/shared",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",