@elevasis/ui 2.9.1 → 2.10.1

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.
Files changed (74) hide show
  1. package/dist/app/index.css +137 -0
  2. package/dist/app/index.d.ts +223 -0
  3. package/dist/app/index.js +95 -0
  4. package/dist/charts/index.js +3 -2
  5. package/dist/{chunk-NYMKWGKN.js → chunk-4BF74JVD.js} +110 -7
  6. package/dist/{chunk-47YILFON.js → chunk-6PNHW4X2.js} +159 -144
  7. package/dist/chunk-ADSSLKKP.js +10 -0
  8. package/dist/chunk-AEBKE4IX.js +13 -0
  9. package/dist/{chunk-C2OFFC7J.js → chunk-AL23U6C3.js} +3 -2
  10. package/dist/{chunk-27COZ5AH.js → chunk-CEWTOKE7.js} +3 -50
  11. package/dist/{chunk-AQQYVAFK.js → chunk-CLXMNMIS.js} +8 -7
  12. package/dist/{chunk-4PHPENKX.js → chunk-E3IFHX6A.js} +27 -377
  13. package/dist/{chunk-CYXZHBP4.js → chunk-F4TPY6YL.js} +14 -3
  14. package/dist/chunk-G2TDX3W6.js +5 -0
  15. package/dist/{chunk-CTWYIRKW.js → chunk-GJVGV7QZ.js} +24 -34
  16. package/dist/chunk-IIMU5YAJ.js +53 -0
  17. package/dist/{chunk-VNUOQQNY.js → chunk-KYOF6NYW.js} +2 -2
  18. package/dist/{chunk-W4VYXIN7.js → chunk-L4XXM55J.js} +3 -142
  19. package/dist/{chunk-YCHZ4U5V.js → chunk-LPSBID5V.js} +5 -13
  20. package/dist/{chunk-F5QSLYUB.js → chunk-LW5NKRI7.js} +1189 -1300
  21. package/dist/{chunk-KGEYEUR5.js → chunk-M6ZZ2FW5.js} +7 -6
  22. package/dist/{chunk-OPT74SGF.js → chunk-N5CLIRBS.js} +31 -176
  23. package/dist/chunk-R7WLWGPO.js +126 -0
  24. package/dist/{chunk-Y3D3WFJG.js → chunk-SQQGLGHW.js} +2 -11
  25. package/dist/{chunk-KFICYU6S.js → chunk-STZJ7SY5.js} +1 -1
  26. package/dist/chunk-SZHARWKU.js +15 -0
  27. package/dist/{chunk-7PDDPNQS.js → chunk-TSX4I3NW.js} +3 -3
  28. package/dist/chunk-V7XHGJQZ.js +145 -0
  29. package/dist/{chunk-UE5QQDCR.js → chunk-WHQXDETX.js} +5 -5
  30. package/dist/{chunk-4JPW5U5I.js → chunk-XB4NWSI3.js} +53 -54
  31. package/dist/{chunk-ZZ35VSNF.js → chunk-YQLE5HR5.js} +4 -4
  32. package/dist/components/index.d.ts +6 -253
  33. package/dist/components/index.js +31 -25
  34. package/dist/features/auth/index.d.ts +0 -107
  35. package/dist/features/auth/index.js +0 -1
  36. package/dist/features/crm/index.d.ts +3 -136
  37. package/dist/features/crm/index.js +14 -9
  38. package/dist/features/dashboard/index.js +13 -9
  39. package/dist/features/delivery/index.d.ts +3 -137
  40. package/dist/features/delivery/index.js +15 -9
  41. package/dist/features/lead-gen/index.d.ts +3 -29
  42. package/dist/features/lead-gen/index.js +20 -14
  43. package/dist/features/monitoring/index.d.ts +3 -30
  44. package/dist/features/monitoring/index.js +14 -10
  45. package/dist/features/operations/index.d.ts +18 -1324
  46. package/dist/features/operations/index.js +18 -13
  47. package/dist/features/seo/index.d.ts +3 -30
  48. package/dist/features/seo/index.js +3 -2
  49. package/dist/features/settings/index.d.ts +6 -146
  50. package/dist/features/settings/index.js +13 -9
  51. package/dist/hooks/index.d.ts +10 -1403
  52. package/dist/hooks/index.js +11 -7
  53. package/dist/hooks/published.d.ts +10 -1403
  54. package/dist/hooks/published.js +11 -7
  55. package/dist/index.d.ts +97 -1510
  56. package/dist/index.js +12 -8
  57. package/dist/initialization/index.d.ts +3 -117
  58. package/dist/layout/index.d.ts +12 -2
  59. package/dist/layout/index.js +5 -4
  60. package/dist/organization/index.d.ts +3 -10
  61. package/dist/organization/index.js +2 -1
  62. package/dist/profile/index.d.ts +0 -107
  63. package/dist/provider/index.d.ts +45 -65
  64. package/dist/provider/index.js +10 -6
  65. package/dist/provider/published.d.ts +45 -65
  66. package/dist/provider/published.js +6 -3
  67. package/dist/supabase/index.d.ts +0 -209
  68. package/dist/theme/index.d.ts +1 -1
  69. package/dist/theme/index.js +3 -3
  70. package/dist/typeform/index.js +10 -10
  71. package/dist/types/index.d.ts +68 -1738
  72. package/package.json +20 -4
  73. package/src/app/README.md +24 -0
  74. package/dist/chunk-IDACMRGQ.js +0 -115
