@getcoherent/core 0.6.14 → 0.6.16

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.d.ts CHANGED
@@ -1110,7 +1110,7 @@ interface NavigationItem {
1110
1110
  */
1111
1111
  declare const NavigationSchema: z.ZodObject<{
1112
1112
  enabled: z.ZodDefault<z.ZodBoolean>;
1113
- type: z.ZodDefault<z.ZodEnum<["header", "sidebar", "both"]>>;
1113
+ type: z.ZodDefault<z.ZodEnum<["header", "sidebar", "both", "none"]>>;
1114
1114
  items: z.ZodArray<z.ZodType<NavigationItem, z.ZodTypeDef, NavigationItem>, "many">;
1115
1115
  logo: z.ZodOptional<z.ZodObject<{
1116
1116
  text: z.ZodOptional<z.ZodString>;
@@ -1123,7 +1123,7 @@ declare const NavigationSchema: z.ZodObject<{
1123
1123
  image?: string | undefined;
1124
1124
  }>>;
1125
1125
  }, "strip", z.ZodTypeAny, {
1126
- type: "header" | "sidebar" | "both";
1126
+ type: "none" | "header" | "sidebar" | "both";
1127
1127
  enabled: boolean;
1128
1128
  items: NavigationItem[];
1129
1129
  logo?: {
@@ -1132,7 +1132,7 @@ declare const NavigationSchema: z.ZodObject<{
1132
1132
  } | undefined;
1133
1133
  }, {
1134
1134
  items: NavigationItem[];
1135
- type?: "header" | "sidebar" | "both" | undefined;
1135
+ type?: "none" | "header" | "sidebar" | "both" | undefined;
1136
1136
  enabled?: boolean | undefined;
1137
1137
  logo?: {
1138
1138
  text?: string | undefined;
@@ -2017,7 +2017,7 @@ declare const DesignSystemConfigSchema: z.ZodObject<{
2017
2017
  }>, "many">;
2018
2018
  navigation: z.ZodOptional<z.ZodObject<{
2019
2019
  enabled: z.ZodDefault<z.ZodBoolean>;
2020
- type: z.ZodDefault<z.ZodEnum<["header", "sidebar", "both"]>>;
2020
+ type: z.ZodDefault<z.ZodEnum<["header", "sidebar", "both", "none"]>>;
2021
2021
  items: z.ZodArray<z.ZodType<NavigationItem, z.ZodTypeDef, NavigationItem>, "many">;
2022
2022
  logo: z.ZodOptional<z.ZodObject<{
2023
2023
  text: z.ZodOptional<z.ZodString>;
@@ -2030,7 +2030,7 @@ declare const DesignSystemConfigSchema: z.ZodObject<{
2030
2030
  image?: string | undefined;
2031
2031
  }>>;
2032
2032
  }, "strip", z.ZodTypeAny, {
2033
- type: "header" | "sidebar" | "both";
2033
+ type: "none" | "header" | "sidebar" | "both";
2034
2034
  enabled: boolean;
2035
2035
  items: NavigationItem[];
2036
2036
  logo?: {
@@ -2039,7 +2039,7 @@ declare const DesignSystemConfigSchema: z.ZodObject<{
2039
2039
  } | undefined;
2040
2040
  }, {
2041
2041
  items: NavigationItem[];
2042
- type?: "header" | "sidebar" | "both" | undefined;
2042
+ type?: "none" | "header" | "sidebar" | "both" | undefined;
2043
2043
  enabled?: boolean | undefined;
2044
2044
  logo?: {
2045
2045
  text?: string | undefined;
@@ -2176,6 +2176,7 @@ declare const DesignSystemConfigSchema: z.ZodObject<{
2176
2176
  autoScaffold?: boolean | undefined;
2177
2177
  homePagePlaceholder?: boolean | undefined;
2178
2178
  }>;
2179
+ groupLayouts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["header", "sidebar", "both", "none"]>>>;
2179
2180
  createdAt: z.ZodString;
2180
2181
  updatedAt: z.ZodString;
2181
2182
  }, "strip", z.ZodTypeAny, {
@@ -2373,7 +2374,7 @@ declare const DesignSystemConfigSchema: z.ZodObject<{
2373
2374
  deployTarget?: "vercel" | "netlify" | "cloudflare" | "self-hosted" | undefined;
2374
2375
  };
2375
2376
  navigation?: {
2376
- type: "header" | "sidebar" | "both";
2377
+ type: "none" | "header" | "sidebar" | "both";
2377
2378
  enabled: boolean;
2378
2379
  items: NavigationItem[];
2379
2380
  logo?: {
@@ -2387,6 +2388,7 @@ declare const DesignSystemConfigSchema: z.ZodObject<{
2387
2388
  react: string;
2388
2389
  tailwind: string;
2389
2390
  } | undefined;
2391
+ groupLayouts?: Record<string, "none" | "header" | "sidebar" | "both"> | undefined;
2390
2392
  }, {
2391
2393
  name: string;
2392
2394
  description: string;
@@ -2564,7 +2566,7 @@ declare const DesignSystemConfigSchema: z.ZodObject<{
2564
2566
  };
2565
2567
  navigation?: {
2566
2568
  items: NavigationItem[];
2567
- type?: "header" | "sidebar" | "both" | undefined;
2569
+ type?: "none" | "header" | "sidebar" | "both" | undefined;
2568
2570
  enabled?: boolean | undefined;
2569
2571
  logo?: {
2570
2572
  text?: string | undefined;
@@ -2596,6 +2598,7 @@ declare const DesignSystemConfigSchema: z.ZodObject<{
2596
2598
  }[] | undefined;
2597
2599
  generatedCode?: string | undefined;
2598
2600
  }[] | undefined;
2601
+ groupLayouts?: Record<string, "none" | "header" | "sidebar" | "both"> | undefined;
2599
2602
  }>;
2600
2603
  type DesignSystemConfig = z.infer<typeof DesignSystemConfigSchema>;
2601
2604
  /**
package/dist/index.js CHANGED
@@ -217,7 +217,7 @@ var NavigationItemSchema = z.object({
217
217
  });
218
218
  var NavigationSchema = z.object({
219
219
  enabled: z.boolean().default(true),
220
- type: z.enum(["header", "sidebar", "both"]).default("header"),
220
+ type: z.enum(["header", "sidebar", "both", "none"]).default("header"),
221
221
  items: z.array(NavigationItemSchema),
222
222
  logo: z.object({
223
223
  text: z.string().optional(),
@@ -299,6 +299,8 @@ var DesignSystemConfigSchema = z.object({
299
299
  // True when the home page is the init placeholder (not yet AI-generated)
300
300
  homePagePlaceholder: z.boolean().default(false)
301
301
  }),
302
+ // Per-group layout types (e.g. { app: 'sidebar', public: 'header' })
303
+ groupLayouts: z.record(z.enum(["header", "sidebar", "both", "none"])).optional(),
302
304
  // Timestamps
303
305
  createdAt: z.string().datetime(),
304
306
  updatedAt: z.string().datetime()
@@ -6407,7 +6409,6 @@ import {
6407
6409
  SidebarMenu,
6408
6410
  SidebarMenuButton,
6409
6411
  SidebarMenuItem,
6410
- SidebarProvider,
6411
6412
  SidebarTrigger,
6412
6413
  } from '@/components/ui/sidebar'
6413
6414
 
@@ -6417,21 +6418,19 @@ export function AppSidebar() {
6417
6418
  if (pathname?.startsWith('/design-system')) return null
6418
6419
 
6419
6420
  return (
6420
- <SidebarProvider>
6421
- <Sidebar>
6422
- <SidebarHeader>
6423
- <div className="flex items-center justify-between px-2 py-1">
6424
- <Link href="/" className="text-sm font-semibold text-foreground truncate">
6425
- ${appName}
6426
- </Link>
6427
- <SidebarTrigger />
6428
- </div>
6429
- </SidebarHeader>
6430
- <SidebarContent>
6421
+ <Sidebar>
6422
+ <SidebarHeader>
6423
+ <div className="flex items-center justify-between px-2 py-1">
6424
+ <Link href="/" className="text-sm font-semibold text-foreground truncate">
6425
+ ${appName}
6426
+ </Link>
6427
+ <SidebarTrigger />
6428
+ </div>
6429
+ </SidebarHeader>
6430
+ <SidebarContent>
6431
6431
  ${allGroups}
6432
- </SidebarContent>
6433
- </Sidebar>
6434
- </SidebarProvider>
6432
+ </SidebarContent>
6433
+ </Sidebar>
6435
6434
  )
6436
6435
  }
6437
6436
  `;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.6.14",
6
+ "version": "0.6.16",
7
7
  "description": "Core design system engine for Coherent",
8
8
  "type": "module",
9
9
  "main": "./dist/index.js",
@@ -32,6 +32,12 @@
32
32
  ],
33
33
  "author": "Coherent Design Method",
34
34
  "license": "MIT",
35
+ "scripts": {
36
+ "dev": "tsup --watch",
37
+ "build": "tsup",
38
+ "typecheck": "tsc --noEmit",
39
+ "test": "vitest"
40
+ },
35
41
  "dependencies": {
36
42
  "handlebars": "^4.7.8",
37
43
  "zod": "^3.22.4"
@@ -41,11 +47,5 @@
41
47
  "tsup": "^8.0.1",
42
48
  "typescript": "^5.3.3",
43
49
  "vitest": "^1.2.1"
44
- },
45
- "scripts": {
46
- "dev": "tsup --watch",
47
- "build": "tsup",
48
- "typecheck": "tsc --noEmit",
49
- "test": "vitest"
50
50
  }
51
- }
51
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Sergei Kovtun
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.