@prismicio/types-internal 2.8.0 → 2.9.0-alpha.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/lib/_internal/utils.d.ts +3 -2
- package/lib/content/Document.d.ts +1369 -61
- package/lib/content/LegacyContentCtx.d.ts +15 -0
- package/lib/content/fields/RepeatableContent.d.ts +236 -0
- package/lib/content/fields/RepeatableContent.js +97 -0
- package/lib/content/fields/WidgetContent.d.ts +1369 -61
- package/lib/content/fields/nestable/LinkContent.d.ts +23 -0
- package/lib/content/fields/nestable/LinkContent.js +23 -0
- package/lib/content/fields/nestable/NestableContent.d.ts +220 -2
- package/lib/content/fields/nestable/NestableContent.js +21 -2
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +66 -66
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +438 -2
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +74 -0
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +440 -4
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +220 -2
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +221 -3
- package/lib/content/fields/slices/Slice/index.d.ts +735 -5
- package/lib/content/fields/slices/SliceItem.d.ts +734 -4
- package/lib/content/fields/slices/SlicesContent.d.ts +1098 -8
- package/lib/customtypes/CustomType.d.ts +18 -0
- package/lib/customtypes/Section.d.ts +18 -0
- package/lib/customtypes/diff/SharedSlice.d.ts +8 -0
- package/lib/customtypes/diff/Variation.d.ts +8 -0
- package/lib/customtypes/widgets/Group.d.ts +6 -0
- package/lib/customtypes/widgets/Widget.d.ts +36 -0
- package/lib/customtypes/widgets/Widget.js +15 -0
- package/lib/customtypes/widgets/nestable/Link.d.ts +2 -0
- package/lib/customtypes/widgets/nestable/Link.js +5 -1
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +3 -1
- package/lib/customtypes/widgets/nestable/NestableWidget.js +18 -1
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +2 -0
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +2 -0
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +8 -0
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +6 -0
- package/lib/customtypes/widgets/slices/Slices.d.ts +28 -0
- package/package.json +1 -1
- package/src/_internal/utils.ts +3 -1
- package/src/content/fields/RepeatableContent.ts +156 -0
- package/src/content/fields/nestable/LinkContent.ts +24 -0
- package/src/content/fields/nestable/NestableContent.ts +28 -3
- package/src/customtypes/widgets/Widget.ts +15 -0
- package/src/customtypes/widgets/nestable/Link.ts +5 -1
- package/src/customtypes/widgets/nestable/NestableWidget.ts +34 -16
|
@@ -422,6 +422,80 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
422
422
|
}>]>>]>>;
|
|
423
423
|
}>>, t.ExactC<t.TypeC<{
|
|
424
424
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
425
|
+
}>>, t.ExactC<t.TypeC<{
|
|
426
|
+
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
427
|
+
type: t.UnionC<[t.LiteralC<"Color">, t.LiteralC<"Boolean">, t.LiteralC<"Embed">, t.LiteralC<"GeoPoint">, t.LiteralC<"Date">, t.LiteralC<"Number">, t.LiteralC<"Range">, t.LiteralC<"StructuredText">, t.LiteralC<"Select">, t.LiteralC<"Separator">, t.LiteralC<"Text">, t.LiteralC<"Timestamp">, t.LiteralC<"Link">, t.LiteralC<"Image">, t.LiteralC<"IntegrationFields">]>;
|
|
428
|
+
value: t.ArrayC<t.ExactC<t.TypeC<{
|
|
429
|
+
__TYPE__: t.LiteralC<"LinkContent">;
|
|
430
|
+
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
431
|
+
__TYPE__: t.LiteralC<"ImageLink">;
|
|
432
|
+
}>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
433
|
+
kind: t.StringC;
|
|
434
|
+
id: t.StringC;
|
|
435
|
+
url: t.StringC;
|
|
436
|
+
height: t.StringC;
|
|
437
|
+
width: t.StringC;
|
|
438
|
+
size: t.StringC;
|
|
439
|
+
name: t.StringC;
|
|
440
|
+
}>>, t.ExactC<t.PartialC<{
|
|
441
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
442
|
+
}>>]>, t.ExactC<t.PartialC<{
|
|
443
|
+
text: t.StringC;
|
|
444
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
445
|
+
kind: t.LiteralC<"image">;
|
|
446
|
+
text: t.StringC;
|
|
447
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
448
|
+
__TYPE__: t.LiteralC<"FileLink">;
|
|
449
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
450
|
+
kind: t.StringC;
|
|
451
|
+
id: t.StringC;
|
|
452
|
+
url: t.StringC;
|
|
453
|
+
name: t.StringC;
|
|
454
|
+
size: t.StringC;
|
|
455
|
+
}>, t.PartialC<{
|
|
456
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
457
|
+
}>]>>, t.ExactC<t.PartialC<{
|
|
458
|
+
text: t.StringC;
|
|
459
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
460
|
+
kind: t.LiteralC<"file">;
|
|
461
|
+
text: t.StringC;
|
|
462
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
463
|
+
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
464
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
465
|
+
id: t.Type<string, string, unknown>;
|
|
466
|
+
}>>, t.ExactC<t.PartialC<{
|
|
467
|
+
text: t.StringC;
|
|
468
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
469
|
+
kind: t.LiteralC<"document">;
|
|
470
|
+
text: t.StringC;
|
|
471
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
472
|
+
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
473
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
474
|
+
url: t.StringC;
|
|
475
|
+
}>, t.PartialC<{
|
|
476
|
+
kind: t.LiteralC<"web">;
|
|
477
|
+
target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
478
|
+
preview: t.UnionC<[t.Type<{
|
|
479
|
+
title?: string;
|
|
480
|
+
}, {
|
|
481
|
+
title?: string;
|
|
482
|
+
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
483
|
+
}>]>>, t.ExactC<t.PartialC<{
|
|
484
|
+
text: t.StringC;
|
|
485
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
486
|
+
kind: t.LiteralC<"web">;
|
|
487
|
+
text: t.StringC;
|
|
488
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
489
|
+
__TYPE__: t.LiteralC<"MediaLink">;
|
|
490
|
+
}>>, t.ExactC<t.TypeC<{
|
|
491
|
+
kind: t.LiteralC<"media">;
|
|
492
|
+
text: t.StringC;
|
|
493
|
+
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
494
|
+
__TYPE__: t.LiteralC<"AnyLink">;
|
|
495
|
+
}>>, t.ExactC<t.TypeC<{
|
|
496
|
+
text: t.StringC;
|
|
497
|
+
}>>]>]>;
|
|
498
|
+
}>>>;
|
|
425
499
|
}>>]>, t.TypeC<{
|
|
426
500
|
__TYPE__: t.LiteralC<"UIDContent">;
|
|
427
501
|
value: t.StringC;
|
|
@@ -854,6 +928,80 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
854
928
|
}>]>>]>>;
|
|
855
929
|
}>>, t.ExactC<t.TypeC<{
|
|
856
930
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
931
|
+
}>>, t.ExactC<t.TypeC<{
|
|
932
|
+
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
933
|
+
type: t.UnionC<[t.LiteralC<"Color">, t.LiteralC<"Boolean">, t.LiteralC<"Embed">, t.LiteralC<"GeoPoint">, t.LiteralC<"Date">, t.LiteralC<"Number">, t.LiteralC<"Range">, t.LiteralC<"StructuredText">, t.LiteralC<"Select">, t.LiteralC<"Separator">, t.LiteralC<"Text">, t.LiteralC<"Timestamp">, t.LiteralC<"Link">, t.LiteralC<"Image">, t.LiteralC<"IntegrationFields">]>;
|
|
934
|
+
value: t.ArrayC<t.ExactC<t.TypeC<{
|
|
935
|
+
__TYPE__: t.LiteralC<"LinkContent">;
|
|
936
|
+
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
937
|
+
__TYPE__: t.LiteralC<"ImageLink">;
|
|
938
|
+
}>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
939
|
+
kind: t.StringC;
|
|
940
|
+
id: t.StringC;
|
|
941
|
+
url: t.StringC;
|
|
942
|
+
height: t.StringC;
|
|
943
|
+
width: t.StringC;
|
|
944
|
+
size: t.StringC;
|
|
945
|
+
name: t.StringC;
|
|
946
|
+
}>>, t.ExactC<t.PartialC<{
|
|
947
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
948
|
+
}>>]>, t.ExactC<t.PartialC<{
|
|
949
|
+
text: t.StringC;
|
|
950
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
951
|
+
kind: t.LiteralC<"image">;
|
|
952
|
+
text: t.StringC;
|
|
953
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
954
|
+
__TYPE__: t.LiteralC<"FileLink">;
|
|
955
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
956
|
+
kind: t.StringC;
|
|
957
|
+
id: t.StringC;
|
|
958
|
+
url: t.StringC;
|
|
959
|
+
name: t.StringC;
|
|
960
|
+
size: t.StringC;
|
|
961
|
+
}>, t.PartialC<{
|
|
962
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
963
|
+
}>]>>, t.ExactC<t.PartialC<{
|
|
964
|
+
text: t.StringC;
|
|
965
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
966
|
+
kind: t.LiteralC<"file">;
|
|
967
|
+
text: t.StringC;
|
|
968
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
969
|
+
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
970
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
971
|
+
id: t.Type<string, string, unknown>;
|
|
972
|
+
}>>, t.ExactC<t.PartialC<{
|
|
973
|
+
text: t.StringC;
|
|
974
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
975
|
+
kind: t.LiteralC<"document">;
|
|
976
|
+
text: t.StringC;
|
|
977
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
978
|
+
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
979
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
980
|
+
url: t.StringC;
|
|
981
|
+
}>, t.PartialC<{
|
|
982
|
+
kind: t.LiteralC<"web">;
|
|
983
|
+
target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
984
|
+
preview: t.UnionC<[t.Type<{
|
|
985
|
+
title?: string;
|
|
986
|
+
}, {
|
|
987
|
+
title?: string;
|
|
988
|
+
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
989
|
+
}>]>>, t.ExactC<t.PartialC<{
|
|
990
|
+
text: t.StringC;
|
|
991
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
992
|
+
kind: t.LiteralC<"web">;
|
|
993
|
+
text: t.StringC;
|
|
994
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
995
|
+
__TYPE__: t.LiteralC<"MediaLink">;
|
|
996
|
+
}>>, t.ExactC<t.TypeC<{
|
|
997
|
+
kind: t.LiteralC<"media">;
|
|
998
|
+
text: t.StringC;
|
|
999
|
+
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1000
|
+
__TYPE__: t.LiteralC<"AnyLink">;
|
|
1001
|
+
}>>, t.ExactC<t.TypeC<{
|
|
1002
|
+
text: t.StringC;
|
|
1003
|
+
}>>]>]>;
|
|
1004
|
+
}>>>;
|
|
857
1005
|
}>>]>>;
|
|
858
1006
|
repeat: t.ArrayC<t.ExactC<t.TypeC<{
|
|
859
1007
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
@@ -1278,6 +1426,80 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
1278
1426
|
}>]>>]>>;
|
|
1279
1427
|
}>>, t.ExactC<t.TypeC<{
|
|
1280
1428
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
1429
|
+
}>>, t.ExactC<t.TypeC<{
|
|
1430
|
+
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
1431
|
+
type: t.UnionC<[t.LiteralC<"Color">, t.LiteralC<"Boolean">, t.LiteralC<"Embed">, t.LiteralC<"GeoPoint">, t.LiteralC<"Date">, t.LiteralC<"Number">, t.LiteralC<"Range">, t.LiteralC<"StructuredText">, t.LiteralC<"Select">, t.LiteralC<"Separator">, t.LiteralC<"Text">, t.LiteralC<"Timestamp">, t.LiteralC<"Link">, t.LiteralC<"Image">, t.LiteralC<"IntegrationFields">]>;
|
|
1432
|
+
value: t.ArrayC<t.ExactC<t.TypeC<{
|
|
1433
|
+
__TYPE__: t.LiteralC<"LinkContent">;
|
|
1434
|
+
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1435
|
+
__TYPE__: t.LiteralC<"ImageLink">;
|
|
1436
|
+
}>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1437
|
+
kind: t.StringC;
|
|
1438
|
+
id: t.StringC;
|
|
1439
|
+
url: t.StringC;
|
|
1440
|
+
height: t.StringC;
|
|
1441
|
+
width: t.StringC;
|
|
1442
|
+
size: t.StringC;
|
|
1443
|
+
name: t.StringC;
|
|
1444
|
+
}>>, t.ExactC<t.PartialC<{
|
|
1445
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1446
|
+
}>>]>, t.ExactC<t.PartialC<{
|
|
1447
|
+
text: t.StringC;
|
|
1448
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
1449
|
+
kind: t.LiteralC<"image">;
|
|
1450
|
+
text: t.StringC;
|
|
1451
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1452
|
+
__TYPE__: t.LiteralC<"FileLink">;
|
|
1453
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1454
|
+
kind: t.StringC;
|
|
1455
|
+
id: t.StringC;
|
|
1456
|
+
url: t.StringC;
|
|
1457
|
+
name: t.StringC;
|
|
1458
|
+
size: t.StringC;
|
|
1459
|
+
}>, t.PartialC<{
|
|
1460
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1461
|
+
}>]>>, t.ExactC<t.PartialC<{
|
|
1462
|
+
text: t.StringC;
|
|
1463
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
1464
|
+
kind: t.LiteralC<"file">;
|
|
1465
|
+
text: t.StringC;
|
|
1466
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1467
|
+
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
1468
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1469
|
+
id: t.Type<string, string, unknown>;
|
|
1470
|
+
}>>, t.ExactC<t.PartialC<{
|
|
1471
|
+
text: t.StringC;
|
|
1472
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
1473
|
+
kind: t.LiteralC<"document">;
|
|
1474
|
+
text: t.StringC;
|
|
1475
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1476
|
+
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
1477
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1478
|
+
url: t.StringC;
|
|
1479
|
+
}>, t.PartialC<{
|
|
1480
|
+
kind: t.LiteralC<"web">;
|
|
1481
|
+
target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1482
|
+
preview: t.UnionC<[t.Type<{
|
|
1483
|
+
title?: string;
|
|
1484
|
+
}, {
|
|
1485
|
+
title?: string;
|
|
1486
|
+
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
1487
|
+
}>]>>, t.ExactC<t.PartialC<{
|
|
1488
|
+
text: t.StringC;
|
|
1489
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
1490
|
+
kind: t.LiteralC<"web">;
|
|
1491
|
+
text: t.StringC;
|
|
1492
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1493
|
+
__TYPE__: t.LiteralC<"MediaLink">;
|
|
1494
|
+
}>>, t.ExactC<t.TypeC<{
|
|
1495
|
+
kind: t.LiteralC<"media">;
|
|
1496
|
+
text: t.StringC;
|
|
1497
|
+
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1498
|
+
__TYPE__: t.LiteralC<"AnyLink">;
|
|
1499
|
+
}>>, t.ExactC<t.TypeC<{
|
|
1500
|
+
text: t.StringC;
|
|
1501
|
+
}>>]>]>;
|
|
1502
|
+
}>>>;
|
|
1281
1503
|
}>>]>, t.Type<GroupContent, GroupContent, unknown>]>]>>;
|
|
1282
1504
|
}>>>;
|
|
1283
1505
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -1704,6 +1926,80 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
1704
1926
|
}>]>>]>>;
|
|
1705
1927
|
}>>, t.ExactC<t.TypeC<{
|
|
1706
1928
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
1929
|
+
}>>, t.ExactC<t.TypeC<{
|
|
1930
|
+
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
1931
|
+
type: t.UnionC<[t.LiteralC<"Color">, t.LiteralC<"Boolean">, t.LiteralC<"Embed">, t.LiteralC<"GeoPoint">, t.LiteralC<"Date">, t.LiteralC<"Number">, t.LiteralC<"Range">, t.LiteralC<"StructuredText">, t.LiteralC<"Select">, t.LiteralC<"Separator">, t.LiteralC<"Text">, t.LiteralC<"Timestamp">, t.LiteralC<"Link">, t.LiteralC<"Image">, t.LiteralC<"IntegrationFields">]>;
|
|
1932
|
+
value: t.ArrayC<t.ExactC<t.TypeC<{
|
|
1933
|
+
__TYPE__: t.LiteralC<"LinkContent">;
|
|
1934
|
+
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1935
|
+
__TYPE__: t.LiteralC<"ImageLink">;
|
|
1936
|
+
}>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1937
|
+
kind: t.StringC;
|
|
1938
|
+
id: t.StringC;
|
|
1939
|
+
url: t.StringC;
|
|
1940
|
+
height: t.StringC;
|
|
1941
|
+
width: t.StringC;
|
|
1942
|
+
size: t.StringC;
|
|
1943
|
+
name: t.StringC;
|
|
1944
|
+
}>>, t.ExactC<t.PartialC<{
|
|
1945
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1946
|
+
}>>]>, t.ExactC<t.PartialC<{
|
|
1947
|
+
text: t.StringC;
|
|
1948
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
1949
|
+
kind: t.LiteralC<"image">;
|
|
1950
|
+
text: t.StringC;
|
|
1951
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1952
|
+
__TYPE__: t.LiteralC<"FileLink">;
|
|
1953
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1954
|
+
kind: t.StringC;
|
|
1955
|
+
id: t.StringC;
|
|
1956
|
+
url: t.StringC;
|
|
1957
|
+
name: t.StringC;
|
|
1958
|
+
size: t.StringC;
|
|
1959
|
+
}>, t.PartialC<{
|
|
1960
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1961
|
+
}>]>>, t.ExactC<t.PartialC<{
|
|
1962
|
+
text: t.StringC;
|
|
1963
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
1964
|
+
kind: t.LiteralC<"file">;
|
|
1965
|
+
text: t.StringC;
|
|
1966
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1967
|
+
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
1968
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1969
|
+
id: t.Type<string, string, unknown>;
|
|
1970
|
+
}>>, t.ExactC<t.PartialC<{
|
|
1971
|
+
text: t.StringC;
|
|
1972
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
1973
|
+
kind: t.LiteralC<"document">;
|
|
1974
|
+
text: t.StringC;
|
|
1975
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1976
|
+
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
1977
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1978
|
+
url: t.StringC;
|
|
1979
|
+
}>, t.PartialC<{
|
|
1980
|
+
kind: t.LiteralC<"web">;
|
|
1981
|
+
target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1982
|
+
preview: t.UnionC<[t.Type<{
|
|
1983
|
+
title?: string;
|
|
1984
|
+
}, {
|
|
1985
|
+
title?: string;
|
|
1986
|
+
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
1987
|
+
}>]>>, t.ExactC<t.PartialC<{
|
|
1988
|
+
text: t.StringC;
|
|
1989
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
1990
|
+
kind: t.LiteralC<"web">;
|
|
1991
|
+
text: t.StringC;
|
|
1992
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1993
|
+
__TYPE__: t.LiteralC<"MediaLink">;
|
|
1994
|
+
}>>, t.ExactC<t.TypeC<{
|
|
1995
|
+
kind: t.LiteralC<"media">;
|
|
1996
|
+
text: t.StringC;
|
|
1997
|
+
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1998
|
+
__TYPE__: t.LiteralC<"AnyLink">;
|
|
1999
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2000
|
+
text: t.StringC;
|
|
2001
|
+
}>>]>]>;
|
|
2002
|
+
}>>>;
|
|
1707
2003
|
}>>]>, t.Type<GroupContent, GroupContent, unknown>]>>;
|
|
1708
2004
|
items: t.ArrayC<t.ExactC<t.TypeC<{
|
|
1709
2005
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
@@ -2128,6 +2424,80 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
2128
2424
|
}>]>>]>>;
|
|
2129
2425
|
}>>, t.ExactC<t.TypeC<{
|
|
2130
2426
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
2427
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2428
|
+
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
2429
|
+
type: t.UnionC<[t.LiteralC<"Color">, t.LiteralC<"Boolean">, t.LiteralC<"Embed">, t.LiteralC<"GeoPoint">, t.LiteralC<"Date">, t.LiteralC<"Number">, t.LiteralC<"Range">, t.LiteralC<"StructuredText">, t.LiteralC<"Select">, t.LiteralC<"Separator">, t.LiteralC<"Text">, t.LiteralC<"Timestamp">, t.LiteralC<"Link">, t.LiteralC<"Image">, t.LiteralC<"IntegrationFields">]>;
|
|
2430
|
+
value: t.ArrayC<t.ExactC<t.TypeC<{
|
|
2431
|
+
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2432
|
+
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2433
|
+
__TYPE__: t.LiteralC<"ImageLink">;
|
|
2434
|
+
}>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2435
|
+
kind: t.StringC;
|
|
2436
|
+
id: t.StringC;
|
|
2437
|
+
url: t.StringC;
|
|
2438
|
+
height: t.StringC;
|
|
2439
|
+
width: t.StringC;
|
|
2440
|
+
size: t.StringC;
|
|
2441
|
+
name: t.StringC;
|
|
2442
|
+
}>>, t.ExactC<t.PartialC<{
|
|
2443
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2444
|
+
}>>]>, t.ExactC<t.PartialC<{
|
|
2445
|
+
text: t.StringC;
|
|
2446
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
2447
|
+
kind: t.LiteralC<"image">;
|
|
2448
|
+
text: t.StringC;
|
|
2449
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2450
|
+
__TYPE__: t.LiteralC<"FileLink">;
|
|
2451
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2452
|
+
kind: t.StringC;
|
|
2453
|
+
id: t.StringC;
|
|
2454
|
+
url: t.StringC;
|
|
2455
|
+
name: t.StringC;
|
|
2456
|
+
size: t.StringC;
|
|
2457
|
+
}>, t.PartialC<{
|
|
2458
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2459
|
+
}>]>>, t.ExactC<t.PartialC<{
|
|
2460
|
+
text: t.StringC;
|
|
2461
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
2462
|
+
kind: t.LiteralC<"file">;
|
|
2463
|
+
text: t.StringC;
|
|
2464
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2465
|
+
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
2466
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2467
|
+
id: t.Type<string, string, unknown>;
|
|
2468
|
+
}>>, t.ExactC<t.PartialC<{
|
|
2469
|
+
text: t.StringC;
|
|
2470
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
2471
|
+
kind: t.LiteralC<"document">;
|
|
2472
|
+
text: t.StringC;
|
|
2473
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2474
|
+
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
2475
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2476
|
+
url: t.StringC;
|
|
2477
|
+
}>, t.PartialC<{
|
|
2478
|
+
kind: t.LiteralC<"web">;
|
|
2479
|
+
target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2480
|
+
preview: t.UnionC<[t.Type<{
|
|
2481
|
+
title?: string;
|
|
2482
|
+
}, {
|
|
2483
|
+
title?: string;
|
|
2484
|
+
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
2485
|
+
}>]>>, t.ExactC<t.PartialC<{
|
|
2486
|
+
text: t.StringC;
|
|
2487
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
2488
|
+
kind: t.LiteralC<"web">;
|
|
2489
|
+
text: t.StringC;
|
|
2490
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2491
|
+
__TYPE__: t.LiteralC<"MediaLink">;
|
|
2492
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2493
|
+
kind: t.LiteralC<"media">;
|
|
2494
|
+
text: t.StringC;
|
|
2495
|
+
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2496
|
+
__TYPE__: t.LiteralC<"AnyLink">;
|
|
2497
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2498
|
+
text: t.StringC;
|
|
2499
|
+
}>>]>]>;
|
|
2500
|
+
}>>>;
|
|
2131
2501
|
}>>]>, t.Type<GroupContent, GroupContent, unknown>]>]>>;
|
|
2132
2502
|
}>>>;
|
|
2133
2503
|
}>>, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
@@ -2551,56 +2921,130 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
2551
2921
|
}>]>>]>>;
|
|
2552
2922
|
}>>, t.ExactC<t.TypeC<{
|
|
2553
2923
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
2554
|
-
}
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
}
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
}
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
}
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2924
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2925
|
+
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
2926
|
+
type: t.UnionC<[t.LiteralC<"Color">, t.LiteralC<"Boolean">, t.LiteralC<"Embed">, t.LiteralC<"GeoPoint">, t.LiteralC<"Date">, t.LiteralC<"Number">, t.LiteralC<"Range">, t.LiteralC<"StructuredText">, t.LiteralC<"Select">, t.LiteralC<"Separator">, t.LiteralC<"Text">, t.LiteralC<"Timestamp">, t.LiteralC<"Link">, t.LiteralC<"Image">, t.LiteralC<"IntegrationFields">]>;
|
|
2927
|
+
value: t.ArrayC<t.ExactC<t.TypeC<{
|
|
2928
|
+
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2929
|
+
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2930
|
+
__TYPE__: t.LiteralC<"ImageLink">;
|
|
2931
|
+
}>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2932
|
+
kind: t.StringC;
|
|
2933
|
+
id: t.StringC;
|
|
2934
|
+
url: t.StringC;
|
|
2935
|
+
height: t.StringC;
|
|
2936
|
+
width: t.StringC;
|
|
2937
|
+
size: t.StringC;
|
|
2938
|
+
name: t.StringC;
|
|
2939
|
+
}>>, t.ExactC<t.PartialC<{
|
|
2940
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2941
|
+
}>>]>, t.ExactC<t.PartialC<{
|
|
2942
|
+
text: t.StringC;
|
|
2943
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
2944
|
+
kind: t.LiteralC<"image">;
|
|
2945
|
+
text: t.StringC;
|
|
2946
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2947
|
+
__TYPE__: t.LiteralC<"FileLink">;
|
|
2948
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2949
|
+
kind: t.StringC;
|
|
2950
|
+
id: t.StringC;
|
|
2951
|
+
url: t.StringC;
|
|
2952
|
+
name: t.StringC;
|
|
2953
|
+
size: t.StringC;
|
|
2954
|
+
}>, t.PartialC<{
|
|
2955
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2956
|
+
}>]>>, t.ExactC<t.PartialC<{
|
|
2957
|
+
text: t.StringC;
|
|
2958
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
2959
|
+
kind: t.LiteralC<"file">;
|
|
2960
|
+
text: t.StringC;
|
|
2961
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2962
|
+
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
2963
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2964
|
+
id: t.Type<string, string, unknown>;
|
|
2965
|
+
}>>, t.ExactC<t.PartialC<{
|
|
2966
|
+
text: t.StringC;
|
|
2967
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
2968
|
+
kind: t.LiteralC<"document">;
|
|
2969
|
+
text: t.StringC;
|
|
2970
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2971
|
+
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
2972
|
+
}>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2973
|
+
url: t.StringC;
|
|
2974
|
+
}>, t.PartialC<{
|
|
2975
|
+
kind: t.LiteralC<"web">;
|
|
2976
|
+
target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2977
|
+
preview: t.UnionC<[t.Type<{
|
|
2978
|
+
title?: string;
|
|
2979
|
+
}, {
|
|
2980
|
+
title?: string;
|
|
2981
|
+
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
2982
|
+
}>]>>, t.ExactC<t.PartialC<{
|
|
2983
|
+
text: t.StringC;
|
|
2984
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
2985
|
+
kind: t.LiteralC<"web">;
|
|
2986
|
+
text: t.StringC;
|
|
2987
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2988
|
+
__TYPE__: t.LiteralC<"MediaLink">;
|
|
2989
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2990
|
+
kind: t.LiteralC<"media">;
|
|
2991
|
+
text: t.StringC;
|
|
2992
|
+
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2993
|
+
__TYPE__: t.LiteralC<"AnyLink">;
|
|
2994
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2995
|
+
text: t.StringC;
|
|
2996
|
+
}>>]>]>;
|
|
2997
|
+
}>>>;
|
|
2998
|
+
}>>]>, t.Type<GroupContent, GroupContent, unknown>]>]>;
|
|
2999
|
+
}>>;
|
|
3000
|
+
}>]>;
|
|
3001
|
+
export declare const isWidgetContent: (u: unknown) => u is {
|
|
3002
|
+
type: string;
|
|
3003
|
+
__TYPE__: "EmptyContent";
|
|
3004
|
+
} | {
|
|
3005
|
+
__TYPE__: "BooleanContent";
|
|
3006
|
+
value: boolean;
|
|
3007
|
+
} | ({
|
|
3008
|
+
embed_url: string;
|
|
3009
|
+
type: string;
|
|
3010
|
+
} & {
|
|
3011
|
+
version?: string | number | null;
|
|
3012
|
+
title?: string | null | undefined;
|
|
3013
|
+
author_name?: string | null | undefined;
|
|
3014
|
+
author_url?: string | null | undefined;
|
|
3015
|
+
provider_name?: string | null | undefined;
|
|
3016
|
+
provider_url?: string | null | undefined;
|
|
3017
|
+
cache_age?: string | number | null;
|
|
3018
|
+
thumbnail_url?: string | null | undefined;
|
|
3019
|
+
thumbnail_width?: number | null | undefined;
|
|
3020
|
+
thumbnail_height?: number | null | undefined;
|
|
3021
|
+
html?: string | null | undefined;
|
|
3022
|
+
} & {
|
|
3023
|
+
__TYPE__: "EmbedContent";
|
|
3024
|
+
all: unknown;
|
|
3025
|
+
}) | {
|
|
3026
|
+
type: "Color";
|
|
3027
|
+
value: string;
|
|
3028
|
+
__TYPE__: "FieldContent";
|
|
3029
|
+
} | {
|
|
3030
|
+
type: "Date";
|
|
3031
|
+
value: string;
|
|
3032
|
+
__TYPE__: "FieldContent";
|
|
3033
|
+
} | {
|
|
3034
|
+
type: "Number";
|
|
3035
|
+
value: string;
|
|
3036
|
+
__TYPE__: "FieldContent";
|
|
3037
|
+
} | {
|
|
3038
|
+
type: "Range";
|
|
3039
|
+
value: string;
|
|
3040
|
+
__TYPE__: "FieldContent";
|
|
3041
|
+
} | {
|
|
3042
|
+
type: "Select";
|
|
3043
|
+
value: string;
|
|
3044
|
+
__TYPE__: "FieldContent";
|
|
3045
|
+
} | {
|
|
3046
|
+
type: "Text";
|
|
3047
|
+
value: string;
|
|
2604
3048
|
__TYPE__: "FieldContent";
|
|
2605
3049
|
} | {
|
|
2606
3050
|
type: "Timestamp";
|
|
@@ -2735,6 +3179,78 @@ export declare const isWidgetContent: (u: unknown) => u is {
|
|
|
2735
3179
|
text: string;
|
|
2736
3180
|
});
|
|
2737
3181
|
} | {
|
|
3182
|
+
__TYPE__: "RepeatableContent";
|
|
3183
|
+
type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
|
|
3184
|
+
value: {
|
|
3185
|
+
__TYPE__: "LinkContent";
|
|
3186
|
+
value: ({
|
|
3187
|
+
__TYPE__: "ImageLink";
|
|
3188
|
+
} & (({
|
|
3189
|
+
kind: string;
|
|
3190
|
+
id: string;
|
|
3191
|
+
url: string;
|
|
3192
|
+
height: string;
|
|
3193
|
+
width: string;
|
|
3194
|
+
size: string;
|
|
3195
|
+
name: string;
|
|
3196
|
+
} & {
|
|
3197
|
+
date?: string | null | undefined;
|
|
3198
|
+
} & {
|
|
3199
|
+
text?: string;
|
|
3200
|
+
}) | {
|
|
3201
|
+
kind: "image";
|
|
3202
|
+
text: string;
|
|
3203
|
+
})) | ({
|
|
3204
|
+
__TYPE__: "FileLink";
|
|
3205
|
+
} & (({
|
|
3206
|
+
kind: string;
|
|
3207
|
+
id: string;
|
|
3208
|
+
url: string;
|
|
3209
|
+
name: string;
|
|
3210
|
+
size: string;
|
|
3211
|
+
} & {
|
|
3212
|
+
date?: string | null | undefined;
|
|
3213
|
+
} & {
|
|
3214
|
+
text?: string;
|
|
3215
|
+
}) | {
|
|
3216
|
+
kind: "file";
|
|
3217
|
+
text: string;
|
|
3218
|
+
})) | ({
|
|
3219
|
+
__TYPE__: "MediaLink";
|
|
3220
|
+
} & {
|
|
3221
|
+
kind: "media";
|
|
3222
|
+
text: string;
|
|
3223
|
+
}) | ({
|
|
3224
|
+
__TYPE__: "DocumentLink";
|
|
3225
|
+
} & (({
|
|
3226
|
+
id: string;
|
|
3227
|
+
} & {
|
|
3228
|
+
text?: string;
|
|
3229
|
+
}) | {
|
|
3230
|
+
kind: "document";
|
|
3231
|
+
text: string;
|
|
3232
|
+
})) | ({
|
|
3233
|
+
__TYPE__: "ExternalLink";
|
|
3234
|
+
} & (({
|
|
3235
|
+
url: string;
|
|
3236
|
+
} & {
|
|
3237
|
+
kind?: "web";
|
|
3238
|
+
target?: string | null | undefined;
|
|
3239
|
+
preview?: {
|
|
3240
|
+
title?: string;
|
|
3241
|
+
} | null | undefined;
|
|
3242
|
+
} & {
|
|
3243
|
+
text?: string;
|
|
3244
|
+
}) | {
|
|
3245
|
+
kind: "web";
|
|
3246
|
+
text: string;
|
|
3247
|
+
})) | ({
|
|
3248
|
+
__TYPE__: "AnyLink";
|
|
3249
|
+
} & {
|
|
3250
|
+
text: string;
|
|
3251
|
+
});
|
|
3252
|
+
}[];
|
|
3253
|
+
} | GroupContent | {
|
|
2738
3254
|
__TYPE__: "StructuredTextContent";
|
|
2739
3255
|
value: (({
|
|
2740
3256
|
type: "image";
|
|
@@ -2889,7 +3405,7 @@ export declare const isWidgetContent: (u: unknown) => u is {
|
|
|
2889
3405
|
}))[];
|
|
2890
3406
|
} | {
|
|
2891
3407
|
__TYPE__: "SeparatorContent";
|
|
2892
|
-
} |
|
|
3408
|
+
} | {
|
|
2893
3409
|
__TYPE__: "UIDContent";
|
|
2894
3410
|
value: string;
|
|
2895
3411
|
} | {
|
|
@@ -3079,6 +3595,78 @@ export declare const isWidgetContent: (u: unknown) => u is {
|
|
|
3079
3595
|
text: string;
|
|
3080
3596
|
});
|
|
3081
3597
|
} | {
|
|
3598
|
+
__TYPE__: "RepeatableContent";
|
|
3599
|
+
type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
|
|
3600
|
+
value: {
|
|
3601
|
+
__TYPE__: "LinkContent";
|
|
3602
|
+
value: ({
|
|
3603
|
+
__TYPE__: "ImageLink";
|
|
3604
|
+
} & (({
|
|
3605
|
+
kind: string;
|
|
3606
|
+
id: string;
|
|
3607
|
+
url: string;
|
|
3608
|
+
height: string;
|
|
3609
|
+
width: string;
|
|
3610
|
+
size: string;
|
|
3611
|
+
name: string;
|
|
3612
|
+
} & {
|
|
3613
|
+
date?: string | null | undefined;
|
|
3614
|
+
} & {
|
|
3615
|
+
text?: string;
|
|
3616
|
+
}) | {
|
|
3617
|
+
kind: "image";
|
|
3618
|
+
text: string;
|
|
3619
|
+
})) | ({
|
|
3620
|
+
__TYPE__: "FileLink";
|
|
3621
|
+
} & (({
|
|
3622
|
+
kind: string;
|
|
3623
|
+
id: string;
|
|
3624
|
+
url: string;
|
|
3625
|
+
name: string;
|
|
3626
|
+
size: string;
|
|
3627
|
+
} & {
|
|
3628
|
+
date?: string | null | undefined;
|
|
3629
|
+
} & {
|
|
3630
|
+
text?: string;
|
|
3631
|
+
}) | {
|
|
3632
|
+
kind: "file";
|
|
3633
|
+
text: string;
|
|
3634
|
+
})) | ({
|
|
3635
|
+
__TYPE__: "MediaLink";
|
|
3636
|
+
} & {
|
|
3637
|
+
kind: "media";
|
|
3638
|
+
text: string;
|
|
3639
|
+
}) | ({
|
|
3640
|
+
__TYPE__: "DocumentLink";
|
|
3641
|
+
} & (({
|
|
3642
|
+
id: string;
|
|
3643
|
+
} & {
|
|
3644
|
+
text?: string;
|
|
3645
|
+
}) | {
|
|
3646
|
+
kind: "document";
|
|
3647
|
+
text: string;
|
|
3648
|
+
})) | ({
|
|
3649
|
+
__TYPE__: "ExternalLink";
|
|
3650
|
+
} & (({
|
|
3651
|
+
url: string;
|
|
3652
|
+
} & {
|
|
3653
|
+
kind?: "web";
|
|
3654
|
+
target?: string | null | undefined;
|
|
3655
|
+
preview?: {
|
|
3656
|
+
title?: string;
|
|
3657
|
+
} | null | undefined;
|
|
3658
|
+
} & {
|
|
3659
|
+
text?: string;
|
|
3660
|
+
}) | {
|
|
3661
|
+
kind: "web";
|
|
3662
|
+
text: string;
|
|
3663
|
+
})) | ({
|
|
3664
|
+
__TYPE__: "AnyLink";
|
|
3665
|
+
} & {
|
|
3666
|
+
text: string;
|
|
3667
|
+
});
|
|
3668
|
+
}[];
|
|
3669
|
+
} | GroupContent | {
|
|
3082
3670
|
__TYPE__: "StructuredTextContent";
|
|
3083
3671
|
value: (({
|
|
3084
3672
|
type: "image";
|
|
@@ -3233,7 +3821,7 @@ export declare const isWidgetContent: (u: unknown) => u is {
|
|
|
3233
3821
|
}))[];
|
|
3234
3822
|
} | {
|
|
3235
3823
|
__TYPE__: "SeparatorContent";
|
|
3236
|
-
} |
|
|
3824
|
+
} | {
|
|
3237
3825
|
__TYPE__: "CompositeSliceContent";
|
|
3238
3826
|
nonRepeat: {
|
|
3239
3827
|
[x: string]: {
|
|
@@ -3416,6 +4004,78 @@ export declare const isWidgetContent: (u: unknown) => u is {
|
|
|
3416
4004
|
} & {
|
|
3417
4005
|
text: string;
|
|
3418
4006
|
});
|
|
4007
|
+
} | {
|
|
4008
|
+
__TYPE__: "RepeatableContent";
|
|
4009
|
+
type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
|
|
4010
|
+
value: {
|
|
4011
|
+
__TYPE__: "LinkContent";
|
|
4012
|
+
value: ({
|
|
4013
|
+
__TYPE__: "ImageLink";
|
|
4014
|
+
} & (({
|
|
4015
|
+
kind: string;
|
|
4016
|
+
id: string;
|
|
4017
|
+
url: string;
|
|
4018
|
+
height: string;
|
|
4019
|
+
width: string;
|
|
4020
|
+
size: string;
|
|
4021
|
+
name: string;
|
|
4022
|
+
} & {
|
|
4023
|
+
date?: string | null | undefined;
|
|
4024
|
+
} & {
|
|
4025
|
+
text?: string;
|
|
4026
|
+
}) | {
|
|
4027
|
+
kind: "image";
|
|
4028
|
+
text: string;
|
|
4029
|
+
})) | ({
|
|
4030
|
+
__TYPE__: "FileLink";
|
|
4031
|
+
} & (({
|
|
4032
|
+
kind: string;
|
|
4033
|
+
id: string;
|
|
4034
|
+
url: string;
|
|
4035
|
+
name: string;
|
|
4036
|
+
size: string;
|
|
4037
|
+
} & {
|
|
4038
|
+
date?: string | null | undefined;
|
|
4039
|
+
} & {
|
|
4040
|
+
text?: string;
|
|
4041
|
+
}) | {
|
|
4042
|
+
kind: "file";
|
|
4043
|
+
text: string;
|
|
4044
|
+
})) | ({
|
|
4045
|
+
__TYPE__: "MediaLink";
|
|
4046
|
+
} & {
|
|
4047
|
+
kind: "media";
|
|
4048
|
+
text: string;
|
|
4049
|
+
}) | ({
|
|
4050
|
+
__TYPE__: "DocumentLink";
|
|
4051
|
+
} & (({
|
|
4052
|
+
id: string;
|
|
4053
|
+
} & {
|
|
4054
|
+
text?: string;
|
|
4055
|
+
}) | {
|
|
4056
|
+
kind: "document";
|
|
4057
|
+
text: string;
|
|
4058
|
+
})) | ({
|
|
4059
|
+
__TYPE__: "ExternalLink";
|
|
4060
|
+
} & (({
|
|
4061
|
+
url: string;
|
|
4062
|
+
} & {
|
|
4063
|
+
kind?: "web";
|
|
4064
|
+
target?: string | null | undefined;
|
|
4065
|
+
preview?: {
|
|
4066
|
+
title?: string;
|
|
4067
|
+
} | null | undefined;
|
|
4068
|
+
} & {
|
|
4069
|
+
text?: string;
|
|
4070
|
+
}) | {
|
|
4071
|
+
kind: "web";
|
|
4072
|
+
text: string;
|
|
4073
|
+
})) | ({
|
|
4074
|
+
__TYPE__: "AnyLink";
|
|
4075
|
+
} & {
|
|
4076
|
+
text: string;
|
|
4077
|
+
});
|
|
4078
|
+
}[];
|
|
3419
4079
|
} | {
|
|
3420
4080
|
__TYPE__: "StructuredTextContent";
|
|
3421
4081
|
value: (({
|
|
@@ -3756,6 +4416,78 @@ export declare const isWidgetContent: (u: unknown) => u is {
|
|
|
3756
4416
|
text: string;
|
|
3757
4417
|
});
|
|
3758
4418
|
} | {
|
|
4419
|
+
__TYPE__: "RepeatableContent";
|
|
4420
|
+
type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
|
|
4421
|
+
value: {
|
|
4422
|
+
__TYPE__: "LinkContent";
|
|
4423
|
+
value: ({
|
|
4424
|
+
__TYPE__: "ImageLink";
|
|
4425
|
+
} & (({
|
|
4426
|
+
kind: string;
|
|
4427
|
+
id: string;
|
|
4428
|
+
url: string;
|
|
4429
|
+
height: string;
|
|
4430
|
+
width: string;
|
|
4431
|
+
size: string;
|
|
4432
|
+
name: string;
|
|
4433
|
+
} & {
|
|
4434
|
+
date?: string | null | undefined;
|
|
4435
|
+
} & {
|
|
4436
|
+
text?: string;
|
|
4437
|
+
}) | {
|
|
4438
|
+
kind: "image";
|
|
4439
|
+
text: string;
|
|
4440
|
+
})) | ({
|
|
4441
|
+
__TYPE__: "FileLink";
|
|
4442
|
+
} & (({
|
|
4443
|
+
kind: string;
|
|
4444
|
+
id: string;
|
|
4445
|
+
url: string;
|
|
4446
|
+
name: string;
|
|
4447
|
+
size: string;
|
|
4448
|
+
} & {
|
|
4449
|
+
date?: string | null | undefined;
|
|
4450
|
+
} & {
|
|
4451
|
+
text?: string;
|
|
4452
|
+
}) | {
|
|
4453
|
+
kind: "file";
|
|
4454
|
+
text: string;
|
|
4455
|
+
})) | ({
|
|
4456
|
+
__TYPE__: "MediaLink";
|
|
4457
|
+
} & {
|
|
4458
|
+
kind: "media";
|
|
4459
|
+
text: string;
|
|
4460
|
+
}) | ({
|
|
4461
|
+
__TYPE__: "DocumentLink";
|
|
4462
|
+
} & (({
|
|
4463
|
+
id: string;
|
|
4464
|
+
} & {
|
|
4465
|
+
text?: string;
|
|
4466
|
+
}) | {
|
|
4467
|
+
kind: "document";
|
|
4468
|
+
text: string;
|
|
4469
|
+
})) | ({
|
|
4470
|
+
__TYPE__: "ExternalLink";
|
|
4471
|
+
} & (({
|
|
4472
|
+
url: string;
|
|
4473
|
+
} & {
|
|
4474
|
+
kind?: "web";
|
|
4475
|
+
target?: string | null | undefined;
|
|
4476
|
+
preview?: {
|
|
4477
|
+
title?: string;
|
|
4478
|
+
} | null | undefined;
|
|
4479
|
+
} & {
|
|
4480
|
+
text?: string;
|
|
4481
|
+
}) | {
|
|
4482
|
+
kind: "web";
|
|
4483
|
+
text: string;
|
|
4484
|
+
})) | ({
|
|
4485
|
+
__TYPE__: "AnyLink";
|
|
4486
|
+
} & {
|
|
4487
|
+
text: string;
|
|
4488
|
+
});
|
|
4489
|
+
}[];
|
|
4490
|
+
} | GroupContent | {
|
|
3759
4491
|
__TYPE__: "StructuredTextContent";
|
|
3760
4492
|
value: (({
|
|
3761
4493
|
type: "image";
|
|
@@ -3910,7 +4642,7 @@ export declare const isWidgetContent: (u: unknown) => u is {
|
|
|
3910
4642
|
}))[];
|
|
3911
4643
|
} | {
|
|
3912
4644
|
__TYPE__: "SeparatorContent";
|
|
3913
|
-
}
|
|
4645
|
+
}][];
|
|
3914
4646
|
}[];
|
|
3915
4647
|
} | {
|
|
3916
4648
|
__TYPE__: "SharedSliceContent";
|
|
@@ -4097,6 +4829,78 @@ export declare const isWidgetContent: (u: unknown) => u is {
|
|
|
4097
4829
|
text: string;
|
|
4098
4830
|
});
|
|
4099
4831
|
} | {
|
|
4832
|
+
__TYPE__: "RepeatableContent";
|
|
4833
|
+
type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
|
|
4834
|
+
value: {
|
|
4835
|
+
__TYPE__: "LinkContent";
|
|
4836
|
+
value: ({
|
|
4837
|
+
__TYPE__: "ImageLink";
|
|
4838
|
+
} & (({
|
|
4839
|
+
kind: string;
|
|
4840
|
+
id: string;
|
|
4841
|
+
url: string;
|
|
4842
|
+
height: string;
|
|
4843
|
+
width: string;
|
|
4844
|
+
size: string;
|
|
4845
|
+
name: string;
|
|
4846
|
+
} & {
|
|
4847
|
+
date?: string | null | undefined;
|
|
4848
|
+
} & {
|
|
4849
|
+
text?: string;
|
|
4850
|
+
}) | {
|
|
4851
|
+
kind: "image";
|
|
4852
|
+
text: string;
|
|
4853
|
+
})) | ({
|
|
4854
|
+
__TYPE__: "FileLink";
|
|
4855
|
+
} & (({
|
|
4856
|
+
kind: string;
|
|
4857
|
+
id: string;
|
|
4858
|
+
url: string;
|
|
4859
|
+
name: string;
|
|
4860
|
+
size: string;
|
|
4861
|
+
} & {
|
|
4862
|
+
date?: string | null | undefined;
|
|
4863
|
+
} & {
|
|
4864
|
+
text?: string;
|
|
4865
|
+
}) | {
|
|
4866
|
+
kind: "file";
|
|
4867
|
+
text: string;
|
|
4868
|
+
})) | ({
|
|
4869
|
+
__TYPE__: "MediaLink";
|
|
4870
|
+
} & {
|
|
4871
|
+
kind: "media";
|
|
4872
|
+
text: string;
|
|
4873
|
+
}) | ({
|
|
4874
|
+
__TYPE__: "DocumentLink";
|
|
4875
|
+
} & (({
|
|
4876
|
+
id: string;
|
|
4877
|
+
} & {
|
|
4878
|
+
text?: string;
|
|
4879
|
+
}) | {
|
|
4880
|
+
kind: "document";
|
|
4881
|
+
text: string;
|
|
4882
|
+
})) | ({
|
|
4883
|
+
__TYPE__: "ExternalLink";
|
|
4884
|
+
} & (({
|
|
4885
|
+
url: string;
|
|
4886
|
+
} & {
|
|
4887
|
+
kind?: "web";
|
|
4888
|
+
target?: string | null | undefined;
|
|
4889
|
+
preview?: {
|
|
4890
|
+
title?: string;
|
|
4891
|
+
} | null | undefined;
|
|
4892
|
+
} & {
|
|
4893
|
+
text?: string;
|
|
4894
|
+
}) | {
|
|
4895
|
+
kind: "web";
|
|
4896
|
+
text: string;
|
|
4897
|
+
})) | ({
|
|
4898
|
+
__TYPE__: "AnyLink";
|
|
4899
|
+
} & {
|
|
4900
|
+
text: string;
|
|
4901
|
+
});
|
|
4902
|
+
}[];
|
|
4903
|
+
} | GroupContent | {
|
|
4100
4904
|
__TYPE__: "StructuredTextContent";
|
|
4101
4905
|
value: (({
|
|
4102
4906
|
type: "image";
|
|
@@ -4251,7 +5055,7 @@ export declare const isWidgetContent: (u: unknown) => u is {
|
|
|
4251
5055
|
}))[];
|
|
4252
5056
|
} | {
|
|
4253
5057
|
__TYPE__: "SeparatorContent";
|
|
4254
|
-
}
|
|
5058
|
+
};
|
|
4255
5059
|
};
|
|
4256
5060
|
items: {
|
|
4257
5061
|
__TYPE__: "GroupItemContent";
|
|
@@ -4436,6 +5240,78 @@ export declare const isWidgetContent: (u: unknown) => u is {
|
|
|
4436
5240
|
text: string;
|
|
4437
5241
|
});
|
|
4438
5242
|
} | {
|
|
5243
|
+
__TYPE__: "RepeatableContent";
|
|
5244
|
+
type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
|
|
5245
|
+
value: {
|
|
5246
|
+
__TYPE__: "LinkContent";
|
|
5247
|
+
value: ({
|
|
5248
|
+
__TYPE__: "ImageLink";
|
|
5249
|
+
} & (({
|
|
5250
|
+
kind: string;
|
|
5251
|
+
id: string;
|
|
5252
|
+
url: string;
|
|
5253
|
+
height: string;
|
|
5254
|
+
width: string;
|
|
5255
|
+
size: string;
|
|
5256
|
+
name: string;
|
|
5257
|
+
} & {
|
|
5258
|
+
date?: string | null | undefined;
|
|
5259
|
+
} & {
|
|
5260
|
+
text?: string;
|
|
5261
|
+
}) | {
|
|
5262
|
+
kind: "image";
|
|
5263
|
+
text: string;
|
|
5264
|
+
})) | ({
|
|
5265
|
+
__TYPE__: "FileLink";
|
|
5266
|
+
} & (({
|
|
5267
|
+
kind: string;
|
|
5268
|
+
id: string;
|
|
5269
|
+
url: string;
|
|
5270
|
+
name: string;
|
|
5271
|
+
size: string;
|
|
5272
|
+
} & {
|
|
5273
|
+
date?: string | null | undefined;
|
|
5274
|
+
} & {
|
|
5275
|
+
text?: string;
|
|
5276
|
+
}) | {
|
|
5277
|
+
kind: "file";
|
|
5278
|
+
text: string;
|
|
5279
|
+
})) | ({
|
|
5280
|
+
__TYPE__: "MediaLink";
|
|
5281
|
+
} & {
|
|
5282
|
+
kind: "media";
|
|
5283
|
+
text: string;
|
|
5284
|
+
}) | ({
|
|
5285
|
+
__TYPE__: "DocumentLink";
|
|
5286
|
+
} & (({
|
|
5287
|
+
id: string;
|
|
5288
|
+
} & {
|
|
5289
|
+
text?: string;
|
|
5290
|
+
}) | {
|
|
5291
|
+
kind: "document";
|
|
5292
|
+
text: string;
|
|
5293
|
+
})) | ({
|
|
5294
|
+
__TYPE__: "ExternalLink";
|
|
5295
|
+
} & (({
|
|
5296
|
+
url: string;
|
|
5297
|
+
} & {
|
|
5298
|
+
kind?: "web";
|
|
5299
|
+
target?: string | null | undefined;
|
|
5300
|
+
preview?: {
|
|
5301
|
+
title?: string;
|
|
5302
|
+
} | null | undefined;
|
|
5303
|
+
} & {
|
|
5304
|
+
text?: string;
|
|
5305
|
+
}) | {
|
|
5306
|
+
kind: "web";
|
|
5307
|
+
text: string;
|
|
5308
|
+
})) | ({
|
|
5309
|
+
__TYPE__: "AnyLink";
|
|
5310
|
+
} & {
|
|
5311
|
+
text: string;
|
|
5312
|
+
});
|
|
5313
|
+
}[];
|
|
5314
|
+
} | GroupContent | {
|
|
4439
5315
|
__TYPE__: "StructuredTextContent";
|
|
4440
5316
|
value: (({
|
|
4441
5317
|
type: "image";
|
|
@@ -4590,7 +5466,7 @@ export declare const isWidgetContent: (u: unknown) => u is {
|
|
|
4590
5466
|
}))[];
|
|
4591
5467
|
} | {
|
|
4592
5468
|
__TYPE__: "SeparatorContent";
|
|
4593
|
-
}
|
|
5469
|
+
}][];
|
|
4594
5470
|
}[];
|
|
4595
5471
|
};
|
|
4596
5472
|
}[];
|
|
@@ -4778,6 +5654,78 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
|
|
|
4778
5654
|
} & {
|
|
4779
5655
|
text: string;
|
|
4780
5656
|
});
|
|
5657
|
+
}> | import("fp-ts/lib/Either").Right<{
|
|
5658
|
+
__TYPE__: "RepeatableContent";
|
|
5659
|
+
type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
|
|
5660
|
+
value: {
|
|
5661
|
+
__TYPE__: "LinkContent";
|
|
5662
|
+
value: ({
|
|
5663
|
+
__TYPE__: "ImageLink";
|
|
5664
|
+
} & (({
|
|
5665
|
+
kind: string;
|
|
5666
|
+
id: string;
|
|
5667
|
+
url: string;
|
|
5668
|
+
height: string;
|
|
5669
|
+
width: string;
|
|
5670
|
+
size: string;
|
|
5671
|
+
name: string;
|
|
5672
|
+
} & {
|
|
5673
|
+
date?: string | null | undefined;
|
|
5674
|
+
} & {
|
|
5675
|
+
text?: string;
|
|
5676
|
+
}) | {
|
|
5677
|
+
kind: "image";
|
|
5678
|
+
text: string;
|
|
5679
|
+
})) | ({
|
|
5680
|
+
__TYPE__: "FileLink";
|
|
5681
|
+
} & (({
|
|
5682
|
+
kind: string;
|
|
5683
|
+
id: string;
|
|
5684
|
+
url: string;
|
|
5685
|
+
name: string;
|
|
5686
|
+
size: string;
|
|
5687
|
+
} & {
|
|
5688
|
+
date?: string | null | undefined;
|
|
5689
|
+
} & {
|
|
5690
|
+
text?: string;
|
|
5691
|
+
}) | {
|
|
5692
|
+
kind: "file";
|
|
5693
|
+
text: string;
|
|
5694
|
+
})) | ({
|
|
5695
|
+
__TYPE__: "MediaLink";
|
|
5696
|
+
} & {
|
|
5697
|
+
kind: "media";
|
|
5698
|
+
text: string;
|
|
5699
|
+
}) | ({
|
|
5700
|
+
__TYPE__: "DocumentLink";
|
|
5701
|
+
} & (({
|
|
5702
|
+
id: string;
|
|
5703
|
+
} & {
|
|
5704
|
+
text?: string;
|
|
5705
|
+
}) | {
|
|
5706
|
+
kind: "document";
|
|
5707
|
+
text: string;
|
|
5708
|
+
})) | ({
|
|
5709
|
+
__TYPE__: "ExternalLink";
|
|
5710
|
+
} & (({
|
|
5711
|
+
url: string;
|
|
5712
|
+
} & {
|
|
5713
|
+
kind?: "web";
|
|
5714
|
+
target?: string | null | undefined;
|
|
5715
|
+
preview?: {
|
|
5716
|
+
title?: string;
|
|
5717
|
+
} | null | undefined;
|
|
5718
|
+
} & {
|
|
5719
|
+
text?: string;
|
|
5720
|
+
}) | {
|
|
5721
|
+
kind: "web";
|
|
5722
|
+
text: string;
|
|
5723
|
+
})) | ({
|
|
5724
|
+
__TYPE__: "AnyLink";
|
|
5725
|
+
} & {
|
|
5726
|
+
text: string;
|
|
5727
|
+
});
|
|
5728
|
+
}[];
|
|
4781
5729
|
}> | import("fp-ts/lib/Either").Right<{
|
|
4782
5730
|
__TYPE__: "StructuredTextContent";
|
|
4783
5731
|
value: (({
|
|
@@ -4933,7 +5881,7 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
|
|
|
4933
5881
|
}))[];
|
|
4934
5882
|
}> | import("fp-ts/lib/Either").Right<{
|
|
4935
5883
|
__TYPE__: "SeparatorContent";
|
|
4936
|
-
}> | import("fp-ts/lib/Either").Right<
|
|
5884
|
+
}> | import("fp-ts/lib/Either").Right<{
|
|
4937
5885
|
__TYPE__: "UIDContent";
|
|
4938
5886
|
value: string;
|
|
4939
5887
|
}> | import("fp-ts/lib/Either").Right<{
|
|
@@ -5123,6 +6071,78 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
|
|
|
5123
6071
|
text: string;
|
|
5124
6072
|
});
|
|
5125
6073
|
} | {
|
|
6074
|
+
__TYPE__: "RepeatableContent";
|
|
6075
|
+
type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
|
|
6076
|
+
value: {
|
|
6077
|
+
__TYPE__: "LinkContent";
|
|
6078
|
+
value: ({
|
|
6079
|
+
__TYPE__: "ImageLink";
|
|
6080
|
+
} & (({
|
|
6081
|
+
kind: string;
|
|
6082
|
+
id: string;
|
|
6083
|
+
url: string;
|
|
6084
|
+
height: string;
|
|
6085
|
+
width: string;
|
|
6086
|
+
size: string;
|
|
6087
|
+
name: string;
|
|
6088
|
+
} & {
|
|
6089
|
+
date?: string | null | undefined;
|
|
6090
|
+
} & {
|
|
6091
|
+
text?: string;
|
|
6092
|
+
}) | {
|
|
6093
|
+
kind: "image";
|
|
6094
|
+
text: string;
|
|
6095
|
+
})) | ({
|
|
6096
|
+
__TYPE__: "FileLink";
|
|
6097
|
+
} & (({
|
|
6098
|
+
kind: string;
|
|
6099
|
+
id: string;
|
|
6100
|
+
url: string;
|
|
6101
|
+
name: string;
|
|
6102
|
+
size: string;
|
|
6103
|
+
} & {
|
|
6104
|
+
date?: string | null | undefined;
|
|
6105
|
+
} & {
|
|
6106
|
+
text?: string;
|
|
6107
|
+
}) | {
|
|
6108
|
+
kind: "file";
|
|
6109
|
+
text: string;
|
|
6110
|
+
})) | ({
|
|
6111
|
+
__TYPE__: "MediaLink";
|
|
6112
|
+
} & {
|
|
6113
|
+
kind: "media";
|
|
6114
|
+
text: string;
|
|
6115
|
+
}) | ({
|
|
6116
|
+
__TYPE__: "DocumentLink";
|
|
6117
|
+
} & (({
|
|
6118
|
+
id: string;
|
|
6119
|
+
} & {
|
|
6120
|
+
text?: string;
|
|
6121
|
+
}) | {
|
|
6122
|
+
kind: "document";
|
|
6123
|
+
text: string;
|
|
6124
|
+
})) | ({
|
|
6125
|
+
__TYPE__: "ExternalLink";
|
|
6126
|
+
} & (({
|
|
6127
|
+
url: string;
|
|
6128
|
+
} & {
|
|
6129
|
+
kind?: "web";
|
|
6130
|
+
target?: string | null | undefined;
|
|
6131
|
+
preview?: {
|
|
6132
|
+
title?: string;
|
|
6133
|
+
} | null | undefined;
|
|
6134
|
+
} & {
|
|
6135
|
+
text?: string;
|
|
6136
|
+
}) | {
|
|
6137
|
+
kind: "web";
|
|
6138
|
+
text: string;
|
|
6139
|
+
})) | ({
|
|
6140
|
+
__TYPE__: "AnyLink";
|
|
6141
|
+
} & {
|
|
6142
|
+
text: string;
|
|
6143
|
+
});
|
|
6144
|
+
}[];
|
|
6145
|
+
} | GroupContent | {
|
|
5126
6146
|
__TYPE__: "StructuredTextContent";
|
|
5127
6147
|
value: (({
|
|
5128
6148
|
type: "image";
|
|
@@ -5277,7 +6297,7 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
|
|
|
5277
6297
|
}))[];
|
|
5278
6298
|
} | {
|
|
5279
6299
|
__TYPE__: "SeparatorContent";
|
|
5280
|
-
} |
|
|
6300
|
+
} | {
|
|
5281
6301
|
__TYPE__: "CompositeSliceContent";
|
|
5282
6302
|
nonRepeat: {
|
|
5283
6303
|
[x: string]: {
|
|
@@ -5460,6 +6480,78 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
|
|
|
5460
6480
|
} & {
|
|
5461
6481
|
text: string;
|
|
5462
6482
|
});
|
|
6483
|
+
} | {
|
|
6484
|
+
__TYPE__: "RepeatableContent";
|
|
6485
|
+
type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
|
|
6486
|
+
value: {
|
|
6487
|
+
__TYPE__: "LinkContent";
|
|
6488
|
+
value: ({
|
|
6489
|
+
__TYPE__: "ImageLink";
|
|
6490
|
+
} & (({
|
|
6491
|
+
kind: string;
|
|
6492
|
+
id: string;
|
|
6493
|
+
url: string;
|
|
6494
|
+
height: string;
|
|
6495
|
+
width: string;
|
|
6496
|
+
size: string;
|
|
6497
|
+
name: string;
|
|
6498
|
+
} & {
|
|
6499
|
+
date?: string | null | undefined;
|
|
6500
|
+
} & {
|
|
6501
|
+
text?: string;
|
|
6502
|
+
}) | {
|
|
6503
|
+
kind: "image";
|
|
6504
|
+
text: string;
|
|
6505
|
+
})) | ({
|
|
6506
|
+
__TYPE__: "FileLink";
|
|
6507
|
+
} & (({
|
|
6508
|
+
kind: string;
|
|
6509
|
+
id: string;
|
|
6510
|
+
url: string;
|
|
6511
|
+
name: string;
|
|
6512
|
+
size: string;
|
|
6513
|
+
} & {
|
|
6514
|
+
date?: string | null | undefined;
|
|
6515
|
+
} & {
|
|
6516
|
+
text?: string;
|
|
6517
|
+
}) | {
|
|
6518
|
+
kind: "file";
|
|
6519
|
+
text: string;
|
|
6520
|
+
})) | ({
|
|
6521
|
+
__TYPE__: "MediaLink";
|
|
6522
|
+
} & {
|
|
6523
|
+
kind: "media";
|
|
6524
|
+
text: string;
|
|
6525
|
+
}) | ({
|
|
6526
|
+
__TYPE__: "DocumentLink";
|
|
6527
|
+
} & (({
|
|
6528
|
+
id: string;
|
|
6529
|
+
} & {
|
|
6530
|
+
text?: string;
|
|
6531
|
+
}) | {
|
|
6532
|
+
kind: "document";
|
|
6533
|
+
text: string;
|
|
6534
|
+
})) | ({
|
|
6535
|
+
__TYPE__: "ExternalLink";
|
|
6536
|
+
} & (({
|
|
6537
|
+
url: string;
|
|
6538
|
+
} & {
|
|
6539
|
+
kind?: "web";
|
|
6540
|
+
target?: string | null | undefined;
|
|
6541
|
+
preview?: {
|
|
6542
|
+
title?: string;
|
|
6543
|
+
} | null | undefined;
|
|
6544
|
+
} & {
|
|
6545
|
+
text?: string;
|
|
6546
|
+
}) | {
|
|
6547
|
+
kind: "web";
|
|
6548
|
+
text: string;
|
|
6549
|
+
})) | ({
|
|
6550
|
+
__TYPE__: "AnyLink";
|
|
6551
|
+
} & {
|
|
6552
|
+
text: string;
|
|
6553
|
+
});
|
|
6554
|
+
}[];
|
|
5463
6555
|
} | {
|
|
5464
6556
|
__TYPE__: "StructuredTextContent";
|
|
5465
6557
|
value: (({
|
|
@@ -5800,6 +6892,78 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
|
|
|
5800
6892
|
text: string;
|
|
5801
6893
|
});
|
|
5802
6894
|
} | {
|
|
6895
|
+
__TYPE__: "RepeatableContent";
|
|
6896
|
+
type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
|
|
6897
|
+
value: {
|
|
6898
|
+
__TYPE__: "LinkContent";
|
|
6899
|
+
value: ({
|
|
6900
|
+
__TYPE__: "ImageLink";
|
|
6901
|
+
} & (({
|
|
6902
|
+
kind: string;
|
|
6903
|
+
id: string;
|
|
6904
|
+
url: string;
|
|
6905
|
+
height: string;
|
|
6906
|
+
width: string;
|
|
6907
|
+
size: string;
|
|
6908
|
+
name: string;
|
|
6909
|
+
} & {
|
|
6910
|
+
date?: string | null | undefined;
|
|
6911
|
+
} & {
|
|
6912
|
+
text?: string;
|
|
6913
|
+
}) | {
|
|
6914
|
+
kind: "image";
|
|
6915
|
+
text: string;
|
|
6916
|
+
})) | ({
|
|
6917
|
+
__TYPE__: "FileLink";
|
|
6918
|
+
} & (({
|
|
6919
|
+
kind: string;
|
|
6920
|
+
id: string;
|
|
6921
|
+
url: string;
|
|
6922
|
+
name: string;
|
|
6923
|
+
size: string;
|
|
6924
|
+
} & {
|
|
6925
|
+
date?: string | null | undefined;
|
|
6926
|
+
} & {
|
|
6927
|
+
text?: string;
|
|
6928
|
+
}) | {
|
|
6929
|
+
kind: "file";
|
|
6930
|
+
text: string;
|
|
6931
|
+
})) | ({
|
|
6932
|
+
__TYPE__: "MediaLink";
|
|
6933
|
+
} & {
|
|
6934
|
+
kind: "media";
|
|
6935
|
+
text: string;
|
|
6936
|
+
}) | ({
|
|
6937
|
+
__TYPE__: "DocumentLink";
|
|
6938
|
+
} & (({
|
|
6939
|
+
id: string;
|
|
6940
|
+
} & {
|
|
6941
|
+
text?: string;
|
|
6942
|
+
}) | {
|
|
6943
|
+
kind: "document";
|
|
6944
|
+
text: string;
|
|
6945
|
+
})) | ({
|
|
6946
|
+
__TYPE__: "ExternalLink";
|
|
6947
|
+
} & (({
|
|
6948
|
+
url: string;
|
|
6949
|
+
} & {
|
|
6950
|
+
kind?: "web";
|
|
6951
|
+
target?: string | null | undefined;
|
|
6952
|
+
preview?: {
|
|
6953
|
+
title?: string;
|
|
6954
|
+
} | null | undefined;
|
|
6955
|
+
} & {
|
|
6956
|
+
text?: string;
|
|
6957
|
+
}) | {
|
|
6958
|
+
kind: "web";
|
|
6959
|
+
text: string;
|
|
6960
|
+
})) | ({
|
|
6961
|
+
__TYPE__: "AnyLink";
|
|
6962
|
+
} & {
|
|
6963
|
+
text: string;
|
|
6964
|
+
});
|
|
6965
|
+
}[];
|
|
6966
|
+
} | GroupContent | {
|
|
5803
6967
|
__TYPE__: "StructuredTextContent";
|
|
5804
6968
|
value: (({
|
|
5805
6969
|
type: "image";
|
|
@@ -5954,7 +7118,7 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
|
|
|
5954
7118
|
}))[];
|
|
5955
7119
|
} | {
|
|
5956
7120
|
__TYPE__: "SeparatorContent";
|
|
5957
|
-
}
|
|
7121
|
+
}][];
|
|
5958
7122
|
}[];
|
|
5959
7123
|
} | {
|
|
5960
7124
|
__TYPE__: "SharedSliceContent";
|
|
@@ -6141,6 +7305,78 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
|
|
|
6141
7305
|
text: string;
|
|
6142
7306
|
});
|
|
6143
7307
|
} | {
|
|
7308
|
+
__TYPE__: "RepeatableContent";
|
|
7309
|
+
type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
|
|
7310
|
+
value: {
|
|
7311
|
+
__TYPE__: "LinkContent";
|
|
7312
|
+
value: ({
|
|
7313
|
+
__TYPE__: "ImageLink";
|
|
7314
|
+
} & (({
|
|
7315
|
+
kind: string;
|
|
7316
|
+
id: string;
|
|
7317
|
+
url: string;
|
|
7318
|
+
height: string;
|
|
7319
|
+
width: string;
|
|
7320
|
+
size: string;
|
|
7321
|
+
name: string;
|
|
7322
|
+
} & {
|
|
7323
|
+
date?: string | null | undefined;
|
|
7324
|
+
} & {
|
|
7325
|
+
text?: string;
|
|
7326
|
+
}) | {
|
|
7327
|
+
kind: "image";
|
|
7328
|
+
text: string;
|
|
7329
|
+
})) | ({
|
|
7330
|
+
__TYPE__: "FileLink";
|
|
7331
|
+
} & (({
|
|
7332
|
+
kind: string;
|
|
7333
|
+
id: string;
|
|
7334
|
+
url: string;
|
|
7335
|
+
name: string;
|
|
7336
|
+
size: string;
|
|
7337
|
+
} & {
|
|
7338
|
+
date?: string | null | undefined;
|
|
7339
|
+
} & {
|
|
7340
|
+
text?: string;
|
|
7341
|
+
}) | {
|
|
7342
|
+
kind: "file";
|
|
7343
|
+
text: string;
|
|
7344
|
+
})) | ({
|
|
7345
|
+
__TYPE__: "MediaLink";
|
|
7346
|
+
} & {
|
|
7347
|
+
kind: "media";
|
|
7348
|
+
text: string;
|
|
7349
|
+
}) | ({
|
|
7350
|
+
__TYPE__: "DocumentLink";
|
|
7351
|
+
} & (({
|
|
7352
|
+
id: string;
|
|
7353
|
+
} & {
|
|
7354
|
+
text?: string;
|
|
7355
|
+
}) | {
|
|
7356
|
+
kind: "document";
|
|
7357
|
+
text: string;
|
|
7358
|
+
})) | ({
|
|
7359
|
+
__TYPE__: "ExternalLink";
|
|
7360
|
+
} & (({
|
|
7361
|
+
url: string;
|
|
7362
|
+
} & {
|
|
7363
|
+
kind?: "web";
|
|
7364
|
+
target?: string | null | undefined;
|
|
7365
|
+
preview?: {
|
|
7366
|
+
title?: string;
|
|
7367
|
+
} | null | undefined;
|
|
7368
|
+
} & {
|
|
7369
|
+
text?: string;
|
|
7370
|
+
}) | {
|
|
7371
|
+
kind: "web";
|
|
7372
|
+
text: string;
|
|
7373
|
+
})) | ({
|
|
7374
|
+
__TYPE__: "AnyLink";
|
|
7375
|
+
} & {
|
|
7376
|
+
text: string;
|
|
7377
|
+
});
|
|
7378
|
+
}[];
|
|
7379
|
+
} | GroupContent | {
|
|
6144
7380
|
__TYPE__: "StructuredTextContent";
|
|
6145
7381
|
value: (({
|
|
6146
7382
|
type: "image";
|
|
@@ -6295,7 +7531,7 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
|
|
|
6295
7531
|
}))[];
|
|
6296
7532
|
} | {
|
|
6297
7533
|
__TYPE__: "SeparatorContent";
|
|
6298
|
-
}
|
|
7534
|
+
};
|
|
6299
7535
|
};
|
|
6300
7536
|
items: {
|
|
6301
7537
|
__TYPE__: "GroupItemContent";
|
|
@@ -6480,6 +7716,78 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
|
|
|
6480
7716
|
text: string;
|
|
6481
7717
|
});
|
|
6482
7718
|
} | {
|
|
7719
|
+
__TYPE__: "RepeatableContent";
|
|
7720
|
+
type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
|
|
7721
|
+
value: {
|
|
7722
|
+
__TYPE__: "LinkContent";
|
|
7723
|
+
value: ({
|
|
7724
|
+
__TYPE__: "ImageLink";
|
|
7725
|
+
} & (({
|
|
7726
|
+
kind: string;
|
|
7727
|
+
id: string;
|
|
7728
|
+
url: string;
|
|
7729
|
+
height: string;
|
|
7730
|
+
width: string;
|
|
7731
|
+
size: string;
|
|
7732
|
+
name: string;
|
|
7733
|
+
} & {
|
|
7734
|
+
date?: string | null | undefined;
|
|
7735
|
+
} & {
|
|
7736
|
+
text?: string;
|
|
7737
|
+
}) | {
|
|
7738
|
+
kind: "image";
|
|
7739
|
+
text: string;
|
|
7740
|
+
})) | ({
|
|
7741
|
+
__TYPE__: "FileLink";
|
|
7742
|
+
} & (({
|
|
7743
|
+
kind: string;
|
|
7744
|
+
id: string;
|
|
7745
|
+
url: string;
|
|
7746
|
+
name: string;
|
|
7747
|
+
size: string;
|
|
7748
|
+
} & {
|
|
7749
|
+
date?: string | null | undefined;
|
|
7750
|
+
} & {
|
|
7751
|
+
text?: string;
|
|
7752
|
+
}) | {
|
|
7753
|
+
kind: "file";
|
|
7754
|
+
text: string;
|
|
7755
|
+
})) | ({
|
|
7756
|
+
__TYPE__: "MediaLink";
|
|
7757
|
+
} & {
|
|
7758
|
+
kind: "media";
|
|
7759
|
+
text: string;
|
|
7760
|
+
}) | ({
|
|
7761
|
+
__TYPE__: "DocumentLink";
|
|
7762
|
+
} & (({
|
|
7763
|
+
id: string;
|
|
7764
|
+
} & {
|
|
7765
|
+
text?: string;
|
|
7766
|
+
}) | {
|
|
7767
|
+
kind: "document";
|
|
7768
|
+
text: string;
|
|
7769
|
+
})) | ({
|
|
7770
|
+
__TYPE__: "ExternalLink";
|
|
7771
|
+
} & (({
|
|
7772
|
+
url: string;
|
|
7773
|
+
} & {
|
|
7774
|
+
kind?: "web";
|
|
7775
|
+
target?: string | null | undefined;
|
|
7776
|
+
preview?: {
|
|
7777
|
+
title?: string;
|
|
7778
|
+
} | null | undefined;
|
|
7779
|
+
} & {
|
|
7780
|
+
text?: string;
|
|
7781
|
+
}) | {
|
|
7782
|
+
kind: "web";
|
|
7783
|
+
text: string;
|
|
7784
|
+
})) | ({
|
|
7785
|
+
__TYPE__: "AnyLink";
|
|
7786
|
+
} & {
|
|
7787
|
+
text: string;
|
|
7788
|
+
});
|
|
7789
|
+
}[];
|
|
7790
|
+
} | GroupContent | {
|
|
6483
7791
|
__TYPE__: "StructuredTextContent";
|
|
6484
7792
|
value: (({
|
|
6485
7793
|
type: "image";
|
|
@@ -6634,10 +7942,10 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
|
|
|
6634
7942
|
}))[];
|
|
6635
7943
|
} | {
|
|
6636
7944
|
__TYPE__: "SeparatorContent";
|
|
6637
|
-
}
|
|
7945
|
+
}][];
|
|
6638
7946
|
}[];
|
|
6639
7947
|
};
|
|
6640
7948
|
}[];
|
|
6641
|
-
}> | undefined;
|
|
7949
|
+
}> | import("fp-ts/lib/Either").Right<GroupContent> | undefined;
|
|
6642
7950
|
encode(value: WidgetContent): import("../LegacyContentCtx").WithTypes<unknown> | undefined;
|
|
6643
7951
|
};
|