@prosophia/lab-techy 0.0.3 → 0.0.5

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.
@@ -0,0 +1,461 @@
1
+ import * as sanity from 'sanity';
2
+ import { PortableTextBlock } from '@portabletext/types';
3
+
4
+ declare const schemaTypes: (({
5
+ type: "object";
6
+ name: "link";
7
+ } & Omit<sanity.ObjectDefinition, "preview"> & {
8
+ preview?: sanity.PreviewConfig<{
9
+ title: string;
10
+ subtitle: string;
11
+ }, Record<"title" | "subtitle", any>> | undefined;
12
+ }) | ({
13
+ type: "object";
14
+ name: "socialLink";
15
+ } & Omit<sanity.ObjectDefinition, "preview"> & {
16
+ preview?: sanity.PreviewConfig<{
17
+ title: string;
18
+ subtitle: string;
19
+ }, Record<"title" | "subtitle", any>> | undefined;
20
+ }) | ({
21
+ type: "object";
22
+ name: "stat";
23
+ } & Omit<sanity.ObjectDefinition, "preview"> & {
24
+ preview?: sanity.PreviewConfig<{
25
+ title: string;
26
+ subtitle: string;
27
+ }, Record<"title" | "subtitle", any>> | undefined;
28
+ }) | ({
29
+ type: "object";
30
+ name: "researchArea";
31
+ } & Omit<sanity.ObjectDefinition, "preview"> & {
32
+ preview?: sanity.PreviewConfig<{
33
+ title: string;
34
+ subtitle: string;
35
+ }, Record<"title" | "subtitle", any>> | undefined;
36
+ }) | ({
37
+ type: "object";
38
+ name: "ctaButton";
39
+ } & Omit<sanity.ObjectDefinition, "preview"> & {
40
+ preview?: sanity.PreviewConfig<{
41
+ title: string;
42
+ subtitle: string;
43
+ }, Record<"title" | "subtitle", any>> | undefined;
44
+ }) | ({
45
+ type: "array";
46
+ name: "portableText";
47
+ } & Omit<sanity.ArrayDefinition, "preview">) | ({
48
+ type: "document";
49
+ name: "publication";
50
+ } & Omit<sanity.DocumentDefinition, "preview"> & {
51
+ preview?: sanity.PreviewConfig<{
52
+ title: string;
53
+ venue: string;
54
+ year: string;
55
+ }, Record<"title" | "venue" | "year", any>> | undefined;
56
+ }) | ({
57
+ type: "document";
58
+ name: "teamMember";
59
+ } & Omit<sanity.DocumentDefinition, "preview"> & {
60
+ preview?: sanity.PreviewConfig<{
61
+ title: string;
62
+ subtitle: string;
63
+ media: string;
64
+ }, Record<"title" | "media" | "subtitle", any>> | undefined;
65
+ }) | ({
66
+ type: "document";
67
+ name: "newsArticle";
68
+ } & Omit<sanity.DocumentDefinition, "preview"> & {
69
+ preview?: sanity.PreviewConfig<{
70
+ title: string;
71
+ date: string;
72
+ media: string;
73
+ featured: string;
74
+ }, Record<"date" | "title" | "media" | "featured", any>> | undefined;
75
+ }) | ({
76
+ type: "document";
77
+ name: "galleryItem";
78
+ } & Omit<sanity.DocumentDefinition, "preview"> & {
79
+ preview?: sanity.PreviewConfig<{
80
+ title: string;
81
+ subtitle: string;
82
+ media: string;
83
+ }, Record<"title" | "media" | "subtitle", any>> | undefined;
84
+ }) | ({
85
+ type: "document";
86
+ name: "researchProject";
87
+ } & Omit<sanity.DocumentDefinition, "preview"> & {
88
+ preview?: sanity.PreviewConfig<{
89
+ title: string;
90
+ status: string;
91
+ media: string;
92
+ }, Record<"title" | "media" | "status", any>> | undefined;
93
+ }) | ({
94
+ type: "document";
95
+ name: "event";
96
+ } & Omit<sanity.DocumentDefinition, "preview"> & {
97
+ preview?: sanity.PreviewConfig<{
98
+ title: string;
99
+ date: string;
100
+ type: string;
101
+ media: string;
102
+ }, Record<"date" | "type" | "title" | "media", any>> | undefined;
103
+ }) | ({
104
+ type: "document";
105
+ name: "siteSettings";
106
+ } & Omit<sanity.DocumentDefinition, "preview"> & {
107
+ preview?: sanity.PreviewConfig<Record<string, string>, Record<never, any>> | undefined;
108
+ }))[];
109
+
110
+ declare const _default$c: {
111
+ type: "object";
112
+ name: "link";
113
+ } & Omit<sanity.ObjectDefinition, "preview"> & {
114
+ preview?: sanity.PreviewConfig<{
115
+ title: string;
116
+ subtitle: string;
117
+ }, Record<"title" | "subtitle", any>> | undefined;
118
+ };
119
+
120
+ declare const _default$b: {
121
+ type: "object";
122
+ name: "socialLink";
123
+ } & Omit<sanity.ObjectDefinition, "preview"> & {
124
+ preview?: sanity.PreviewConfig<{
125
+ title: string;
126
+ subtitle: string;
127
+ }, Record<"title" | "subtitle", any>> | undefined;
128
+ };
129
+
130
+ declare const _default$a: {
131
+ type: "object";
132
+ name: "stat";
133
+ } & Omit<sanity.ObjectDefinition, "preview"> & {
134
+ preview?: sanity.PreviewConfig<{
135
+ title: string;
136
+ subtitle: string;
137
+ }, Record<"title" | "subtitle", any>> | undefined;
138
+ };
139
+
140
+ declare const _default$9: {
141
+ type: "object";
142
+ name: "researchArea";
143
+ } & Omit<sanity.ObjectDefinition, "preview"> & {
144
+ preview?: sanity.PreviewConfig<{
145
+ title: string;
146
+ subtitle: string;
147
+ }, Record<"title" | "subtitle", any>> | undefined;
148
+ };
149
+
150
+ declare const _default$8: {
151
+ type: "object";
152
+ name: "ctaButton";
153
+ } & Omit<sanity.ObjectDefinition, "preview"> & {
154
+ preview?: sanity.PreviewConfig<{
155
+ title: string;
156
+ subtitle: string;
157
+ }, Record<"title" | "subtitle", any>> | undefined;
158
+ };
159
+
160
+ declare const _default$7: {
161
+ type: "array";
162
+ name: "portableText";
163
+ } & Omit<sanity.ArrayDefinition, "preview">;
164
+
165
+ declare const _default$6: {
166
+ type: "document";
167
+ name: "publication";
168
+ } & Omit<sanity.DocumentDefinition, "preview"> & {
169
+ preview?: sanity.PreviewConfig<{
170
+ title: string;
171
+ venue: string;
172
+ year: string;
173
+ }, Record<"title" | "venue" | "year", any>> | undefined;
174
+ };
175
+
176
+ declare const _default$5: {
177
+ type: "document";
178
+ name: "teamMember";
179
+ } & Omit<sanity.DocumentDefinition, "preview"> & {
180
+ preview?: sanity.PreviewConfig<{
181
+ title: string;
182
+ subtitle: string;
183
+ media: string;
184
+ }, Record<"title" | "media" | "subtitle", any>> | undefined;
185
+ };
186
+
187
+ declare const _default$4: {
188
+ type: "document";
189
+ name: "newsArticle";
190
+ } & Omit<sanity.DocumentDefinition, "preview"> & {
191
+ preview?: sanity.PreviewConfig<{
192
+ title: string;
193
+ date: string;
194
+ media: string;
195
+ featured: string;
196
+ }, Record<"date" | "title" | "media" | "featured", any>> | undefined;
197
+ };
198
+
199
+ declare const _default$3: {
200
+ type: "document";
201
+ name: "galleryItem";
202
+ } & Omit<sanity.DocumentDefinition, "preview"> & {
203
+ preview?: sanity.PreviewConfig<{
204
+ title: string;
205
+ subtitle: string;
206
+ media: string;
207
+ }, Record<"title" | "media" | "subtitle", any>> | undefined;
208
+ };
209
+
210
+ declare const _default$2: {
211
+ type: "document";
212
+ name: "researchProject";
213
+ } & Omit<sanity.DocumentDefinition, "preview"> & {
214
+ preview?: sanity.PreviewConfig<{
215
+ title: string;
216
+ status: string;
217
+ media: string;
218
+ }, Record<"title" | "media" | "status", any>> | undefined;
219
+ };
220
+
221
+ declare const _default$1: {
222
+ type: "document";
223
+ name: "event";
224
+ } & Omit<sanity.DocumentDefinition, "preview"> & {
225
+ preview?: sanity.PreviewConfig<{
226
+ title: string;
227
+ date: string;
228
+ type: string;
229
+ media: string;
230
+ }, Record<"date" | "type" | "title" | "media", any>> | undefined;
231
+ };
232
+
233
+ declare const _default: {
234
+ type: "document";
235
+ name: "siteSettings";
236
+ } & Omit<sanity.DocumentDefinition, "preview"> & {
237
+ preview?: sanity.PreviewConfig<Record<string, string>, Record<never, any>> | undefined;
238
+ };
239
+
240
+ interface SanityDocument {
241
+ _id: string;
242
+ _type: string;
243
+ _createdAt: string;
244
+ _updatedAt: string;
245
+ }
246
+ interface SanityImage {
247
+ _type: 'image';
248
+ asset: {
249
+ _ref: string;
250
+ _type: 'reference';
251
+ };
252
+ hotspot?: {
253
+ x: number;
254
+ y: number;
255
+ height: number;
256
+ width: number;
257
+ };
258
+ crop?: {
259
+ top: number;
260
+ bottom: number;
261
+ left: number;
262
+ right: number;
263
+ };
264
+ alt?: string;
265
+ caption?: string;
266
+ }
267
+ interface SanityColor {
268
+ _type: 'color';
269
+ hex: string;
270
+ alpha?: number;
271
+ hsl?: {
272
+ h: number;
273
+ s: number;
274
+ l: number;
275
+ a: number;
276
+ };
277
+ hsv?: {
278
+ h: number;
279
+ s: number;
280
+ v: number;
281
+ a: number;
282
+ };
283
+ rgb?: {
284
+ r: number;
285
+ g: number;
286
+ b: number;
287
+ a: number;
288
+ };
289
+ }
290
+ interface Link {
291
+ label: string;
292
+ url: string;
293
+ }
294
+ interface SocialLink {
295
+ platform: 'twitter' | 'linkedin' | 'github' | 'scholar' | 'orcid' | 'website' | 'email' | 'youtube' | 'instagram';
296
+ url: string;
297
+ }
298
+ interface Stat {
299
+ value: string;
300
+ label: string;
301
+ }
302
+ interface ResearchArea {
303
+ icon: string;
304
+ title: string;
305
+ description: string;
306
+ }
307
+ interface CtaButton {
308
+ label: string;
309
+ href: string;
310
+ variant: 'primary' | 'secondary';
311
+ }
312
+ interface NavItem {
313
+ label: string;
314
+ href: string;
315
+ }
316
+ interface Publication extends SanityDocument {
317
+ _type: 'publication';
318
+ title: string;
319
+ authors: string[];
320
+ venue: string;
321
+ venueType: 'conference' | 'journal' | 'workshop';
322
+ venueColor: 'blue' | 'purple' | 'amber' | 'rose' | 'green';
323
+ year: number;
324
+ oral: boolean;
325
+ links?: {
326
+ label: string;
327
+ url: string;
328
+ }[];
329
+ abstract?: string;
330
+ }
331
+ interface TeamMember extends SanityDocument {
332
+ _type: 'teamMember';
333
+ name: string;
334
+ role: string;
335
+ category: 'pi' | 'postdoc' | 'phd' | 'masters' | 'undergrad' | 'staff' | 'alumni';
336
+ image?: SanityImage;
337
+ bio?: string;
338
+ extendedBio?: PortableTextBlock[];
339
+ isAlumni: boolean;
340
+ graduationYear?: number;
341
+ currentPosition?: string;
342
+ socialLinks?: SocialLink[];
343
+ email?: string;
344
+ order?: number;
345
+ }
346
+ interface NewsArticle extends SanityDocument {
347
+ _type: 'newsArticle';
348
+ title: string;
349
+ slug: string;
350
+ excerpt: string;
351
+ image: SanityImage;
352
+ date: string;
353
+ author?: {
354
+ name: string;
355
+ role: string;
356
+ image?: SanityImage;
357
+ };
358
+ tags?: string[];
359
+ filterCategory: 'publications' | 'grants' | 'events' | 'general';
360
+ displayCategory?: string;
361
+ featured: boolean;
362
+ readTime?: string;
363
+ content?: PortableTextBlock[];
364
+ }
365
+ interface GalleryItem extends SanityDocument {
366
+ _type: 'galleryItem';
367
+ title: string;
368
+ description: string;
369
+ category: string;
370
+ categoryColor: 'blue' | 'purple' | 'emerald';
371
+ image: SanityImage;
372
+ featured: boolean;
373
+ wide: boolean;
374
+ tall: boolean;
375
+ order?: number;
376
+ }
377
+ interface ResearchProject extends SanityDocument {
378
+ _type: 'researchProject';
379
+ title: string;
380
+ slug: string;
381
+ description: string;
382
+ fullDescription?: PortableTextBlock[];
383
+ image?: SanityImage;
384
+ status: 'active' | 'completed' | 'onhold';
385
+ startDate?: string;
386
+ endDate?: string;
387
+ tags?: string[];
388
+ teamMembers?: Pick<TeamMember, '_id' | 'name' | 'role' | 'image'>[];
389
+ publications?: Pick<Publication, '_id' | 'title' | 'authors' | 'venue' | 'year' | 'links'>[];
390
+ externalLinks?: Link[];
391
+ order?: number;
392
+ }
393
+ interface Event extends SanityDocument {
394
+ _type: 'event';
395
+ title: string;
396
+ slug: string;
397
+ description?: PortableTextBlock[];
398
+ excerpt?: string;
399
+ date: string;
400
+ endDate?: string;
401
+ location?: string;
402
+ type?: 'seminar' | 'conference' | 'workshop' | 'social' | 'openhouse' | 'defense' | 'lecture';
403
+ image?: SanityImage;
404
+ registrationUrl?: string;
405
+ speakers?: Pick<TeamMember, '_id' | 'name' | 'image'>[];
406
+ externalSpeakers?: {
407
+ name: string;
408
+ affiliation: string;
409
+ }[];
410
+ }
411
+ interface SiteSettings {
412
+ labName: string;
413
+ tagline?: string;
414
+ logo?: SanityImage;
415
+ siteDescription?: string;
416
+ heroTitle?: string;
417
+ heroHighlight?: string;
418
+ heroSubtitle?: string;
419
+ heroButtons?: CtaButton[];
420
+ heroImage?: SanityImage;
421
+ stats?: Stat[];
422
+ researchAreas?: ResearchArea[];
423
+ email?: string;
424
+ phone?: string;
425
+ address?: string;
426
+ mapImage?: SanityImage;
427
+ socialLinks?: SocialLink[];
428
+ mainNavigation?: NavItem[];
429
+ primaryColor?: SanityColor;
430
+ primaryDarkColor?: SanityColor;
431
+ fontFamily?: string;
432
+ footerText?: string;
433
+ footerLinks?: Link[];
434
+ }
435
+ interface HomepageData {
436
+ settings: Pick<SiteSettings, 'labName' | 'heroTitle' | 'heroHighlight' | 'heroSubtitle' | 'heroButtons' | 'heroImage' | 'stats' | 'researchAreas'>;
437
+ recentPublications: Pick<Publication, '_id' | 'title' | 'authors' | 'venue' | 'year' | 'links'>[];
438
+ recentNews: Pick<NewsArticle, '_id' | 'title' | 'slug' | 'excerpt' | 'image' | 'date' | 'displayCategory'>[];
439
+ }
440
+ interface NavigationData {
441
+ labName: string;
442
+ logo?: SanityImage;
443
+ mainNavigation?: NavItem[];
444
+ }
445
+ interface FooterData {
446
+ labName: string;
447
+ footerText?: string;
448
+ socialLinks?: SocialLink[];
449
+ footerLinks?: Link[];
450
+ email?: string;
451
+ address?: string;
452
+ }
453
+ interface ContactPageData {
454
+ email?: string;
455
+ phone?: string;
456
+ address?: string;
457
+ mapImage?: SanityImage;
458
+ socialLinks?: SocialLink[];
459
+ }
460
+
461
+ export { type ContactPageData, type CtaButton, type Event, type FooterData, type GalleryItem, type HomepageData, type Link, type NavItem, type NavigationData, type NewsArticle, type Publication, type ResearchArea, type ResearchProject, type SanityColor, type SanityDocument, type SanityImage, type SiteSettings, type SocialLink, type Stat, type TeamMember, _default$8 as ctaButton, _default$1 as event, _default$3 as galleryItem, _default$c as link, _default$4 as newsArticle, _default$7 as portableText, _default$6 as publication, _default$9 as researchArea, _default$2 as researchProject, schemaTypes, schemaTypes as schemas, _default as siteSettings, _default$b as socialLink, _default$a as stat, _default$5 as teamMember };