@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.
- package/dist/app/index.css +137 -0
- package/dist/app/index.d.ts +223 -0
- package/dist/app/index.js +95 -0
- package/dist/charts/index.js +3 -2
- package/dist/{chunk-NYMKWGKN.js → chunk-4BF74JVD.js} +110 -7
- package/dist/{chunk-YCHZ4U5V.js → chunk-5VBR74ZS.js} +5 -13
- package/dist/chunk-ADSSLKKP.js +10 -0
- package/dist/{chunk-C2OFFC7J.js → chunk-AL23U6C3.js} +3 -2
- package/dist/{chunk-27COZ5AH.js → chunk-CEWTOKE7.js} +3 -50
- package/dist/{chunk-AQQYVAFK.js → chunk-CLXMNMIS.js} +8 -7
- package/dist/{chunk-4PHPENKX.js → chunk-E3IFHX6A.js} +27 -377
- package/dist/{chunk-4JPW5U5I.js → chunk-E4W7LB37.js} +53 -54
- package/dist/{chunk-CYXZHBP4.js → chunk-F4TPY6YL.js} +14 -3
- package/dist/chunk-G2TDX3W6.js +5 -0
- package/dist/chunk-IIMU5YAJ.js +53 -0
- package/dist/{chunk-W4VYXIN7.js → chunk-L4XXM55J.js} +3 -142
- package/dist/{chunk-KGEYEUR5.js → chunk-MOHVG62K.js} +7 -6
- package/dist/{chunk-F5QSLYUB.js → chunk-N47Z6LD4.js} +317 -1060
- package/dist/{chunk-47YILFON.js → chunk-OS5GFW2O.js} +156 -141
- package/dist/chunk-P5VHGY5P.js +13 -0
- package/dist/chunk-R7WLWGPO.js +126 -0
- package/dist/{chunk-Y3D3WFJG.js → chunk-SQQGLGHW.js} +2 -11
- package/dist/{chunk-KFICYU6S.js → chunk-STZJ7SY5.js} +1 -1
- package/dist/chunk-SZHARWKU.js +15 -0
- package/dist/{chunk-7PDDPNQS.js → chunk-TSX4I3NW.js} +3 -3
- package/dist/{chunk-CTWYIRKW.js → chunk-U23TW6NP.js} +24 -34
- package/dist/{chunk-OPT74SGF.js → chunk-USVBMGMP.js} +26 -172
- package/dist/chunk-V7XHGJQZ.js +145 -0
- package/dist/{chunk-UE5QQDCR.js → chunk-WHQXDETX.js} +5 -5
- package/dist/{chunk-ZZ35VSNF.js → chunk-YQLE5HR5.js} +4 -4
- package/dist/{chunk-VNUOQQNY.js → chunk-Z3OWD3A4.js} +2 -2
- package/dist/components/index.d.ts +6 -253
- package/dist/components/index.js +31 -25
- package/dist/features/auth/index.d.ts +0 -107
- package/dist/features/auth/index.js +0 -1
- package/dist/features/crm/index.d.ts +3 -136
- package/dist/features/crm/index.js +14 -9
- package/dist/features/dashboard/index.js +13 -9
- package/dist/features/delivery/index.d.ts +3 -137
- package/dist/features/delivery/index.js +15 -9
- package/dist/features/lead-gen/index.d.ts +3 -29
- package/dist/features/lead-gen/index.js +20 -14
- package/dist/features/monitoring/index.d.ts +3 -30
- package/dist/features/monitoring/index.js +14 -10
- package/dist/features/operations/index.d.ts +18 -1323
- package/dist/features/operations/index.js +18 -13
- package/dist/features/seo/index.d.ts +3 -30
- package/dist/features/seo/index.js +3 -2
- package/dist/features/settings/index.d.ts +6 -146
- package/dist/features/settings/index.js +13 -9
- package/dist/hooks/index.d.ts +10 -1403
- package/dist/hooks/index.js +11 -7
- package/dist/hooks/published.d.ts +10 -1403
- package/dist/hooks/published.js +11 -7
- package/dist/index.d.ts +96 -1510
- package/dist/index.js +12 -8
- package/dist/initialization/index.d.ts +3 -117
- package/dist/layout/index.d.ts +12 -2
- package/dist/layout/index.js +5 -4
- package/dist/organization/index.d.ts +3 -10
- package/dist/organization/index.js +2 -1
- package/dist/profile/index.d.ts +0 -107
- package/dist/provider/index.d.ts +44 -65
- package/dist/provider/index.js +10 -6
- package/dist/provider/published.d.ts +44 -65
- package/dist/provider/published.js +6 -3
- package/dist/supabase/index.d.ts +0 -209
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.js +3 -3
- package/dist/typeform/index.js +10 -10
- package/dist/types/index.d.ts +68 -1738
- package/package.json +20 -4
- package/src/app/README.md +24 -0
- package/src/provider/README.md +8 -7
- package/dist/chunk-IDACMRGQ.js +0 -115
package/dist/provider/index.js
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
|
|
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-
|
|
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-
|
|
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' | '
|
|
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
|
-
|
|
306
|
-
|
|
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
|
|
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
|
-
|
|
354
|
-
|
|
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
|
-
['
|
|
360
|
-
`
|
|
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.
|
|
348
|
+
if (!surface.featureIds.includes(feature.id)) {
|
|
366
349
|
addIssue(
|
|
367
350
|
ctx,
|
|
368
|
-
['
|
|
369
|
-
`
|
|
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
|
-
|
|
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
|
-
['
|
|
380
|
-
`
|
|
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.
|
|
369
|
+
if (!resourceMapping.featureIds.includes(feature.id)) {
|
|
386
370
|
addIssue(
|
|
387
371
|
ctx,
|
|
388
|
-
['
|
|
389
|
-
`
|
|
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.
|
|
405
|
-
const
|
|
406
|
-
if (!
|
|
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, '
|
|
410
|
-
`Surface "${surface.id}" references unknown
|
|
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 (!
|
|
400
|
+
if (!feature.surfaceIds.includes(surface.id)) {
|
|
416
401
|
addIssue(
|
|
417
402
|
ctx,
|
|
418
|
-
['navigation', 'surfaces', surfaceIndex, '
|
|
419
|
-
`Surface "${surface.id}" references
|
|
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.
|
|
447
|
-
const
|
|
448
|
-
if (!
|
|
433
|
+
resourceMapping.featureIds.forEach((featureId, featureIndex) => {
|
|
434
|
+
const feature = featuresById.get(featureId)
|
|
435
|
+
if (!feature) {
|
|
449
436
|
addIssue(
|
|
450
437
|
ctx,
|
|
451
|
-
['resourceMappings', resourceIndex, '
|
|
452
|
-
`Resource mapping "${resourceMapping.id}" references unknown
|
|
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 (!
|
|
444
|
+
if (!feature.resourceIds.includes(resourceMapping.resourceId)) {
|
|
458
445
|
addIssue(
|
|
459
446
|
ctx,
|
|
460
|
-
['resourceMappings', resourceIndex, '
|
|
461
|
-
`Resource mapping "${resourceMapping.id}" references
|
|
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'`, `'
|
|
525
|
+
/** Unique stable identifier for this feature (e.g. `'crm'`, `'projects'`). */
|
|
541
526
|
key: string;
|
|
542
|
-
/** Feature
|
|
543
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
595
|
+
featureId?: string;
|
|
617
596
|
}
|
|
618
597
|
interface ElevasisFeaturesProviderProps {
|
|
619
598
|
features: FeatureModule[];
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ElevasisFeaturesProvider, FeatureShell, useElevasisFeatures, useOptionalElevasisFeatures } from '../chunk-USVBMGMP.js';
|
|
2
2
|
import '../chunk-RX4UWZZR.js';
|
|
3
|
-
import '../chunk-
|
|
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-
|
|
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';
|
package/dist/supabase/index.d.ts
CHANGED
|
@@ -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;
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -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' | '
|
|
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];
|
package/dist/theme/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { useAvailablePresets } from '../chunk-
|
|
2
|
-
export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride, PRESETS as presets, usePresetsContext } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
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';
|
package/dist/typeform/index.js
CHANGED
|
@@ -1213,7 +1213,7 @@ function TypeformArrayField({
|
|
|
1213
1213
|
withBorder: true,
|
|
1214
1214
|
padding: "md",
|
|
1215
1215
|
style: {
|
|
1216
|
-
backgroundColor: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
1431
|
+
return /* @__PURE__ */ jsx(Text, { style: { color: "var(--color-text)" }, children: parseMarkdown(content) }, question.id);
|
|
1432
1432
|
}
|
|
1433
1433
|
};
|
|
1434
1434
|
const renderField = (question) => {
|