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.
@@ -2,12 +2,7 @@
2
2
  import type { JsonLdProps } from './types';
3
3
  import type { Thing, WithContext } from 'schema-dts';
4
4
 
5
- interface Props {
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
 
@@ -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;
@@ -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
- {#key updatedTitle}
52
- {#if updatedTitle}
53
- <title>{updatedTitle}</title>
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}" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-meta-tags",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Svelte Meta Tags provides components designed to help you manage SEO for Svelte projects",
5
5
  "license": "MIT",
6
6
  "type": "module",