svelte-meta-tags 4.0.0 → 4.0.1
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/JsonLd.svelte +1 -6
- package/dist/JsonLd.svelte.d.ts +1 -4
- package/dist/MetaTags.svelte +5 -7
- package/package.json +1 -1
package/dist/JsonLd.svelte
CHANGED
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
import type { JsonLdProps } from './types';
|
|
3
3
|
import type { Thing, WithContext } from 'schema-dts';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
output?: JsonLdProps['output'];
|
|
7
|
-
schema?: JsonLdProps['schema'];
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
let { output = 'head', schema = undefined }: Props = $props();
|
|
5
|
+
let { output = 'head', schema = undefined }: Partial<JsonLdProps> = $props();
|
|
11
6
|
|
|
12
7
|
type OmitContext<T> = Omit<T, '@context'>;
|
|
13
8
|
|
package/dist/JsonLd.svelte.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import type { JsonLdProps } from './types';
|
|
2
|
-
declare const JsonLd: import("svelte").Component<{
|
|
3
|
-
output?: JsonLdProps["output"];
|
|
4
|
-
schema?: JsonLdProps["schema"];
|
|
5
|
-
}, {}, "">;
|
|
2
|
+
declare const JsonLd: import("svelte").Component<Partial<JsonLdProps>, {}, "">;
|
|
6
3
|
export default JsonLd;
|
package/dist/MetaTags.svelte
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import type { MetaTagsProps } from './types';
|
|
3
3
|
|
|
4
4
|
let {
|
|
5
|
-
title =
|
|
6
|
-
titleTemplate =
|
|
5
|
+
title = undefined,
|
|
6
|
+
titleTemplate = undefined,
|
|
7
7
|
robots = 'index,follow',
|
|
8
8
|
additionalRobotsProps = undefined,
|
|
9
9
|
description = undefined,
|
|
@@ -48,11 +48,9 @@
|
|
|
48
48
|
</script>
|
|
49
49
|
|
|
50
50
|
<svelte:head>
|
|
51
|
-
{#
|
|
52
|
-
{
|
|
53
|
-
|
|
54
|
-
{/if}
|
|
55
|
-
{/key}
|
|
51
|
+
{#if updatedTitle}
|
|
52
|
+
<title>{updatedTitle}</title>
|
|
53
|
+
{/if}
|
|
56
54
|
|
|
57
55
|
{#if robots !== false}
|
|
58
56
|
<meta name="robots" content="{robots}{robotsParams}" />
|