@confed/sanity-types 0.1.3-2511261850 → 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.
- package/package.json +1 -1
- package/sanity.types.ts +45 -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,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'
|
|
@@ -1288,6 +1321,7 @@ export type AllSanitySchemaTypes =
|
|
|
1288
1321
|
| AccessibleImage
|
|
1289
1322
|
| PtSimple
|
|
1290
1323
|
| PtBasic
|
|
1324
|
+
| PtLink
|
|
1291
1325
|
| PtButton
|
|
1292
1326
|
| Figure
|
|
1293
1327
|
| SanityImageCrop
|