@elevasis/ui 2.9.0 → 2.10.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.
Files changed (75) 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-YCHZ4U5V.js → chunk-5VBR74ZS.js} +5 -13
  7. package/dist/chunk-ADSSLKKP.js +10 -0
  8. package/dist/{chunk-C2OFFC7J.js → chunk-AL23U6C3.js} +3 -2
  9. package/dist/{chunk-27COZ5AH.js → chunk-CEWTOKE7.js} +3 -50
  10. package/dist/{chunk-AQQYVAFK.js → chunk-CLXMNMIS.js} +8 -7
  11. package/dist/{chunk-4PHPENKX.js → chunk-E3IFHX6A.js} +27 -377
  12. package/dist/{chunk-4JPW5U5I.js → chunk-E4W7LB37.js} +53 -54
  13. package/dist/{chunk-CYXZHBP4.js → chunk-F4TPY6YL.js} +14 -3
  14. package/dist/chunk-G2TDX3W6.js +5 -0
  15. package/dist/chunk-IIMU5YAJ.js +53 -0
  16. package/dist/{chunk-W4VYXIN7.js → chunk-L4XXM55J.js} +3 -142
  17. package/dist/{chunk-KGEYEUR5.js → chunk-MOHVG62K.js} +7 -6
  18. package/dist/{chunk-F5QSLYUB.js → chunk-N47Z6LD4.js} +317 -1060
  19. package/dist/{chunk-47YILFON.js → chunk-OS5GFW2O.js} +156 -141
  20. package/dist/chunk-P5VHGY5P.js +13 -0
  21. package/dist/chunk-R7WLWGPO.js +126 -0
  22. package/dist/{chunk-Y3D3WFJG.js → chunk-SQQGLGHW.js} +2 -11
  23. package/dist/{chunk-KFICYU6S.js → chunk-STZJ7SY5.js} +1 -1
  24. package/dist/chunk-SZHARWKU.js +15 -0
  25. package/dist/{chunk-7PDDPNQS.js → chunk-TSX4I3NW.js} +3 -3
  26. package/dist/{chunk-CTWYIRKW.js → chunk-U23TW6NP.js} +24 -34
  27. package/dist/{chunk-OPT74SGF.js → chunk-USVBMGMP.js} +26 -172
  28. package/dist/chunk-V7XHGJQZ.js +145 -0
  29. package/dist/{chunk-UE5QQDCR.js → chunk-WHQXDETX.js} +5 -5
  30. package/dist/{chunk-ZZ35VSNF.js → chunk-YQLE5HR5.js} +4 -4
  31. package/dist/{chunk-VNUOQQNY.js → chunk-Z3OWD3A4.js} +2 -2
  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 -1323
  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 +96 -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 +44 -65
  64. package/dist/provider/index.js +10 -6
  65. package/dist/provider/published.d.ts +44 -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/src/provider/README.md +8 -7
  75. 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-P5VHGY5P.js';