@@ -1,15 +1,19 @@
1
- export { ElevasisUIProvider, createTestFeaturesProvider } from '../chunk-YCHZ4U5V.js';
2
- import '../chunk-47YILFON.js';
3
- import '../chunk-CYXZHBP4.js';
4
- export { ElevasisCoreProvider, ElevasisFeaturesProvider, FeatureShell, NotificationProvider, useElevasisFeatures, useNotificationAdapter, useOptionalElevasisFeatures } from '../chunk-OPT74SGF.js';
1
+ export { createTestFeaturesProvider } from '../chunk-AEBKE4IX.js';
2
+ export { ElevasisUIProvider } from '../chunk-LPSBID5V.js';
3
+ import '../chunk-6PNHW4X2.js';
4
+ import '../chunk-F4TPY6YL.js';
5
+ export { ElevasisFeaturesProvider, FeatureShell, useElevasisFeatures, useOptionalElevasisFeatures } from '../chunk-N5CLIRBS.js';
5
6
  import '../chunk-RX4UWZZR.js';
6
- import '../chunk-Y3D3WFJG.js';
7
+ import '../chunk-SQQGLGHW.js';
7
8
  import '../chunk-3KMDHCAR.js';
8
9
  import '../chunk-NYBEU5TE.js';
10
+ export { ElevasisCoreProvider, NotificationProvider, useNotificationAdapter } from '../chunk-R7WLWGPO.js';
11
+ import '../chunk-SZHARWKU.js';
9
12
  import '../chunk-NVOCKXUQ.js';
10
13
  import '../chunk-2IFYDILW.js';
11
14
  import '../chunk-ELJIFLCB.js';
12
- import '../chunk-W4VYXIN7.js';
15
+ import '../chunk-L4XXM55J.js';
16
+ import '../chunk-V7XHGJQZ.js';
13
17
  export { AppearanceProvider, useAppearance } from '../chunk-QJ2KCHKX.js';
14
18
  import '../chunk-DT3QYZVU.js';
15
19
  import '../chunk-SLVC5OJ2.js';
@@ -44,7 +44,7 @@ interface ThemePreset {
44
44
  */
45
45
  loader?: ReactNode;
46
46
  }
47
- type PresetName = 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'ember' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-chrome' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | 'graphite' | 'quarry';
47
+ type PresetName = 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'titanium' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-chrome' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | 'graphite' | 'quarry';
48
48
 
