@prismicio/svelte 1.4.1 → 1.5.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.
|
@@ -25,17 +25,17 @@ const { Component: Td, props: tdProps } = createComponent("td");
|
|
|
25
25
|
<Table {...tableProps} table={field}>
|
|
26
26
|
{#if field?.head}
|
|
27
27
|
<Thead {...theadProps} head={field.head}>
|
|
28
|
-
{#each field.head.rows as row}
|
|
28
|
+
{#each field.head.rows as row (row.key)}
|
|
29
29
|
<Tr {...trProps} {row}>
|
|
30
|
-
{#each row.cells as cell}
|
|
30
|
+
{#each row.cells as cell (cell.key)}
|
|
31
31
|
<Th {...thProps} {cell}>
|
|
32
32
|
<PrismicRichText field={cell.content} {components} /></Th
|
|
33
33
|
>{/each}</Tr
|
|
34
34
|
>{/each}</Thead
|
|
35
35
|
>{/if}<Tbody {...tbodyProps} body={field.body}>
|
|
36
|
-
{#each field.body.rows as row}
|
|
36
|
+
{#each field.body.rows as row (row.key)}
|
|
37
37
|
<Tr {...trProps} {row}>
|
|
38
|
-
{#each row.cells as cell}
|
|
38
|
+
{#each row.cells as cell (cell.key)}
|
|
39
39
|
{#if cell.type === "header"}
|
|
40
40
|
<Th {...thProps} {cell}>
|
|
41
41
|
<PrismicRichText field={cell.content} {components} /></Th
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prismicio/svelte",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Svelte components to present Prismic content.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"esm-env": "^1.0.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@prismicio/client": "^7.
|
|
68
|
+
"@prismicio/client": "^7.17.0",
|
|
69
69
|
"@prismicio/mock": "^0.7.1",
|
|
70
70
|
"@size-limit/preset-small-lib": "^11.0.1",
|
|
71
71
|
"@sveltejs/kit": "^2.0.0",
|
|
@@ -47,17 +47,17 @@
|
|
|
47
47
|
<Table {...tableProps} table={field}>
|
|
48
48
|
{#if field?.head}
|
|
49
49
|
<Thead {...theadProps} head={field.head}>
|
|
50
|
-
{#each field.head.rows as row}
|
|
50
|
+
{#each field.head.rows as row (row.key)}
|
|
51
51
|
<Tr {...trProps} {row}>
|
|
52
|
-
{#each row.cells as cell}
|
|
52
|
+
{#each row.cells as cell (cell.key)}
|
|
53
53
|
<Th {...thProps} {cell}>
|
|
54
54
|
<PrismicRichText field={cell.content} {components} /></Th
|
|
55
55
|
>{/each}</Tr
|
|
56
56
|
>{/each}</Thead
|
|
57
57
|
>{/if}<Tbody {...tbodyProps} body={field.body}>
|
|
58
|
-
{#each field.body.rows as row}
|
|
58
|
+
{#each field.body.rows as row (row.key)}
|
|
59
59
|
<Tr {...trProps} {row}>
|
|
60
|
-
{#each row.cells as cell}
|
|
60
|
+
{#each row.cells as cell (cell.key)}
|
|
61
61
|
{#if cell.type === "header"}
|
|
62
62
|
<Th {...thProps} {cell}>
|
|
63
63
|
<PrismicRichText field={cell.content} {components} /></Th
|