@confed/sanity-types 0.1.3-2511261846 → 0.1.3-2512021538

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 (2) hide show
  1. package/package.json +1 -1
  2. package/sanity.types.ts +77 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@confed/sanity-types",
3
- "version": "0.1.3-2511261846",
3
+ "version": "0.1.3-2512021538",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
package/sanity.types.ts CHANGED
@@ -329,12 +329,11 @@ export type PtSimple = Array<{
329
329
  }>
330
330
  style?: 'normal'
331
331
  listItem?: 'bullet' | 'number'
332
- markDefs?: Array<{
333
- href?: string
334
- openInNewTab?: boolean
335
- _type: 'link'
336
- _key: string
337
- }>
332
+ markDefs?: Array<
333
+ {
334
+ _key: string
335
+ } & Link
336
+ >
338
337
  level?: number
339
338
  _type: 'block'
340
339
  _key: string
@@ -351,12 +350,9 @@ export type PtBasic = Array<
351
350
  style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
352
351
  listItem?: 'bullet' | 'number'
353
352
  markDefs?: Array<
354
- | {
355
- href?: string
356
- openInNewTab?: boolean
357
- _type: 'link'
353
+ | ({
358
354
  _key: string
359
- }
355
+ } & Link)
360
356
  | {
361
357
  id: string
362
358
  _type: 'anchor'
@@ -413,6 +409,43 @@ export type PtBasic = Array<
413
409
  }
414
410
  >
415
411
 
412
+ export type PtLink = {
413
+ _type: 'ptLink'
414
+ internalPage?:
415
+ | {
416
+ _ref: string
417
+ _type: 'reference'
418
+ _weak?: boolean
419
+ [internalGroqTypeReferenceTo]?: 'webpage'
420
+ }
421
+ | {
422
+ _ref: string
423
+ _type: 'reference'
424
+ _weak?: boolean
425
+ [internalGroqTypeReferenceTo]?: 'program'
426
+ }
427
+ | {
428
+ _ref: string
429
+ _type: 'reference'
430
+ _weak?: boolean
431
+ [internalGroqTypeReferenceTo]?: 'campus'
432
+ }
433
+ | {
434
+ _ref: string
435
+ _type: 'reference'
436
+ _weak?: boolean
437
+ [internalGroqTypeReferenceTo]?: 'school'
438
+ }
439
+ | {
440
+ _ref: string
441
+ _type: 'reference'
442
+ _weak?: boolean
443
+ [internalGroqTypeReferenceTo]?: 'person'
444
+ }
445
+ href?: string
446
+ openInNewTab?: boolean
447
+ }
448
+
416
449
  export type PtButton = {
417
450
  _type: 'ptButton'
418
451
  variant?: 'primary' | 'outlined'
@@ -610,6 +643,38 @@ export type NewsArticle = {
610
643
  slug: Slug
611
644
  mainImage?: AccessibleImage
612
645
  body?: PtBasic
646
+ pageBuilder?: Array<
647
+ | ({
648
+ _key: string
649
+ } & MediaTextSection)
650
+ | ({
651
+ _key: string
652
+ } & HeaderSection)
653
+ | ({
654
+ _key: string
655
+ } & FaqSection)
656
+ | ({
657
+ _key: string
658
+ } & GallerySection)
659
+ | ({
660
+ _key: string
661
+ } & RichTextSection)
662
+ | ({
663
+ _key: string
664
+ } & CardGridSection)
665
+ | ({
666
+ _key: string
667
+ } & ProgramGridSection)
668
+ | ({
669
+ _key: string
670
+ } & CallToActionSection)
671
+ | ({
672
+ _key: string
673
+ } & SimpleCallToActionSection)
674
+ | ({
675
+ _key: string
676
+ } & RelatedLinksSection)
677
+ >
613
678
  categories: Array<'media' | 'students' | 'employee' | 'alumni'>
614
679
  dateCreated?: string
615
680
  seo?: Seo
@@ -1256,6 +1321,7 @@ export type AllSanitySchemaTypes =
1256
1321
  | AccessibleImage
1257
1322
  | PtSimple
1258
1323
  | PtBasic
1324
+ | PtLink
1259
1325
  | PtButton
1260
1326
  | Figure
1261
1327
  | SanityImageCrop