2
+ export { ElevasisUIProvider } from '../chunk-5VBR74ZS.js';
3
+ import '../chunk-OS5GFW2O.js';
4
+ import '../chunk-F4TPY6YL.js';
5
+ export { ElevasisFeaturesProvider, FeatureShell, useElevasisFeatures, useOptionalElevasisFeatures } from '../chunk-USVBMGMP.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,24 +277,6 @@ 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,
@@ -302,8 +284,8 @@ declare const SurfaceDefinitionSchema = z.object({
302
284
  surfaceType: SurfaceTypeSchema,
303
285
  description: DescriptionSchema.optional(),
304
286
  icon: IconNameSchema.optional(),
305
- featureKey: FeatureKeySchema.optional(),
306
- domainIds: ReferenceIdsSchema,
287
+ featureId: ModelIdSchema.optional(),
288
+ featureIds: ReferenceIdsSchema,
307
289
  entityIds: ReferenceIdsSchema,
308
290
  resourceIds: ReferenceIdsSchema,
309
291
  capabilityIds: ReferenceIdsSchema,
@@ -311,7 +293,7 @@ declare const SurfaceDefinitionSchema = z.object({
311
293
  })
312
294
 
313
295
  declare const OrganizationModelSchema = OrganizationModelSchemaBase.superRefine((model, ctx) => {
314
- const domainsById = collectIds(model.domains, ctx, ['domains'], 'Domain')
296
+ const featuresById = collectIds(model.features, ctx, ['features'], 'Feature')
315
297
  const surfacesById = collectIds(model.navigation.surfaces, ctx, ['navigation', 'surfaces'], 'Surface')
316
298
  collectIds(model.navigation.groups, ctx, ['navigation', 'groups'], 'Navigation group')
317
299
  collectIds(model.resourceMappings, ctx, ['resourceMappings'], 'Resource mapping')
@@ -350,48 +332,51 @@ declare const OrganizationModelSchema = OrganizationModelSchemaBase.superRefine(
350
332
  })
351
333
  })
352
334
 
353
- model.domains.forEach((domain, domainIndex) => {
354
- domain.surfaceIds.forEach((surfaceId, surfaceIndex) => {
335
+ // Feature -> Surface bidirectional validation
336
+ model.features.forEach((feature, featureIndex) => {
337
+ feature.surfaceIds.forEach((surfaceId, surfaceIndex) => {
355
338
  const surface = surfacesById.get(surfaceId)
356
339
  if (!surface) {
357
340
  addIssue(
358
341
  ctx,
359
- ['domains', domainIndex, 'surfaceIds', surfaceIndex],
360
- `Domain "${domain.id}" references unknown surface "${surfaceId}"`
342
+ ['features', featureIndex, 'surfaceIds', surfaceIndex],
343
+ `Feature "${feature.id}" references unknown surface "${surfaceId}"`
361
344
  )
362
345
  return
363
346
  }
364
347
 
365
- if (!surface.domainIds.includes(domain.id)) {
348
+ if (!surface.featureIds.includes(feature.id)) {
366
349
  addIssue(
367
350
  ctx,
368
- ['domains', domainIndex, 'surfaceIds', surfaceIndex],
369
- `Domain "${domain.id}" references surface "${surfaceId}" but that surface does not include domain "${domain.id}"`
351
+ ['features', featureIndex, 'surfaceIds', surfaceIndex],
352
+ `Feature "${feature.id}" references surface "${surfaceId}" but that surface does not include feature "${feature.id}"`
370
353
  )
371
354
  }
372
355
  })
373
356
 
374
- domain.resourceIds.forEach((resourceId, resourceIndex) => {
357
+ // Feature -> Resource bidirectional validation
358
+ feature.resourceIds.forEach((resourceId, resourceIndex) => {
375
359
  const resourceMapping = resourceMappingsByResourceId.get(resourceId)
376
360
  if (!resourceMapping) {
377
361
  addIssue(
378
362
  ctx,
379
- ['domains', domainIndex, 'resourceIds', resourceIndex],
380
- `Domain "${domain.id}" references unknown resource "${resourceId}"`
363
+ ['features', featureIndex, 'resourceIds', resourceIndex],
364
+ `Feature "${feature.id}" references unknown resource "${resourceId}"`
381
365
  )
382
366
  return
383
367
  }
384
368
 
385
- if (!resourceMapping.domainIds.includes(domain.id)) {
369
+ if (!resourceMapping.featureIds.includes(feature.id)) {
386
370
  addIssue(
387
371
  ctx,
388
- ['domains', domainIndex, 'resourceIds', resourceIndex],
389
- `Domain "${domain.id}" references resource "${resourceId}" but that resource mapping does not include domain "${domain.id}"`
372
+ ['features', featureIndex, 'resourceIds', resourceIndex],
373
+ `Feature "${feature.id}" references resource "${resourceId}" but that resource mapping does not include feature "${feature.id}"`
390
374
  )
391
375
  }
392
376
  })
393
377
  })
394
378
 
379
+ // Surface -> Feature bidirectional validation and other surface refs
395
380
  model.navigation.surfaces.forEach((surface, surfaceIndex) => {
396
381
  if (surface.parentId && !surfacesById.has(surface.parentId)) {
397
382
  addIssue(
@@ -401,26 +386,27 @@ declare const OrganizationModelSchema = OrganizationModelSchemaBase.superRefine(
401
386
  )
402
387
  }
403
388
 
404
- surface.domainIds.forEach((domainId, domainIndex) => {
405
- const domain = domainsById.get(domainId)
406
- if (!domain) {
389
+ surface.featureIds.forEach((featureId, featureIndex) => {
390
+ const feature = featuresById.get(featureId)
391
+ if (!feature) {
407
392
  addIssue(
408
393
  ctx,
409
- ['navigation', 'surfaces', surfaceIndex, 'domainIds', domainIndex],
410
- `Surface "${surface.id}" references unknown domain "${domainId}"`
394
+ ['navigation', 'surfaces', surfaceIndex, 'featureIds', featureIndex],
395
+ `Surface "${surface.id}" references unknown feature "${featureId}"`
411
396
  )
412
397
  return
413
398
  }
414
399
 
415
- if (!domain.surfaceIds.includes(surface.id)) {
400
+ if (!feature.surfaceIds.includes(surface.id)) {
416
401
  addIssue(
417
402
  ctx,
418
- ['navigation', 'surfaces', surfaceIndex, 'domainIds', domainIndex],
419
- `Surface "${surface.id}" references domain "${domainId}" but that domain does not include surface "${surface.id}"`
403
+ ['navigation', 'surfaces', surfaceIndex, 'featureIds', featureIndex],
404
+ `Surface "${surface.id}" references feature "${featureId}" but that feature does not include surface "${surface.id}"`
420
405
  )
421
406
  }
422
407
  })
423
408
 
409
+ // Surface -> Resource bidirectional validation
424
410
  surface.resourceIds.forEach((resourceId, resourceIndex) => {
425
411
  const resourceMapping = resourceMappingsByResourceId.get(resourceId)
426
412
  if (!resourceMapping) {
@@ -442,23 +428,24 @@ declare const OrganizationModelSchema = OrganizationModelSchemaBase.superRefine(
442
428
  })
443
429
  })
444
430
 
431
+ // ResourceMapping -> Feature and Surface bidirectional validation
445
432
  model.resourceMappings.forEach((resourceMapping, resourceIndex) => {
446
- resourceMapping.domainIds.forEach((domainId, domainIndex) => {
447
- const domain = domainsById.get(domainId)
448
- if (!domain) {
433
+ resourceMapping.featureIds.forEach((featureId, featureIndex) => {
434
+ const feature = featuresById.get(featureId)
435
+ if (!feature) {
449
436
  addIssue(
450
437
  ctx,
451
- ['resourceMappings', resourceIndex, 'domainIds', domainIndex],
452
- `Resource mapping "${resourceMapping.id}" references unknown domain "${domainId}"`
438
+ ['resourceMappings', resourceIndex, 'featureIds', featureIndex],
439
+ `Resource mapping "${resourceMapping.id}" references unknown feature "${featureId}"`
453
440
  )
454
441
  return
455
442
  }
456
443
 
457
- if (!domain.resourceIds.includes(resourceMapping.resourceId)) {
444
+ if (!feature.resourceIds.includes(resourceMapping.resourceId)) {
458
445
  addIssue(
459
446
  ctx,
460
- ['resourceMappings', resourceIndex, 'domainIds', domainIndex],
461
- `Resource mapping "${resourceMapping.id}" references domain "${domainId}" but that domain does not include resource "${resourceMapping.resourceId}"`
447
+ ['resourceMappings', resourceIndex, 'featureIds', featureIndex],
448
+ `Resource mapping "${resourceMapping.id}" references feature "${featureId}" but that feature does not include resource "${resourceMapping.resourceId}"`
462
449
  )
463
450
  }
464
451
  })
@@ -486,9 +473,7 @@ declare const OrganizationModelSchema = OrganizationModelSchemaBase.superRefine(
486
473
  })
487
474
 
488
475
  type OrganizationModel = z.infer<typeof OrganizationModelSchema>
489
- type OrganizationModelFeatureKey = z.infer<typeof FeatureKeySchema>
490
476
  type OrganizationModelSurface = z.infer<typeof SurfaceDefinitionSchema>
491
- type OrganizationModelSemanticDomain = z.infer<typeof SemanticDomainSchema>
492
477
 
493
478
  interface EventSourceMessage {
494
479
  id: string;
@@ -537,15 +522,10 @@ interface FeatureNavEntry {
537
522
  }
538
523
  type FeatureSidebarComponent = ComponentType;
539
524
  interface FeatureModule {
540
- /** Unique stable identifier for this feature (e.g. `'crm'`, `'delivery'`). */
525
+ /** Unique stable identifier for this feature (e.g. `'crm'`, `'projects'`). */
541
526
  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'][];
527
+ /** Feature ID used for access-flag gating — must match the `id` of a feature in the organization model. */
528
+ featureId: string;
549
529
  /**
550
530
  * Capability identifiers contributed by this feature.
551
531
  * Merged into `ResolvedFeatureSemantics.capabilityIds` at resolution time.
@@ -567,11 +547,10 @@ interface FeatureModule {
567
547
  organizationGraph?: OrganizationGraphFeatureBridge;
568
548
  }
569
549
  interface ResolvedFeatureAccess {
570
- featureKey: string;
550
+ featureId: string;
571
551
  enabled: boolean;
572
552
  }
573
553
  interface ResolvedFeatureSemantics {
574
- domainIds: OrganizationModelSemanticDomain['id'][];
575
554
  capabilityIds: string[];
576
555
  surfaceIds: string[];
577
556
  surfaces: OrganizationModelSurface[];
@@ -585,7 +564,7 @@ type ShellNavSource = 'app' | 'feature';
585
564
  interface ResolvedShellNavItem extends FeatureNavEntry {
586
565
  placement: ShellNavPlacement;
587
566
  source: ShellNavSource;
588
- accessFeatureKey?: string;
567
+ featureId?: string;
589
568
  }
590
569
  interface ResolvedShellModel {
591
570
  navItems: ResolvedShellNavItem[];
@@ -613,7 +592,7 @@ interface OrganizationGraphContextValue {
613
592
  surfaceId?: string;
614
593
  surfacePath?: string;
615
594
  surfaceType?: OrganizationModelSurface['surfaceType'];
616
- featureKey?: OrganizationModelFeatureKey;
595
+ featureId?: string;
617
596
  }
618
597
  interface ElevasisFeaturesProviderProps {
619
598
  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-USVBMGMP.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-Z3OWD3A4.js';
2
+ export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride, PRESETS as presets, usePresetsContext } from '../chunk-OS5GFW2O.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) => {