File tree 2 files changed +38
-0
lines changed
2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,11 @@ export type TableFieldBody = {
42
42
* Represents a row in a table head.
43
43
*/
44
44
export type TableFieldHeadRow = {
45
+ /**
46
+ * Unique key of the row (UUID v4 format).
47
+ */
48
+ key : string
49
+
45
50
/**
46
51
* Cells in the row.
47
52
*/
@@ -52,14 +57,31 @@ export type TableFieldHeadRow = {
52
57
* Represents a table header cell.
53
58
*/
54
59
export type TableFieldHeaderCell = {
60
+ /**
61
+ * Unique key of the cell (UUID v4 format).
62
+ */
63
+ key : string
64
+
65
+ /**
66
+ * The type of the cell.
67
+ */
55
68
type : "header"
69
+
70
+ /**
71
+ * The content of the cell.
72
+ */
56
73
content : RichTextField
57
74
}
58
75
59
76
/**
60
77
* Represents a row in a table body.
61
78
*/
62
79
export type TableFieldBodyRow = {
80
+ /**
81
+ * Unique key of the row (UUID v4 format).
82
+ */
83
+ key : string
84
+
63
85
/**
64
86
* Cells in the row.
65
87
*/
@@ -70,6 +92,18 @@ export type TableFieldBodyRow = {
70
92
* Represents a table data cell.
71
93
*/
72
94
export type TableFieldDataCell = {
95
+ /**
96
+ * Unique key of the cell (UUID v4 format).
97
+ */
98
+ key : string
99
+
100
+ /**
101
+ * The type of the cell.
102
+ */
73
103
type : "data"
104
+
105
+ /**
106
+ * The content of the cell.
107
+ */
74
108
content : RichTextField
75
109
}
Original file line number Diff line number Diff line change @@ -25,8 +25,10 @@ expectType<prismic.TableField>({
25
25
head : {
26
26
rows : [
27
27
{
28
+ key : "string" ,
28
29
cells : [
29
30
{
31
+ key : "string" ,
30
32
type : "header" ,
31
33
content : [
32
34
{
@@ -49,8 +51,10 @@ expectType<prismic.TableField>({
49
51
body : {
50
52
rows : [
51
53
{
54
+ key : "string" ,
52
55
cells : [
53
56
{
57
+ key : "string" ,
54
58
type : "data" ,
55
59
content : [
56
60
{
You can’t perform that action at this time.
0 commit comments