49
49
  interface ApiErrorDetails {
50
50
  method: string;
@@ -277,33 +277,16 @@ declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, noti
277
277
  */
278
278
  type TimeRange = '1h' | '24h' | '7d' | '30d';
279
279
 
280
- declare const SemanticDomainSchema = DisplayMetadataSchema.extend({
281
- id: ModelIdSchema,
282
- entityIds: ReferenceIdsSchema,
283
- surfaceIds: ReferenceIdsSchema,
284
- resourceIds: ReferenceIdsSchema,
285
- capabilityIds: ReferenceIdsSchema
286
- })
287
-
288
- declare const FeatureKeySchema = z.enum([
289
- 'acquisition',
290
- 'delivery',
291
- 'operations',
292
- 'monitoring',
293
- 'settings',
294
- 'seo',
295
- 'calibration'
296
- ])
297
-
298
280
  declare const SurfaceDefinitionSchema = z.object({
299
281
  id: ModelIdSchema,
300
282
  label: LabelSchema,
301
283
  path: PathSchema,
302
284
  surfaceType: SurfaceTypeSchema,
303
285
  description: DescriptionSchema.optional(),
286
+ enabled: z.boolean().default(true),
304
287
  icon: IconNameSchema.optional(),
305
- featureKey: FeatureKeySchema.optional(),
306
- domainIds: ReferenceIdsSchema,
288
+ featureId: ModelIdSchema.optional(),
289
+ featureIds: ReferenceIdsSchema,
307
290
  entityIds: ReferenceIdsSchema,
308
291
  resourceIds: ReferenceIdsSchema,
309
292
  capabilityIds: ReferenceIdsSchema,
@@ -311,7 +294,7 @@ declare const SurfaceDefinitionSchema = z.object({
311
294
  })
312
295
 
313
296
  declare const OrganizationModelSchema = OrganizationModelSchemaBase.superRefine((model, ctx) => {
314
- const domainsById = collectIds(model.domains, ctx, ['domains'], 'Domain')
297
+ const featuresById = collectIds(model.features, ctx, ['features'], 'Feature')
315
298
  const surfacesById = collectIds(model.navigation.surfaces, ctx, ['navigation', 'surfaces'], 'Surface')
316
299
  collectIds(model.navigation.groups, ctx, ['navigation', 'groups'], 'Navigation group')
317
300
  collectIds(model.resourceMappings, ctx, ['resourceMappings'], 'Resource mapping')
@@ -350,48 +333,51 @@ declare const OrganizationModelSchema = OrganizationModelSchemaBase.superRefine(
350
333
  })
351
334
  })
352
335
 
353
- model.domains.forEach((domain, domainIndex) => {
354
- domain.surfaceIds.forEach((surfaceId, surfaceIndex) => {
336
+ // Feature -> Surface bidirectional validation
337
+ model.features.forEach((feature, featureIndex) => {
338
+ feature.surfaceIds.forEach((surfaceId, surfaceIndex) => {
355
339
  const surface = surfacesById.get(surfaceId)
356
340
  if (!surface) {
357
341
  addIssue(
358
342
  ctx,
359
- ['domains', domainIndex, 'surfaceIds', surfaceIndex],
360
- `Domain "${domain.id}" references unknown surface "${surfaceId}"`
343
+ ['features', featureIndex, 'surfaceIds', surfaceIndex],
344
+ `Feature "${feature.id}" references unknown surface "${surfaceId}"`
361
345
  )
362
346
  return
363
347
  }
364
348
 
365
- if (!surface.domainIds.includes(domain.id)) {
349
+ if (!surface.featureIds.includes(feature.id)) {
366
350
  addIssue(
367
351
  ctx,
368
- ['domains', domainIndex, 'surfaceIds', surfaceIndex],
369
- `Domain "${domain.id}" references surface "${surfaceId}" but that surface does not include domain "${domain.id}"`
352
+ ['features', featureIndex, 'surfaceIds', surfaceIndex],
353
+ `Feature "${feature.id}" references surface "${surfaceId}" but that surface does not include feature "${feature.id}"`
370
354
  )
371
355
  }
372
356
  })
373
357
 
374
- domain.resourceIds.forEach((resourceId, resourceIndex) => {
358
+ // Feature -> Resource bidirectional validation
359
+ feature.resourceIds.forEach((resourceId, resourceIndex) => {
375
360
  const resourceMapping = resourceMappingsByResourceId.get(resourceId)
376
361
  if (!resourceMapping) {
377
362
  addIssue(
378
363
  ctx,
379
- ['domains', domainIndex, 'resourceIds', resourceIndex],
380
- `Domain "${domain.id}" references unknown resource "${resourceId}"`
364
+ ['features', featureIndex, 'resourceIds', resourceIndex],
365
+ `Feature "${feature.id}" references unknown resource "${resourceId}"`
381
366
  )
382
367
  return
383
368
  }
384
369
 
385
- if (!resourceMapping.domainIds.includes(domain.id)) {
370
+ if (!resourceMapping.featureIds.includes(feature.id)) {
386
371
  addIssue(
387
372
  ctx,
388
- ['domains', domainIndex, 'resourceIds', resourceIndex],
389
- `Domain "${domain.id}" references resource "${resourceId}" but that resource mapping does not include domain "${domain.id}"`
373
+ ['features', featureIndex, 'resourceIds', resourceIndex],
374
+ `Feature "${feature.id}" references resource "${resourceId}" but that resource mapping does not include feature "${feature.id}"`
390
375
  )
391
376
  }
392
377
  })
393
378
  })
394
379
 
380
+ // Surface -> Feature bidirectional validation and other surface refs
395
381
  model.navigation.surfaces.forEach((surface, surfaceIndex) => {
396
382
  if (surface.parentId && !surfacesById.has(surface.parentId)) {
397
383
  addIssue(
@@ -401,26 +387,27 @@ declare const OrganizationModelSchema = OrganizationModelSchemaBase.superRefine(
401
387
  )
402
388
  }
403
389
 
404
- surface.domainIds.forEach((domainId, domainIndex) => {
405
- const domain = domainsById.get(domainId)
406
- if (!domain) {
390
+ surface.featureIds.forEach((featureId, featureIndex) => {
391
+ const feature = featuresById.get(featureId)
392
+ if (!feature) {
407
393
  addIssue(
408
394
  ctx,
409
- ['navigation', 'surfaces', surfaceIndex, 'domainIds', domainIndex],
410
- `Surface "${surface.id}" references unknown domain "${domainId}"`
395
+ ['navigation', 'surfaces', surfaceIndex, 'featureIds', featureIndex],
396
+ `Surface "${surface.id}" references unknown feature "${featureId}"`
411
397
  )
412
398
  return
413
399
  }
414
400
 
415
- if (!domain.surfaceIds.includes(surface.id)) {
401
+ if (!feature.surfaceIds.includes(surface.id)) {
416
402
  addIssue(
417
403
  ctx,
418
- ['navigation', 'surfaces', surfaceIndex, 'domainIds', domainIndex],
419
- `Surface "${surface.id}" references domain "${domainId}" but that domain does not include surface "${surface.id}"`
404
+ ['navigation', 'surfaces', surfaceIndex, 'featureIds', featureIndex],
405
+ `Surface "${surface.id}" references feature "${featureId}" but that feature does not include surface "${surface.id}"`
420
406
  )
421
407
  }
422
408
  })
423
409
 
410
+ // Surface -> Resource bidirectional validation
424
411
  surface.resourceIds.forEach((resourceId, resourceIndex) => {
425
412
  const resourceMapping = resourceMappingsByResourceId.get(resourceId)
426
413
  if (!resourceMapping) {
@@ -442,23 +429,24 @@ declare const OrganizationModelSchema = OrganizationModelSchemaBase.superRefine(
442
429
  })
443
430
  })
444
431
 
432
+ // ResourceMapping -> Feature and Surface bidirectional validation
445
433
  model.resourceMappings.forEach((resourceMapping, resourceIndex) => {
446
- resourceMapping.domainIds.forEach((domainId, domainIndex) => {
447
- const domain = domainsById.get(domainId)
448
- if (!domain) {
434
+ resourceMapping.featureIds.forEach((featureId, featureIndex) => {
435
+ const feature = featuresById.get(featureId)
436
+ if (!feature) {
449
437
  addIssue(
450
438
  ctx,
451
- ['resourceMappings', resourceIndex, 'domainIds', domainIndex],
452
- `Resource mapping "${resourceMapping.id}" references unknown domain "${domainId}"`
439
+ ['resourceMappings', resourceIndex, 'featureIds', featureIndex],
440
+ `Resource mapping "${resourceMapping.id}" references unknown feature "${featureId}"`
453
441
  )
454
442
  return
455
443
  }
456
444
 
457
- if (!domain.resourceIds.includes(resourceMapping.resourceId)) {
445
+ if (!feature.resourceIds.includes(resourceMapping.resourceId)) {
458
446
  addIssue(
459
447
  ctx,
460
- ['resourceMappings', resourceIndex, 'domainIds', domainIndex],
461
- `Resource mapping "${resourceMapping.id}" references domain "${domainId}" but that domain does not include resource "${resourceMapping.resourceId}"`
448
+ ['resourceMappings', resourceIndex, 'featureIds', featureIndex],
449
+ `Resource mapping "${resourceMapping.id}" references feature "${featureId}" but that feature does not include resource "${resourceMapping.resourceId}"`
462
450
  )
463
451
  }
464
452
  })
@@ -486,9 +474,7 @@ declare const OrganizationModelSchema = OrganizationModelSchemaBase.superRefine(
486
474
  })
487
475
 
488
476
  type OrganizationModel = z.infer<typeof OrganizationModelSchema>
489
- type OrganizationModelFeatureKey = z.infer<typeof FeatureKeySchema>
490
477
  type OrganizationModelSurface = z.infer<typeof SurfaceDefinitionSchema>
491
- type OrganizationModelSemanticDomain = z.infer<typeof SemanticDomainSchema>
492
478
 
493
479
  interface EventSourceMessage {
494
480
  id: string;
@@ -537,15 +523,10 @@ interface FeatureNavEntry {
537
523
  }
538
524
  type FeatureSidebarComponent = ComponentType;
539
525
  interface FeatureModule {
540
- /** Unique stable identifier for this feature (e.g. `'crm'`, `'delivery'`). */
526
+ /** Unique stable identifier for this feature (e.g. `'crm'`, `'projects'`). */
541
527
  key: string;
542
- /** Feature key used for access-flag gating in the organization model. */
543
- accessFeatureKey: OrganizationModelFeatureKey;
544
- /**
545
- * Semantic domain identifiers contributed by this feature.
546
- * Merged with surface-derived domain IDs during resolution.
547
- */
548
- domainIds?: OrganizationModelSemanticDomain['id'][];
528
+ /** Feature ID used for access-flag gating — must match the `id` of a feature in the organization model. */
529
+ featureId: string;
549
530
  /**
550
531
  * Capability identifiers contributed by this feature.
551
532
  * Merged into `ResolvedFeatureSemantics.capabilityIds` at resolution time.
@@ -567,11 +548,10 @@ interface FeatureModule {
567
548
  organizationGraph?: OrganizationGraphFeatureBridge;
568
549
  }
569
550
  interface ResolvedFeatureAccess {
570
- featureKey: string;
551
+ featureId: string;
571
552
  enabled: boolean;
572
553
  }
573
554
  interface ResolvedFeatureSemantics {
574
- domainIds: OrganizationModelSemanticDomain['id'][];
575
555
  capabilityIds: string[];
576
556
  surfaceIds: string[];
577
557
  surfaces: OrganizationModelSurface[];
@@ -585,7 +565,7 @@ type ShellNavSource = 'app' | 'feature';
585
565
  interface ResolvedShellNavItem extends FeatureNavEntry {
586
566
  placement: ShellNavPlacement;
587
567
  source: ShellNavSource;
588
- accessFeatureKey?: string;
568
+ featureId?: string;
589
569
  }
590
570
  interface ResolvedShellModel {
591
571
  navItems: ResolvedShellNavItem[];
@@ -613,7 +593,7 @@ interface OrganizationGraphContextValue {
613
593
  surfaceId?: string;
614
594
  surfacePath?: string;
615
595
  surfaceType?: OrganizationModelSurface['surfaceType'];
616
- featureKey?: OrganizationModelFeatureKey;
596
+ featureId?: string;
617
597
  }
618
598
  interface ElevasisFeaturesProviderProps {
619
599
  features: FeatureModule[];
@@ -1,12 +1,15 @@
1
- export { ElevasisCoreProvider, ElevasisFeaturesProvider, FeatureShell, NotificationProvider, useElevasisFeatures, useNotificationAdapter, useOptionalElevasisFeatures } from '../chunk-OPT74SGF.js';
1
+ export { ElevasisFeaturesProvider, FeatureShell, useElevasisFeatures, useOptionalElevasisFeatures } from '../chunk-N5CLIRBS.js';
2
2
  import '../chunk-RX4UWZZR.js';
3
- import '../chunk-Y3D3WFJG.js';
3
+ import '../chunk-SQQGLGHW.js';
4
4
  import '../chunk-3KMDHCAR.js';
5
5
  import '../chunk-NYBEU5TE.js';
6
+ export { ElevasisCoreProvider, NotificationProvider, useNotificationAdapter } from '../chunk-R7WLWGPO.js';
7
+ import '../chunk-SZHARWKU.js';
6
8
  import '../chunk-NVOCKXUQ.js';
7
9
  import '../chunk-2IFYDILW.js';
8
10
  import '../chunk-ELJIFLCB.js';
9
- import '../chunk-W4VYXIN7.js';
11
+ import '../chunk-L4XXM55J.js';
12
+ import '../chunk-V7XHGJQZ.js';
10
13
  export { AppearanceProvider, useAppearance } from '../chunk-QJ2KCHKX.js';
11
14
  import '../chunk-DT3QYZVU.js';
12
15
  import '../chunk-SLVC5OJ2.js';
@@ -1112,113 +1112,6 @@ type Database = {
1112
1112
  }
1113
1113
  ];
1114
1114
  };
1115
- calibration_projects: {
1116
- Row: {
1117
- created_at: string | null;
1118
- description: string | null;
1119
- id: string;
1120
- name: string;
1121
- organization_id: string;
1122
- resource_id: string;
1123
- resource_type: string;
1124
- updated_at: string | null;
1125
- };
1126
- Insert: {
1127
- created_at?: string | null;
1128
- description?: string | null;
1129
- id?: string;
1130
- name: string;
1131
- organization_id: string;
1132
- resource_id: string;
1133
- resource_type: string;
1134
- updated_at?: string | null;
1135
- };
1136
- Update: {
1137
- created_at?: string | null;
1138
- description?: string | null;
1139
- id?: string;
1140
- name?: string;
1141
- organization_id?: string;
1142
- resource_id?: string;
1143
- resource_type?: string;
1144
- updated_at?: string | null;
1145
- };
1146
- Relationships: [
1147
- {
1148
- foreignKeyName: "calibration_projects_organization_id_fkey";
1149
- columns: ["organization_id"];
1150
- isOneToOne: false;
1151
- referencedRelation: "organizations";
1152
- referencedColumns: ["id"];
1153
- }
1154
- ];
1155
- };
1156
- calibration_runs: {
1157
- Row: {
1158
- completed_at: string | null;
1159
- config_variants: Json;
1160
- created_at: string | null;
1161
- description: string | null;
1162
- execution_mode: string;
1163
- grader_model: string | null;
1164
- grading_rubric: Json | null;
1165
- id: string;
1166
- name: string;
1167
- organization_id: string;
1168
- project_id: string;
1169
- results: Json;
1170
- status: string;
1171
- test_inputs: Json;
1172
- };
1173
- Insert: {
1174
- completed_at?: string | null;
1175
- config_variants: Json;
1176
- created_at?: string | null;
1177
- description?: string | null;
1178
- execution_mode?: string;
1179
- grader_model?: string | null;
1180
- grading_rubric?: Json | null;
1181
- id?: string;
1182
- name: string;
1183
- organization_id: string;
1184
- project_id: string;
1185
- results?: Json;
1186
- status?: string;
1187
- test_inputs: Json;
1188
- };
1189
- Update: {
1190
- completed_at?: string | null;
1191
- config_variants?: Json;
1192
- created_at?: string | null;
1193
- description?: string | null;
1194
- execution_mode?: string;
1195
- grader_model?: string | null;
1196
- grading_rubric?: Json | null;
1197
- id?: string;
1198
- name?: string;
1199
- organization_id?: string;
1200
- project_id?: string;
1201
- results?: Json;
1202
- status?: string;
1203
- test_inputs?: Json;
1204
- };
1205
- Relationships: [
1206
- {
1207
- foreignKeyName: "calibration_runs_organization_id_fkey";
1208
- columns: ["organization_id"];
1209
- isOneToOne: false;
1210
- referencedRelation: "organizations";
1211
- referencedColumns: ["id"];
1212
- },
1213
- {
1214
- foreignKeyName: "calibration_runs_project_id_fkey";
1215
- columns: ["project_id"];
1216
- isOneToOne: false;
1217
- referencedRelation: "calibration_projects";
1218
- referencedColumns: ["id"];
1219
- }
1220
- ];
1221
- };
1222
1115
  command_queue: {
1223
1116
  Row: {
1224
1117
  action_payload: Json | null;
@@ -3654,108 +3547,6 @@ declare const useSupabase: () => SupabaseClient<Database, "public", "public", {
3654
3547
  referencedColumns: ["id"];
3655
3548
  }];
3656
3549
  };
3657
- calibration_projects: {
3658
- Row: {
3659
- created_at: string | null;
3660
- description: string | null;
3661
- id: string;
3662
- name: string;
3663
- organization_id: string;
3664
- resource_id: string;
3665
- resource_type: string;
3666
- updated_at: string | null;
3667
- };
3668
- Insert: {
3669
- created_at?: string | null;
3670
- description?: string | null;
3671
- id?: string;
3672
- name: string;
3673
- organization_id: string;
3674
- resource_id: string;
3675
- resource_type: string;
3676
- updated_at?: string | null;
3677
- };
3678
- Update: {
3679
- created_at?: string | null;
3680
- description?: string | null;
3681
- id?: string;
3682
- name?: string;
3683
- organization_id?: string;
3684
- resource_id?: string;
3685
- resource_type?: string;
3686
- updated_at?: string | null;
3687
- };
3688
- Relationships: [{
3689
- foreignKeyName: "calibration_projects_organization_id_fkey";
3690
- columns: ["organization_id"];
3691
- isOneToOne: false;
3692
- referencedRelation: "organizations";
3693
- referencedColumns: ["id"];
3694
- }];
3695
- };
3696
- calibration_runs: {
3697
- Row: {
3698
- completed_at: string | null;
3699
- config_variants: Json;
3700
- created_at: string | null;
3701
- description: string | null;
3702
- execution_mode: string;
3703
- grader_model: string | null;
3704
- grading_rubric: Json | null;
3705
- id: string;
3706
- name: string;
3707
- organization_id: string;
3708
- project_id: string;
3709
- results: Json;
3710
- status: string;
3711
- test_inputs: Json;
3712
- };
3713
- Insert: {
3714
- completed_at?: string | null;
3715
- config_variants: Json;
3716
- created_at?: string | null;
3717
- description?: string | null;
3718
- execution_mode?: string;
3719
- grader_model?: string | null;
3720
- grading_rubric?: Json | null;
3721
- id?: string;
3722
- name: string;
3723
- organization_id: string;
3724
- project_id: string;
3725
- results?: Json;
3726
- status?: string;
3727
- test_inputs: Json;
3728
- };
3729
- Update: {
3730
- completed_at?: string | null;
3731
- config_variants?: Json;
3732
- created_at?: string | null;
3733
- description?: string | null;
3734
- execution_mode?: string;
3735
- grader_model?: string | null;
3736
- grading_rubric?: Json | null;
3737
- id?: string;
3738
- name?: string;
3739
- organization_id?: string;
3740
- project_id?: string;
3741
- results?: Json;
3742
- status?: string;
3743
- test_inputs?: Json;
3744
- };
3745
- Relationships: [{
3746
- foreignKeyName: "calibration_runs_organization_id_fkey";
3747
- columns: ["organization_id"];
3748
- isOneToOne: false;
3749
- referencedRelation: "organizations";
3750
- referencedColumns: ["id"];
3751
- }, {
3752
- foreignKeyName: "calibration_runs_project_id_fkey";
3753
- columns: ["project_id"];
3754
- isOneToOne: false;
3755
- referencedRelation: "calibration_projects";
3756
- referencedColumns: ["id"];
3757
- }];
3758
- };
3759
3550
  command_queue: {
3760
3551
  Row: {
3761
3552
  action_payload: Json | null;
@@ -100,7 +100,7 @@ interface ThemePreset {
100
100
  */
101
101
  loader?: ReactNode;
102
102
  }
103
- type PresetName = 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'ember' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-chrome' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | 'graphite' | 'quarry';
103
+ type PresetName = 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'titanium' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-chrome' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | 'graphite' | 'quarry';
104
104
 
105
105
  /** 10-shade color tuple (light → dark), compatible with Mantine's color format. */
106
106
  type ColorShadesTuple = [string, string, string, string, string, string, string, string, string, string];
@@ -1,3 +1,3 @@
1
- export { useAvailablePresets } from '../chunk-VNUOQQNY.js';
2
- export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride, PRESETS as presets, usePresetsContext } from '../chunk-47YILFON.js';
3
- import '../chunk-CYXZHBP4.js';
1
+ export { useAvailablePresets } from '../chunk-KYOF6NYW.js';
2
+ export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride, PRESETS as presets, usePresetsContext } from '../chunk-6PNHW4X2.js';
3
+ import '../chunk-F4TPY6YL.js';
@@ -1213,7 +1213,7 @@ function TypeformArrayField({
1213
1213
  withBorder: true,
1214
1214
  padding: "md",
1215
1215
  style: {
1216
- backgroundColor: "rgba(32, 32, 35, 0.45)",
1216
+ backgroundColor: "var(--color-surface)",
1217
1217
  borderColor: "rgba(255, 255, 255, 0.12)",
1218
1218
  borderRadius: 12
1219
1219
  },
@@ -1240,11 +1240,11 @@ function TypeformArrayField({
1240
1240
  {
1241
1241
  p: "sm",
1242
1242
  style: {
1243
- backgroundColor: "rgba(255, 255, 255, 0.03)",
1243
+ backgroundColor: "var(--glass-background)",
1244
1244
  borderRadius: 8
1245
1245
  },
1246
1246
  children: summaryLines.length > 0 ? /* @__PURE__ */ jsxs(Stack, { gap: 4, children: [
1247
- summaryLines[0] && /* @__PURE__ */ jsx(Text, { size: "sm", style: { color: "#fff" }, children: summaryLines[0].value }),
1247
+ summaryLines[0] && /* @__PURE__ */ jsx(Text, { size: "sm", style: { color: "var(--color-text)" }, children: summaryLines[0].value }),
1248
1248
  summaryLines.length > 1 && /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: summaryLines.slice(1).map((line) => line.value).join(" \xB7 ") })
1249
1249
  ] }) : /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", fs: "italic", children: "No data" })
1250
1250
  }
@@ -1261,7 +1261,7 @@ function TypeformArrayField({
1261
1261
  withBorder: true,
1262
1262
  padding: "md",
1263
1263
  style: {
1264
- backgroundColor: "rgba(32, 32, 35, 0.45)",
1264
+ backgroundColor: "var(--color-surface)",
1265
1265
  borderColor: "rgba(0, 153, 255, 0.3)",
1266
1266
  borderRadius: 12
1267
1267
  },
@@ -1336,7 +1336,7 @@ function TypeformSurvey({ config, className, styles, hideProgress }) {
1336
1336
  component: "span",
1337
1337
  fw: 700,
1338
1338
  style: {
1339
- color: "#fff"
1339
+ color: "var(--color-text)"
1340
1340
  },
1341
1341
  children: part.slice(2, -2)
1342
1342
  },
@@ -1360,7 +1360,7 @@ function TypeformSurvey({ config, className, styles, hideProgress }) {
1360
1360
  {
1361
1361
  p: "lg",
1362
1362
  style: {
1363
- backgroundColor: "rgba(32, 32, 35, 0.45)",
1363
+ backgroundColor: "var(--color-surface)",
1364
1364
  border: "1px solid rgba(255, 255, 255, 0.07)",
1365
1365
  borderRadius: 12,
1366
1366
  backdropFilter: "blur(24px)",
@@ -1391,7 +1391,7 @@ function TypeformSurvey({ config, className, styles, hideProgress }) {
1391
1391
  {
1392
1392
  p: "lg",
1393
1393
  style: {
1394
- backgroundColor: "rgba(32, 32, 35, 0.45)",
1394
+ backgroundColor: "var(--color-surface)",
1395
1395
  border: "1px solid rgba(255, 255, 255, 0.07)",
1396
1396
  borderRadius: 12,
1397
1397
  backdropFilter: "blur(24px)",
@@ -1407,7 +1407,7 @@ function TypeformSurvey({ config, className, styles, hideProgress }) {
1407
1407
  {
1408
1408
  p: "md",
1409
1409
  style: {
1410
- backgroundColor: "rgba(249, 115, 22, 0.1)",
1410
+ backgroundColor: "color-mix(in srgb, var(--color-warning) 10%, transparent)",
1411
1411
  border: "1px solid rgba(249, 115, 22, 0.2)",
1412
1412
  borderRadius: 12
1413
1413
  },
@@ -1422,13 +1422,13 @@ function TypeformSurvey({ config, className, styles, hideProgress }) {
1422
1422
  children: "Note"
1423
1423
  }
1424
1424
  ),
1425
- /* @__PURE__ */ jsx(Text, { size: "sm", style: { lineHeight: 1.6, color: "#fff" }, children: parseMarkdown(content) })
1425
+ /* @__PURE__ */ jsx(Text, { size: "sm", style: { lineHeight: 1.6, color: "var(--color-text)" }, children: parseMarkdown(content) })
1426
1426
  ]
1427
1427
  },
1428
1428
  question.id
1429
1429
  );
1430
1430
  default:
1431
- return /* @__PURE__ */ jsx(Text, { style: { color: "#fff" }, children: parseMarkdown(content) }, question.id);
1431
+ return /* @__PURE__ */ jsx(Text, { style: { color: "var(--color-text)" }, children: parseMarkdown(content) }, question.id);
1432
1432
  }
1433
1433
  };
1434
1434
  const renderField = (question) => {