@confed/sanity-types 0.1.3-2511261850 → 0.1.3-2512021607
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/package.json +1 -1
- package/sanity.types.ts +51 -11
package/package.json
CHANGED
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
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
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,49 @@ 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
|
+
| {
|
|
446
|
+
_ref: string
|
|
447
|
+
_type: 'reference'
|
|
448
|
+
_weak?: boolean
|
|
449
|
+
[internalGroqTypeReferenceTo]?: 'programFile'
|
|
450
|
+
}
|
|
451
|
+
href?: string
|
|
452
|
+
openInNewTab?: boolean
|
|
453
|
+
}
|
|
454
|
+
|
|
416
455
|
export type PtButton = {
|
|
417
456
|
_type: 'ptButton'
|
|
418
457
|
variant?: 'primary' | 'outlined'
|
|
@@ -1288,6 +1327,7 @@ export type AllSanitySchemaTypes =
|
|
|
1288
1327
|
| AccessibleImage
|
|
1289
1328
|
| PtSimple
|
|
1290
1329
|
| PtBasic
|
|
1330
|
+
| PtLink
|
|
1291
1331
|
| PtButton
|
|
1292
1332
|
| Figure
|
|
1293
1333
|
| SanityImageCrop
|