@unhead/vue 2.0.0-alpha.22 → 2.0.0-alpha.24

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/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { createHeadCore } from 'unhead';
2
2
  import { MergeHead, ActiveHeadEntry } from 'unhead/types';
3
- export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, RenderSSRHeadOptions, ResolvedBase, ResolvedBodyAttributes, ResolvedHead, ResolvedHtmlAttributes, ResolvedLink, ResolvedMeta, ResolvedNoscript, ResolvedScript, ResolvedStyle, ResolvedTitle, ResolvedTitleTemplate, Unhead } from 'unhead/types';
3
+ export { ActiveHeadEntry, HeadEntryOptions, HeadTag, MergeHead, RenderSSRHeadOptions, ResolvableHead, ResolvedBase, ResolvedBodyAttributes, ResolvedHead, ResolvedHtmlAttributes, ResolvedLink, ResolvedMeta, ResolvedNoscript, ResolvedScript, ResolvedStyle, ResolvedTitle, ResolvedTitleTemplate, Unhead } from 'unhead/types';
4
4
  import { V as VueHeadClient, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput } from './shared/vue.C97gXjQS.mjs';
5
5
  export { d as Base, B as BodyAttr, g as BodyAttributes, H as HtmlAttr, f as HtmlAttributes, L as Link, h as MaybeFalsey, M as Meta, N as Noscript, R as ReactiveHead, j as ResolvableArray, k as ResolvableProperties, i as ResolvableValue, e as Script, S as Style, T as Title, c as TitleTemplate } from './shared/vue.C97gXjQS.mjs';
6
6
  import { UseHeadSafeInput } from './types.mjs';
@@ -18,8 +18,17 @@ declare function injectHead(): VueHeadClient<MergeHead>;
18
18
  declare function useHead<T extends MergeHead>(input?: UseHeadInput<T>, options?: UseHeadOptions): ActiveHeadEntry<UseHeadInput<T>>;
