@rizom/site-rizom-ai 0.2.0-alpha.235 → 0.2.0-alpha.237

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rizom/site-rizom-ai",
3
- "version": "0.2.0-alpha.235",
3
+ "version": "0.2.0-alpha.237",
4
4
  "description": "Rizom AI site package for hosted Rover deployments",
5
5
  "type": "module",
6
6
  "exports": {
@@ -17,9 +17,9 @@
17
17
  "prepack": "publish-manifest prepare"
18
18
  },
19
19
  "dependencies": {
20
- "@rizom/site": "0.2.0-alpha.231",
21
- "@rizom/site-rizom": "0.2.0-alpha.235",
22
- "@rizom/site-sections": "0.2.0-alpha.231"
20
+ "@rizom/site": "0.2.0-alpha.232",
21
+ "@rizom/site-rizom": "0.2.0-alpha.237",
22
+ "@rizom/site-sections": "1.0.0-alpha.232"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"
package/src/brain.tsx CHANGED
@@ -42,7 +42,7 @@ function ChapterHead({
42
42
  intro,
43
43
  }: {
44
44
  cap: string;
45
- capNote?: string | undefined;
45
+ capNote: string | null;
46
46
  headline: string;
47
47
  intro: string;
48
48
  }): JSX.Element {
@@ -141,7 +141,7 @@ function Checks({ items }: { items: string[] }): JSX.Element {
141
141
 
142
142
  const captureSchema = z.object({
143
143
  cap: z.string(),
144
- capNote: z.string().optional(),
144
+ capNote: z.string().nullable().default(null),
145
145
  headline: z.string(),
146
146
  intro: z.string(),
147
147
  checks: z.array(z.string()),
@@ -181,7 +181,7 @@ function BrainCaptureSection({
181
181
 
182
182
  const askSchema = z.object({
183
183
  cap: z.string(),
184
- capNote: z.string().optional(),
184
+ capNote: z.string().nullable().default(null),
185
185
  headline: z.string(),
186
186
  intro: z.string(),
187
187
  });
@@ -216,7 +216,7 @@ function BrainAskSection({
216
216
 
217
217
  const runSchema = z.object({
218
218
  cap: z.string(),
219
- capNote: z.string().optional(),
219
+ capNote: z.string().nullable().default(null),
220
220
  headline: z.string(),
221
221
  intro: z.string(),
222
222
  note: z.string(),
@@ -251,7 +251,7 @@ function BrainRunSection({
251
251
 
252
252
  const connectSchema = z.object({
253
253
  cap: z.string(),
254
- capNote: z.string().optional(),
254
+ capNote: z.string().nullable().default(null),
255
255
  headline: z.string(),
256
256
  intro: z.string(),
257
257
  cta: ctaSchema,
@@ -76,9 +76,9 @@ const indexRowSchema = z.object({
76
76
  kicker: z.string(),
77
77
  title: z.string(),
78
78
  text: z.string(),
79
- href: z.string().optional(),
80
- meta: z.string().optional(),
81
- metaSub: z.string().optional(),
79
+ href: z.string().nullable().default(null),
80
+ meta: z.string().nullable().default(null),
81
+ metaSub: z.string().nullable().default(null),
82
82
  });
83
83
 
84
84
  const indexSchema = z.object({
package/src/home.tsx CHANGED
@@ -36,7 +36,7 @@ const growthStageSchema = z.object({
36
36
 
37
37
  const growthSchema = z.object({
38
38
  cap: z.string(),
39
- capNote: z.string().optional(),
39
+ capNote: z.string().nullable().default(null),
40
40
  stages: z.array(growthStageSchema),
41
41
  });
42
42
 
@@ -97,9 +97,9 @@ function HomeProblemSection({
97
97
  Sub and CTAs stay authorable but optional, so older content parses. */
98
98
  const missionSchema = z.object({
99
99
  quote: z.string(),
100
- sub: z.string().optional(),
101
- primaryCta: ctaSchema.optional(),
102
- secondaryCta: ctaSchema.optional(),
100
+ sub: z.string().nullable().default(null),
101
+ primaryCta: ctaSchema.nullable().default(null),
102
+ secondaryCta: ctaSchema.nullable().default(null),
103
103
  });
104
104
 
105
105
  function HomeMissionSection({
package/src/layout.tsx CHANGED
@@ -365,7 +365,7 @@ function RizomAiChrome({
365
365
  const face = activeFace(path);
366
366
  const umbrella = isHome(path) || orgIndexActive(path) !== null;
367
367
  return (
368
- <RizomFrame canvas={false}>
368
+ <RizomFrame>
369
369
  {/* xl:pl matches the mockup's 148px left rail (68 + the 80px
370
370
  section gutter) so the mycelium has real room to seep. */}
371
371
  <div data-room={face} className="relative xl:pl-[68px]">
package/src/shared.tsx CHANGED
@@ -39,7 +39,7 @@ export function SectCap({
39
39
  className = "",
40
40
  }: {
41
41
  lead: string;
42
- trail?: string | undefined;
42
+ trail?: string | null | undefined;
43
43
  tone?: "accent" | "cold";
44
44
  className?: string;
45
45
  }): JSX.Element {
@@ -125,9 +125,9 @@ export interface IndexRowData {
125
125
  kicker: string;
126
126
  title: string;
127
127
  text: string;
128
- href?: string | undefined;
129
- meta?: string | undefined;
130
- metaSub?: string | undefined;
128
+ href?: string | null | undefined;
129
+ meta?: string | null | undefined;
130
+ metaSub?: string | null | undefined;
131
131
  }
132
132
 
133
133
  export function IndexRow({
@@ -228,11 +228,11 @@ export const trioItemSchema: z.ZodObject<{
228
228
 
229
229
  export const trioSchema: z.ZodObject<{
230
230
  cap: z.ZodString;
231
- capNote: z.ZodOptional<z.ZodString>;
231
+ capNote: z.ZodDefault<z.ZodNullable<z.ZodString>>;
232
232
  items: z.ZodArray<typeof trioItemSchema>;
233
233
  }> = z.object({
234
234
  cap: z.string(),
235
- capNote: z.string().optional(),
235
+ capNote: z.string().nullable().default(null),
236
236
  items: z.array(trioItemSchema),
237
237
  });
238
238
 
package/src/site.ts CHANGED
@@ -9,9 +9,8 @@ import { aiRoutes } from "./routes";
9
9
 
10
10
  export const rizomAiSite: SiteDefinition = createRizomSite({
11
11
  packageName: "@rizom/site-rizom-ai",
12
- // No themeProfile: the rev-5 design draws its own motifs (mycelium rail,
13
- // growth diagram) no profile canvas, no data-theme-profile. The theme's
14
- // room accents key off data-room, set by the layout.
12
+ // The rev-5 design draws its own motifs (mycelium rail, growth diagram).
13
+ // The theme's room accents key off data-room, set by the layout.
15
14
  layout: AiLayout,
16
15
  routes: aiRoutes,
17
16
  // Every page is authored schema-first (see ./home, ./brain, ./work,
package/src/work.tsx CHANGED
@@ -160,7 +160,7 @@ function WorkHeroSection({
160
160
 
161
161
  const statementSchema = z.object({
162
162
  cap: z.string(),
163
- capNote: z.string().optional(),
163
+ capNote: z.string().nullable().default(null),
164
164
  headline: z.string(),
165
165
  intro: z.string(),
166
166
  });
@@ -197,7 +197,7 @@ function WorkProblemSection(
197
197
 
198
198
  const workshopSchema = z.object({
199
199
  cap: z.string(),
200
- capNote: z.string().optional(),
200
+ capNote: z.string().nullable().default(null),
201
201
  headline: z.string(),
202
202
  intro: z.string(),
203
203
  steps: z.array(