@prismicio/svelte 2.2.3-pr.64.25522e1 → 2.2.3-pr.64.93e3b65
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/dist/PrismicTable.svelte
CHANGED
|
@@ -30,12 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
const { field, components = {}, fallback: Fallback }: Props = $props()
|
|
32
32
|
|
|
33
|
-
const Table = $derived(components
|
|
34
|
-
const Thead = $derived(components.thead)
|
|
35
|
-
const Tbody = $derived(components.tbody)
|
|
36
|
-
const Tr = $derived(components.tr)
|
|
37
|
-
const Th = $derived(components.th)
|
|
38
|
-
const Td = $derived(components.td)
|
|
33
|
+
const { table: Table, thead: Thead, tbody: Tbody, tr: Tr, th: Th, td: Td } = $derived(components)
|
|
39
34
|
</script>
|
|
40
35
|
|
|
41
36
|
{#snippet thead(head: TableFieldHead)}
|
|
@@ -56,8 +56,7 @@
|
|
|
56
56
|
),
|
|
57
57
|
window.location.origin,
|
|
58
58
|
),
|
|
59
|
-
// SvelteKit 3 replaced `noScroll` with `reset
|
|
60
|
-
// throws if `noScroll` is passed.
|
|
59
|
+
// SvelteKit 3 replaced `noScroll` with `reset` and throws on `noScroll`.
|
|
61
60
|
(VERSION.startsWith("2.")
|
|
62
61
|
? { invalidateAll: true, noScroll: true }
|
|
63
62
|
: { refreshAll: true, reset: false }) as Parameters<typeof goto>[1],
|
package/package.json
CHANGED
package/src/PrismicTable.svelte
CHANGED
|
@@ -30,12 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
const { field, components = {}, fallback: Fallback }: Props = $props()
|
|
32
32
|
|
|
33
|
-
const Table = $derived(components
|
|
34
|
-
const Thead = $derived(components.thead)
|
|
35
|
-
const Tbody = $derived(components.tbody)
|
|
36
|
-
const Tr = $derived(components.tr)
|
|
37
|
-
const Th = $derived(components.th)
|
|
38
|
-
const Td = $derived(components.td)
|
|
33
|
+
const { table: Table, thead: Thead, tbody: Tbody, tr: Tr, th: Th, td: Td } = $derived(components)
|
|
39
34
|
</script>
|
|
40
35
|
|
|
41
36
|
{#snippet thead(head: TableFieldHead)}
|
|
@@ -56,8 +56,7 @@
|
|
|
56
56
|
),
|
|
57
57
|
window.location.origin,
|
|
58
58
|
),
|
|
59
|
-
// SvelteKit 3 replaced `noScroll` with `reset
|
|
60
|
-
// throws if `noScroll` is passed.
|
|
59
|
+
// SvelteKit 3 replaced `noScroll` with `reset` and throws on `noScroll`.
|
|
61
60
|
(VERSION.startsWith("2.")
|
|
62
61
|
? { invalidateAll: true, noScroll: true }
|
|
63
62
|
: { refreshAll: true, reset: false }) as Parameters<typeof goto>[1],
|