19
19
  declare function useHeadSafe(input?: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<any>;
20
20
  declare function useSeoMeta(input?: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<any>;
21
+ /**
22
+ * @deprecated use `useHead` instead.Advanced use cases should tree shake using import.meta.* if statements.
23
+ */
21
24
  declare function useServerHead<T extends MergeHead>(input?: UseHeadInput<T>, options?: UseHeadOptions): ActiveHeadEntry<any>;
25
+ /**
26
+ * @deprecated use `useHeadSafe` instead.Advanced use cases should tree shake using import.meta.* if statements.
27
+ */
22
28
  declare function useServerHeadSafe(input?: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<any>;
29
+ /**
30
+ * @deprecated use `useSeoMeta` instead.Advanced use cases should tree shake using import.meta.* if statements.
31
+ */
23
32
  declare function useServerSeoMeta(input?: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<UseSeoMetaInput>;
24
33
 
25
34
  declare const headSymbol = "usehead";
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { createHeadCore } from 'unhead';
2
2
  import { MergeHead, ActiveHeadEntry } from 'unhead/types';
3
- export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, RenderSSRHeadOptions, ResolvedBase, ResolvedBodyAttributes, ResolvedHead, ResolvedHtmlAttributes, ResolvedLink, ResolvedMeta, ResolvedNoscript, ResolvedScript, ResolvedStyle, ResolvedTitle, ResolvedTitleTemplate, Unhead } from 'unhead/types';
3
+ export { ActiveHeadEntry, HeadEntryOptions, HeadTag, MergeHead, RenderSSRHeadOptions, ResolvableHead, ResolvedBase, ResolvedBodyAttributes, ResolvedHead, ResolvedHtmlAttributes, ResolvedLink, ResolvedMeta, ResolvedNoscript, ResolvedScript, ResolvedStyle, ResolvedTitle, ResolvedTitleTemplate, Unhead } from 'unhead/types';
4
4
  import { V as VueHeadClient, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput } from './shared/vue.C97gXjQS.js';
5
5
  export { d as Base, B as BodyAttr, g as BodyAttributes, H as HtmlAttr, f as HtmlAttributes, L as Link, h as MaybeFalsey, M as Meta, N as Noscript, R as ReactiveHead, j as ResolvableArray, k as ResolvableProperties, i as ResolvableValue, e as Script, S as Style, T as Title, c as TitleTemplate } from './shared/vue.C97gXjQS.js';
6
6
  import { UseHeadSafeInput } from './types.js';
@@ -18,8 +18,17 @@ declare function injectHead(): VueHeadClient<MergeHead>;
18
18
  declare function useHead<T extends MergeHead>(input?: UseHeadInput<T>, options?: UseHeadOptions): ActiveHeadEntry<UseHeadInput<T>>;
19
19
  declare function useHeadSafe(input?: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<any>;
20
20
  declare function useSeoMeta(input?: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<any>;
21
+ /**
22
+ * @deprecated use `useHead` instead.Advanced use cases should tree shake using import.meta.* if statements.
23
+ */
21
24
  declare function useServerHead<T extends MergeHead>(input?: UseHeadInput<T>, options?: UseHeadOptions): ActiveHeadEntry<any>;
25
+ /**
26
+ * @deprecated use `useHeadSafe` instead.Advanced use cases should tree shake using import.meta.* if statements.
27
+ */
22
28
  declare function useServerHeadSafe(input?: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<any>;
29
+ /**
30
+ * @deprecated use `useSeoMeta` instead.Advanced use cases should tree shake using import.meta.* if statements.
31
+ */
23
32
  declare function useServerSeoMeta(input?: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<UseSeoMetaInput>;
24
33
 
25
34
  declare const headSymbol = "usehead";
package/dist/legacy.d.mts CHANGED
@@ -17,8 +17,17 @@ declare function injectHead(): VueHeadClient<any> | undefined;
17
17
  declare function useHead<T extends MergeHead>(input: UseHeadInput<T>, options?: UseHeadOptions): ActiveHeadEntry<UseHeadInput<T>> | void;
18
18
  declare function useHeadSafe(input: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
19
19
  declare function useSeoMeta(input: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
20
+ /**
21
+ * @deprecated use `useHead` instead. Advanced use cases should tree shake using import.meta.* if statements.
22
+ */
20
23
  declare function useServerHead<T extends MergeHead>(input: UseHeadInput<T>, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
24
+ /**
25
+ * @deprecated use `useHeadSafe` instead. Advanced use cases should tree shake using import.meta.* if statements.
26
+ */
21
27
  declare function useServerHeadSafe(input: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
28
+ /**
29
+ * @deprecated use `useSeoMeta` instead. Advanced use cases should tree shake using import.meta.* if statements.
30
+ */
22
31
  declare function useServerSeoMeta(input: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
23
32
 
24
33
  export { CapoPlugin, createHead, createServerHead, injectHead, resolveUnrefHeadInput, setHeadInjectionHandler, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
package/dist/legacy.d.ts CHANGED
@@ -17,8 +17,17 @@ declare function injectHead(): VueHeadClient<any> | undefined;
17
17
  declare function useHead<T extends MergeHead>(input: UseHeadInput<T>, options?: UseHeadOptions): ActiveHeadEntry<UseHeadInput<T>> | void;
18
18
  declare function useHeadSafe(input: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
19
19
  declare function useSeoMeta(input: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
20
+ /**
21
+ * @deprecated use `useHead` instead. Advanced use cases should tree shake using import.meta.* if statements.
22
+ */
20
23
  declare function useServerHead<T extends MergeHead>(input: UseHeadInput<T>, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
24
+ /**
25
+ * @deprecated use `useHeadSafe` instead. Advanced use cases should tree shake using import.meta.* if statements.
26
+ */
21
27
  declare function useServerHeadSafe(input: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
28
+ /**
29
+ * @deprecated use `useSeoMeta` instead. Advanced use cases should tree shake using import.meta.* if statements.
30
+ */
22
31
  declare function useServerSeoMeta(input: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
23
32
 
24
33
  export { CapoPlugin, createHead, createServerHead, injectHead, resolveUnrefHeadInput, setHeadInjectionHandler, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
package/dist/types.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { Head, LinkBase, DataKeys, SchemaAugmentations, BaseMeta, Style, ScriptBase, Noscript, HtmlAttributes, BodyAttributes } from 'unhead/types';
2
- export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, RenderSSRHeadOptions, ResolvedBase, ResolvedBodyAttributes, ResolvedHead, ResolvedHtmlAttributes, ResolvedLink, ResolvedMeta, ResolvedNoscript, ResolvedScript, ResolvedStyle, ResolvedTitle, ResolvedTitleTemplate, Unhead } from 'unhead/types';
1
+ import { ResolvableHead, LinkBase, DataKeys, SchemaAugmentations, BaseMeta, Style, ScriptBase, Noscript, HtmlAttributes, BodyAttributes } from 'unhead/types';
2
+ export { ActiveHeadEntry, HeadEntryOptions, HeadTag, MergeHead, RenderSSRHeadOptions, ResolvableHead, ResolvedBase, ResolvedBodyAttributes, ResolvedHead, ResolvedHtmlAttributes, ResolvedLink, ResolvedMeta, ResolvedNoscript, ResolvedScript, ResolvedStyle, ResolvedTitle, ResolvedTitleTemplate, Unhead } from 'unhead/types';
3
3
  import { i as ResolvableValue, k as ResolvableProperties } from './shared/vue.C97gXjQS.mjs';
4
4
  export { d as Base, B as BodyAttr, g as BodyAttributes, H as HtmlAttr, f as HtmlAttributes, L as Link, h as MaybeFalsey, M as Meta, N as Noscript, R as ReactiveHead, j as ResolvableArray, e as Script, S as Style, T as Title, c as TitleTemplate, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput, V as VueHeadClient } from './shared/vue.C97gXjQS.mjs';
5
5
  import 'vue';
@@ -13,7 +13,7 @@ type SafeScript = ResolvableProperties<Pick<ScriptBase, 'id' | 'type' | 'nonce'
13
13
  } & SchemaAugmentations['script']>;
14
14
  type SafeNoscript = ResolvableProperties<Pick<Noscript, 'id' | 'textContent'> & DataKeys & SchemaAugmentations['noscript']>;
15
15
  type SafeStyle = ResolvableProperties<Pick<Style, 'id' | 'media' | 'textContent' | 'nonce' | 'title' | 'blocking'> & DataKeys & SchemaAugmentations['style']>;
16
- interface HeadSafe extends Pick<Head, 'title' | 'titleTemplate' | 'templateParams'> {
16
+ interface HeadSafe extends Pick<ResolvableHead, 'title' | 'titleTemplate' | 'templateParams'> {
17
17
  /**
18
18
  * The `<link>` HTML element specifies relationships between the current document and an external resource.
19
19
  * This element is most commonly used to link to stylesheets, but is also used to establish site icons
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Head, LinkBase, DataKeys, SchemaAugmentations, BaseMeta, Style, ScriptBase, Noscript, HtmlAttributes, BodyAttributes } from 'unhead/types';
2
- export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, RenderSSRHeadOptions, ResolvedBase, ResolvedBodyAttributes, ResolvedHead, ResolvedHtmlAttributes, ResolvedLink, ResolvedMeta, ResolvedNoscript, ResolvedScript, ResolvedStyle, ResolvedTitle, ResolvedTitleTemplate, Unhead } from 'unhead/types';
1
+ import { ResolvableHead, LinkBase, DataKeys, SchemaAugmentations, BaseMeta, Style, ScriptBase, Noscript, HtmlAttributes, BodyAttributes } from 'unhead/types';
2
+ export { ActiveHeadEntry, HeadEntryOptions, HeadTag, MergeHead, RenderSSRHeadOptions, ResolvableHead, ResolvedBase, ResolvedBodyAttributes, ResolvedHead, ResolvedHtmlAttributes, ResolvedLink, ResolvedMeta, ResolvedNoscript, ResolvedScript, ResolvedStyle, ResolvedTitle, ResolvedTitleTemplate, Unhead } from 'unhead/types';
3
3
  import { i as ResolvableValue, k as ResolvableProperties } from './shared/vue.C97gXjQS.js';
4
4
  export { d as Base, B as BodyAttr, g as BodyAttributes, H as HtmlAttr, f as HtmlAttributes, L as Link, h as MaybeFalsey, M as Meta, N as Noscript, R as ReactiveHead, j as ResolvableArray, e as Script, S as Style, T as Title, c as TitleTemplate, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput, V as VueHeadClient } from './shared/vue.C97gXjQS.js';
5
5
  import 'vue';
@@ -13,7 +13,7 @@ type SafeScript = ResolvableProperties<Pick<ScriptBase, 'id' | 'type' | 'nonce'
13
13
  } & SchemaAugmentations['script']>;
14
14
  type SafeNoscript = ResolvableProperties<Pick<Noscript, 'id' | 'textContent'> & DataKeys & SchemaAugmentations['noscript']>;
15
15
  type SafeStyle = ResolvableProperties<Pick<Style, 'id' | 'media' | 'textContent' | 'nonce' | 'title' | 'blocking'> & DataKeys & SchemaAugmentations['style']>;
16
- interface HeadSafe extends Pick<Head, 'title' | 'titleTemplate' | 'templateParams'> {
16
+ interface HeadSafe extends Pick<ResolvableHead, 'title' | 'titleTemplate' | 'templateParams'> {
17
17
  /**
18
18
  * The `<link>` HTML element specifies relationships between the current document and an external resource.
19
19
  * This element is most commonly used to link to stylesheets, but is also used to establish site icons
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/vue",
3
3
  "type": "module",
4
- "version": "2.0.0-alpha.22",
4
+ "version": "2.0.0-alpha.24",
5
5
  "description": "Full-stack <head> manager built for Vue.",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",
@@ -101,7 +101,7 @@
101
101
  },
102
102
  "dependencies": {
103
103
  "hookable": "^5.5.3",
104
- "unhead": "2.0.0-alpha.22"
104
+ "unhead": "2.0.0-alpha.24"
105
105
  },
106
106
  "scripts": {
107
107
  "build": "unbuild .",