@unhead/vue 2.0.0-alpha.2 → 2.0.0-alpha.21

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.
Files changed (52) hide show
  1. package/dist/client.d.mts +4 -6
  2. package/dist/client.d.ts +4 -6
  3. package/dist/client.mjs +9 -12
  4. package/dist/components.mjs +8 -5
  5. package/dist/index.d.mts +18 -22
  6. package/dist/index.d.ts +18 -22
  7. package/dist/index.mjs +9 -47
  8. package/dist/legacy.d.mts +12 -39
  9. package/dist/legacy.d.ts +12 -39
  10. package/dist/legacy.mjs +56 -91
  11. package/dist/plugins.d.mts +1 -0
  12. package/dist/plugins.d.ts +1 -0
  13. package/dist/plugins.mjs +1 -0
  14. package/dist/server.d.mts +4 -6
  15. package/dist/server.d.ts +4 -6
  16. package/dist/server.mjs +7 -9
  17. package/dist/shared/{vue.B8gXlHM7.d.cts → vue.C97gXjQS.d.mts} +39 -50
  18. package/dist/shared/{vue.B8gXlHM7.d.mts → vue.C97gXjQS.d.ts} +39 -50
  19. package/dist/shared/{vue.BqrzivMs.mjs → vue.DBXhY4KI.mjs} +1 -1
  20. package/dist/shared/vue.N9zWjxoK.mjs +7 -0
  21. package/dist/shared/vue.j4SPrdI5.mjs +84 -0
  22. package/dist/types.d.mts +66 -0
  23. package/dist/types.d.ts +66 -0
  24. package/dist/types.mjs +1 -0
  25. package/dist/utils.d.mts +11 -0
  26. package/dist/utils.d.ts +11 -0
  27. package/dist/utils.mjs +10 -0
  28. package/legacy.d.ts +1 -0
  29. package/package.json +41 -15
  30. package/plugins.d.ts +1 -0
  31. package/types.d.ts +1 -0
  32. package/utils.d.ts +1 -0
  33. package/dist/client.cjs +0 -36
  34. package/dist/client.d.cts +0 -11
  35. package/dist/components.cjs +0 -64
  36. package/dist/components.d.cts +0 -5
  37. package/dist/index.cjs +0 -66
  38. package/dist/index.d.cts +0 -33
  39. package/dist/legacy.cjs +0 -163
  40. package/dist/legacy.d.cts +0 -51
  41. package/dist/server.cjs +0 -33
  42. package/dist/server.d.cts +0 -11
  43. package/dist/shared/vue.Adq3bKYb.cjs +0 -89
  44. package/dist/shared/vue.B8gXlHM7.d.ts +0 -144
  45. package/dist/shared/vue.BFi59n5j.cjs +0 -15
  46. package/dist/shared/vue.Bjx6RvLp.d.cts +0 -191
  47. package/dist/shared/vue.Bjx6RvLp.d.mts +0 -191
  48. package/dist/shared/vue.Bjx6RvLp.d.ts +0 -191
  49. package/dist/shared/vue.BmaKl8wu.mjs +0 -13
  50. package/dist/shared/vue.DTOQraae.cjs +0 -20
  51. package/dist/shared/vue.DUgB2y83.mjs +0 -83
  52. package/dist/shared/vue.DnywREVF.d.cts +0 -5
package/dist/server.mjs CHANGED
@@ -1,18 +1,16 @@
1
1
  import { createHead as createHead$1 } from 'unhead/server';
2
- export * from 'unhead/server';
3
- import { v as vueInstall } from './shared/vue.DUgB2y83.mjs';
4
- import { V as VueReactivityPlugin } from './shared/vue.BmaKl8wu.mjs';
5
- export { V as VueHeadMixin } from './shared/vue.BqrzivMs.mjs';
2
+ export { extractUnheadInputFromHtml, propsToString, renderSSRHead, transformHtmlTemplate } from 'unhead/server';
3
+ import { v as vueInstall } from './shared/vue.j4SPrdI5.mjs';
4
+ import { V as VueResolver } from './shared/vue.N9zWjxoK.mjs';
5
+ export { V as VueHeadMixin } from './shared/vue.DBXhY4KI.mjs';
6
+ import 'unhead/plugins';
7
+ import 'unhead/utils';
6
8
  import 'vue';
7
- import '@unhead/shared';
8
9
 
9
10
  function createHead(options = {}) {
10
11
  const head = createHead$1({
11
12
  ...options,
12
- plugins: [
13
- ...options.plugins || [],
14
- VueReactivityPlugin
15
- ]
13
+ propResolvers: [VueResolver]
16
14
  });
17
15
  head.install = vueInstall(head);
18
16
  return head;
@@ -1,29 +1,26 @@
1
- import { BaseHtmlAttr, MaybeArray, BaseBodyAttr, Title as Title$1, TitleTemplate as TitleTemplate$1, EntryAugmentation, Base as Base$1, Link as Link$1, Meta as Meta$1, Style as Style$1, Script as Script$1, Noscript as Noscript$1, DataKeys, SchemaAugmentations, DefinedValueOrEmptyObject, MaybeEventFnHandlers, BodyEvents, MergeHead, HeadEntryOptions, MetaFlatInput, Unhead, SafeMeta, SafeLink, SafeNoscript, SafeScript, SafeHtmlAttr, SafeBodyAttr } from '@unhead/schema';
2
- import { ComputedRef, Ref, Plugin } from 'vue';
1
+ import { Falsey, MergeHead, Unhead, Stringable, SchemaAugmentations, TitleTemplate as TitleTemplate$1, EntryAugmentation, Base as Base$1, DefinedValueOrEmptyObject, LinkBase, DataKeys, MaybeEventFnHandlers, HttpEventAttributes, BaseMeta, Style as Style$1, ScriptBase, Noscript as Noscript$1, BaseHtmlAttr, MaybeArray, BaseBodyAttr, BodyEvents, HeadEntryOptions, MetaFlatInput } from 'unhead/types';
2
+ import { ComputedRef, Ref, CSSProperties, Plugin } from 'vue';
3
3
 
4
- declare function resolveUnrefHeadInput(ref: any): any;
5
-
6
- type MaybeReadonlyRef<T> = ComputedRef<T>;
7
- type MaybeComputedRef<T> = T | MaybeReadonlyRef<T> | Ref<T>;
8
- type MaybeComputedRefOrFalsy<T> = T | MaybeReadonlyRef<T> | Ref<T>;
9
- /**
10
- * @deprecated Use MaybeComputedRefOrFalsy
11
- */
12
- type MaybeComputedRefOrPromise<T> = MaybeComputedRefOrFalsy<T>;
13
- type MaybeComputedRefEntries<T> = MaybeComputedRef<T> | {
14
- [key in keyof T]?: MaybeComputedRefOrFalsy<T[key]>;
15
- };
16
- type MaybeComputedRefEntriesOnly<T> = {
17
- [key in keyof T]?: MaybeComputedRefOrFalsy<T[key]>;
4
+ type MaybeFalsey<T> = T | Falsey;
5
+ type ResolvableValue<T> = MaybeFalsey<T> | (() => MaybeFalsey<T>) | ComputedRef<MaybeFalsey<T>> | Ref<MaybeFalsey<T>>;
6
+ type ResolvableArray<T> = ResolvableValue<ResolvableValue<T>[]>;
7
+ type ResolvableProperties<T> = {
8
+ [key in keyof T]?: ResolvableValue<T[key]>;
18
9
  };
19
10
 
20
- interface HtmlAttr extends Omit<BaseHtmlAttr, 'class'> {
11
+ interface HtmlAttr extends Omit<BaseHtmlAttr, 'class' | 'style'> {
21
12
  /**
22
13
  * The class global attribute is a space-separated list of the case-sensitive classes of the element.
23
14
  *
24
15
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
25
16
  */
26
- class?: MaybeArray<MaybeComputedRef<string>> | Record<string, MaybeComputedRef<boolean>>;
17
+ class?: MaybeArray<ResolvableValue<Falsey | Stringable> | Record<string, ResolvableValue<Falsey | Stringable>>>;
18
+ /**
19
+ * The class global attribute is a space-separated list of the case-sensitive classes of the element.
20
+ *
21
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
22
+ */
23
+ style?: MaybeArray<ResolvableValue<Falsey | Stringable> | ResolvableProperties<CSSProperties>>;
27
24
  }
28
25
  interface BodyAttr extends Omit<BaseBodyAttr, 'class' | 'style'> {
29
26
  /**
@@ -31,24 +28,26 @@ interface BodyAttr extends Omit<BaseBodyAttr, 'class' | 'style'> {
31
28
  *
32
29
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
33
30
  */
34
- class?: MaybeArray<MaybeComputedRef<string>> | Record<string, MaybeComputedRef<boolean>>;
31
+ class?: MaybeArray<ResolvableValue<Falsey | Stringable>> | Record<string, ResolvableValue<Falsey | Stringable>>;
35
32
  /**
36
33
  * The class global attribute is a space-separated list of the case-sensitive classes of the element.
37
34
  *
38
35
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
39
36
  */
40
- style?: MaybeArray<MaybeComputedRef<string>> | Record<string, MaybeComputedRef<string | boolean>>;
37
+ style?: MaybeArray<ResolvableValue<string>> | ResolvableProperties<CSSProperties>;
41
38
  }
42
- type Title = MaybeComputedRef<Title$1>;
39
+ type Title = ResolvableValue<Stringable | Falsey> | ResolvableProperties<({
40
+ textContent: Stringable;
41
+ } & SchemaAugmentations['title'])>;
43
42
  type TitleTemplate = TitleTemplate$1 | Ref<TitleTemplate$1> | ((title?: string) => TitleTemplate$1);
44
- type Base<E extends EntryAugmentation = Record<string, any>> = MaybeComputedRef<MaybeComputedRefEntries<Base$1<E>>>;
45
- type Link<E extends EntryAugmentation = Record<string, any>> = MaybeComputedRefEntries<Link$1<E>>;
46
- type Meta<E extends EntryAugmentation = Record<string, any>> = MaybeComputedRefEntries<Meta$1<E>>;
47
- type Style<E extends EntryAugmentation = Record<string, any>> = MaybeComputedRefEntries<Style$1<E>>;
48
- type Script<E extends EntryAugmentation = Record<string, any>> = MaybeComputedRefEntries<Script$1<E>>;
49
- type Noscript<E extends EntryAugmentation = Record<string, any>> = MaybeComputedRefEntries<Noscript$1<E>>;
50
- type HtmlAttributes<E extends EntryAugmentation = Record<string, any>> = MaybeComputedRef<MaybeComputedRefEntries<HtmlAttr & DataKeys & SchemaAugmentations['htmlAttrs'] & DefinedValueOrEmptyObject<E>>>;
51
- type BodyAttributes<E extends EntryAugmentation = Record<string, any>> = MaybeComputedRef<MaybeComputedRefEntries<BodyAttr & DataKeys & SchemaAugmentations['bodyAttrs'] & DefinedValueOrEmptyObject<E>> & MaybeEventFnHandlers<BodyEvents>>;
43
+ type Base<E extends EntryAugmentation = Record<string, any>> = ResolvableProperties<Base$1 & SchemaAugmentations['base']> & DefinedValueOrEmptyObject<E>;
44
+ type Link<E extends EntryAugmentation = Record<string, any>> = ResolvableProperties<LinkBase & DataKeys & SchemaAugmentations['link']> & MaybeEventFnHandlers<HttpEventAttributes> & DefinedValueOrEmptyObject<E>;
45
+ type Meta<E extends EntryAugmentation = Record<string, any>> = ResolvableProperties<BaseMeta & DataKeys & SchemaAugmentations['meta']> & DefinedValueOrEmptyObject<E>;
46
+ type Style<E extends EntryAugmentation = Record<string, any>> = ResolvableProperties<Style$1 & DataKeys & SchemaAugmentations['style']> & DefinedValueOrEmptyObject<E>;
47
+ type Script<E extends EntryAugmentation = Record<string, any>> = ResolvableProperties<ScriptBase & DataKeys & SchemaAugmentations['script']> & MaybeEventFnHandlers<HttpEventAttributes> & DefinedValueOrEmptyObject<E>;
48
+ type Noscript<E extends EntryAugmentation = Record<string, any>> = ResolvableProperties<Noscript$1 & DataKeys & SchemaAugmentations['noscript']> & DefinedValueOrEmptyObject<E>;
49
+ type HtmlAttributes<E extends EntryAugmentation = Record<string, any>> = ResolvableProperties<HtmlAttr & DataKeys & SchemaAugmentations['htmlAttrs']> & DefinedValueOrEmptyObject<E>;
50
+ type BodyAttributes<E extends EntryAugmentation = Record<string, any>> = ResolvableProperties<BodyAttr & DataKeys & SchemaAugmentations['bodyAttrs']> & MaybeEventFnHandlers<BodyEvents> & DefinedValueOrEmptyObject<E>;
52
51
  interface ReactiveHead<E extends MergeHead = MergeHead> {
53
52
  /**
54
53
  * The `<title>` HTML element defines the document's title that is shown in a browser's title bar or a page's tab.
@@ -64,9 +63,9 @@ interface ReactiveHead<E extends MergeHead = MergeHead> {
64
63
  /**
65
64
  * Variables used to substitute in the title and meta content.
66
65
  */
67
- templateParams?: MaybeComputedRefEntries<{
66
+ templateParams?: ResolvableProperties<{
68
67
  separator?: '|' | '-' | '·' | string;
69
- } & Record<string, null | string | MaybeComputedRefEntries<Record<string, null | string>>>>;
68
+ } & Record<string, Stringable | Falsey | ResolvableProperties<Record<string, Stringable | Falsey>>>>;
70
69
  /**
71
70
  * The `<base>` HTML element specifies the base URL to use for all relative URLs in a document.
72
71
  * There can be only one <base> element in a document.
@@ -81,33 +80,33 @@ interface ReactiveHead<E extends MergeHead = MergeHead> {
81
80
  *
82
81
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-as
83
82
  */
84
- link?: MaybeComputedRef<Link<E['link']>[]>;
83
+ link?: ResolvableArray<Link<E['link']>>;
85
84
  /**
86
85
  * The `<meta>` element represents metadata that cannot be expressed in other HTML elements, like `<link>` or `<script>`.
87
86
  *
88
87
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
89
88
  */
90
- meta?: MaybeComputedRef<Meta<E['meta']>[]>;
89
+ meta?: ResolvableArray<Meta<E['meta']>>;
91
90
  /**
92
91
  * The `<style>` HTML element contains style information for a document, or part of a document.
93
92
  * It contains CSS, which is applied to the contents of the document containing the `<style>` element.
94
93
  *
95
94
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style
96
95
  */
97
- style?: MaybeComputedRef<(Style<E['style']> | string)[]>;
96
+ style?: ResolvableArray<(Style<E['style']> | string)>;
98
97
  /**
99
98
  * The `<script>` HTML element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code.
100
99
  *
101
100
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
102
101
  */
103
- script?: MaybeComputedRef<(Script<E['script']> | string)[]>;
102
+ script?: ResolvableArray<(Script<E['script']> | string)>;
104
103
  /**
105
104
  * The `<noscript>` HTML element defines a section of HTML to be inserted if a script type on the page is unsupported
106
105
  * or if scripting is currently turned off in the browser.
107
106
  *
108
107
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript
109
108
  */
110
- noscript?: MaybeComputedRef<(Noscript<E['noscript']> | string)[]>;
109
+ noscript?: ResolvableArray<(Noscript<E['noscript']> | string)>;
111
110
  /**
112
111
  * Attributes for the `<html>` HTML element.
113
112
  *
@@ -124,21 +123,11 @@ interface ReactiveHead<E extends MergeHead = MergeHead> {
124
123
  type UseHeadOptions = Omit<HeadEntryOptions, 'head'> & {
125
124
  head?: VueHeadClient<any>;
126
125
  };
127
- type UseHeadInput<T extends MergeHead = Record<string, any>> = MaybeComputedRef<ReactiveHead<T>>;
128
- type UseSeoMetaInput = MaybeComputedRefEntriesOnly<MetaFlatInput> & {
126
+ type UseHeadInput<T extends MergeHead = Record<string, any>> = ResolvableValue<ReactiveHead<T>>;
127
+ type UseSeoMetaInput = ResolvableProperties<MetaFlatInput> & {
129
128
  title?: ReactiveHead['title'];
130
129
  titleTemplate?: ReactiveHead['titleTemplate'];
131
130
  };
132
- type VueHeadClient<T extends MergeHead> = Unhead<MaybeComputedRef<ReactiveHead<T>>> & Plugin;
133
-
134
- interface HeadSafe extends Pick<ReactiveHead, 'title' | 'titleTemplate' | 'templateParams'> {
135
- meta?: MaybeComputedRefEntries<SafeMeta>[];
136
- link?: MaybeComputedRefEntries<SafeLink>[];
137
- noscript?: MaybeComputedRefEntries<SafeNoscript>[];
138
- script?: MaybeComputedRefEntries<SafeScript>[];
139
- htmlAttrs?: MaybeComputedRefEntries<SafeHtmlAttr>;
140
- bodyAttrs?: MaybeComputedRefEntries<SafeBodyAttr>;
141
- }
142
- type UseHeadSafeInput = MaybeComputedRef<HeadSafe>;
131
+ type VueHeadClient<T extends MergeHead> = Unhead<ResolvableValue<ReactiveHead<T>>> & Plugin;
143
132
 
144
- export { type BodyAttr as B, type HeadSafe as H, type Link as L, type Meta as M, type Noscript as N, type ReactiveHead as R, type Style as S, type Title as T, type UseHeadInput as U, type VueHeadClient as V, type UseHeadOptions as a, type UseHeadSafeInput as b, type UseSeoMetaInput as c, type HtmlAttr as d, type TitleTemplate as e, type Base as f, type Script as g, type HtmlAttributes as h, type BodyAttributes as i, type MaybeReadonlyRef as j, type MaybeComputedRef as k, type MaybeComputedRefOrFalsy as l, type MaybeComputedRefOrPromise as m, type MaybeComputedRefEntries as n, type MaybeComputedRefEntriesOnly as o, resolveUnrefHeadInput as r };
133
+ export type { BodyAttr as B, HtmlAttr as H, Link as L, Meta as M, Noscript as N, ReactiveHead as R, Style as S, Title as T, UseHeadInput as U, VueHeadClient as V, UseHeadOptions as a, UseSeoMetaInput as b, TitleTemplate as c, Base as d, Script as e, HtmlAttributes as f, BodyAttributes as g, MaybeFalsey as h, ResolvableValue as i, ResolvableArray as j, ResolvableProperties as k };
@@ -1,29 +1,26 @@
1
- import { BaseHtmlAttr, MaybeArray, BaseBodyAttr, Title as Title$1, TitleTemplate as TitleTemplate$1, EntryAugmentation, Base as Base$1, Link as Link$1, Meta as Meta$1, Style as Style$1, Script as Script$1, Noscript as Noscript$1, DataKeys, SchemaAugmentations, DefinedValueOrEmptyObject, MaybeEventFnHandlers, BodyEvents, MergeHead, HeadEntryOptions, MetaFlatInput, Unhead, SafeMeta, SafeLink, SafeNoscript, SafeScript, SafeHtmlAttr, SafeBodyAttr } from '@unhead/schema';
2
- import { ComputedRef, Ref, Plugin } from 'vue';
1
+ import { Falsey, MergeHead, Unhead, Stringable, SchemaAugmentations, TitleTemplate as TitleTemplate$1, EntryAugmentation, Base as Base$1, DefinedValueOrEmptyObject, LinkBase, DataKeys, MaybeEventFnHandlers, HttpEventAttributes, BaseMeta, Style as Style$1, ScriptBase, Noscript as Noscript$1, BaseHtmlAttr, MaybeArray, BaseBodyAttr, BodyEvents, HeadEntryOptions, MetaFlatInput } from 'unhead/types';
2
+ import { ComputedRef, Ref, CSSProperties, Plugin } from 'vue';
3
3
 
4
- declare function resolveUnrefHeadInput(ref: any): any;
5
-
6
- type MaybeReadonlyRef<T> = ComputedRef<T>;
7
- type MaybeComputedRef<T> = T | MaybeReadonlyRef<T> | Ref<T>;
8
- type MaybeComputedRefOrFalsy<T> = T | MaybeReadonlyRef<T> | Ref<T>;
9
- /**
10
- * @deprecated Use MaybeComputedRefOrFalsy
11
- */
12
- type MaybeComputedRefOrPromise<T> = MaybeComputedRefOrFalsy<T>;
13
- type MaybeComputedRefEntries<T> = MaybeComputedRef<T> | {
14
- [key in keyof T]?: MaybeComputedRefOrFalsy<T[key]>;
15
- };
16
- type MaybeComputedRefEntriesOnly<T> = {
17
- [key in keyof T]?: MaybeComputedRefOrFalsy<T[key]>;
4
+ type MaybeFalsey<T> = T | Falsey;
5
+ type ResolvableValue<T> = MaybeFalsey<T> | (() => MaybeFalsey<T>) | ComputedRef<MaybeFalsey<T>> | Ref<MaybeFalsey<T>>;
6
+ type ResolvableArray<T> = ResolvableValue<ResolvableValue<T>[]>;
7
+ type ResolvableProperties<T> = {
8
+ [key in keyof T]?: ResolvableValue<T[key]>;
18
9
  };
19
10
 
20
- interface HtmlAttr extends Omit<BaseHtmlAttr, 'class'> {
11
+ interface HtmlAttr extends Omit<BaseHtmlAttr, 'class' | 'style'> {
21
12
  /**
22
13
  * The class global attribute is a space-separated list of the case-sensitive classes of the element.
23
14
  *
24
15
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
25
16
  */
26
- class?: MaybeArray<MaybeComputedRef<string>> | Record<string, MaybeComputedRef<boolean>>;
17
+ class?: MaybeArray<ResolvableValue<Falsey | Stringable> | Record<string, ResolvableValue<Falsey | Stringable>>>;
18
+ /**
19
+ * The class global attribute is a space-separated list of the case-sensitive classes of the element.
20
+ *
21
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
22
+ */
23
+ style?: MaybeArray<ResolvableValue<Falsey | Stringable> | ResolvableProperties<CSSProperties>>;
27
24
  }
28
25
  interface BodyAttr extends Omit<BaseBodyAttr, 'class' | 'style'> {
29
26
  /**
@@ -31,24 +28,26 @@ interface BodyAttr extends Omit<BaseBodyAttr, 'class' | 'style'> {
31
28
  *
32
29
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
33
30
  */
34
- class?: MaybeArray<MaybeComputedRef<string>> | Record<string, MaybeComputedRef<boolean>>;
31
+ class?: MaybeArray<ResolvableValue<Falsey | Stringable>> | Record<string, ResolvableValue<Falsey | Stringable>>;
35
32
  /**
36
33
  * The class global attribute is a space-separated list of the case-sensitive classes of the element.
37
34
  *
38
35
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
39
36
  */
40
- style?: MaybeArray<MaybeComputedRef<string>> | Record<string, MaybeComputedRef<string | boolean>>;
37
+ style?: MaybeArray<ResolvableValue<string>> | ResolvableProperties<CSSProperties>;
41
38
  }
42
- type Title = MaybeComputedRef<Title$1>;
39
+ type Title = ResolvableValue<Stringable | Falsey> | ResolvableProperties<({
40
+ textContent: Stringable;
41
+ } & SchemaAugmentations['title'])>;
43
42
  type TitleTemplate = TitleTemplate$1 | Ref<TitleTemplate$1> | ((title?: string) => TitleTemplate$1);
44
- type Base<E extends EntryAugmentation = Record<string, any>> = MaybeComputedRef<MaybeComputedRefEntries<Base$1<E>>>;
45
- type Link<E extends EntryAugmentation = Record<string, any>> = MaybeComputedRefEntries<Link$1<E>>;
46
- type Meta<E extends EntryAugmentation = Record<string, any>> = MaybeComputedRefEntries<Meta$1<E>>;
47
- type Style<E extends EntryAugmentation = Record<string, any>> = MaybeComputedRefEntries<Style$1<E>>;
48
- type Script<E extends EntryAugmentation = Record<string, any>> = MaybeComputedRefEntries<Script$1<E>>;
49
- type Noscript<E extends EntryAugmentation = Record<string, any>> = MaybeComputedRefEntries<Noscript$1<E>>;
50
- type HtmlAttributes<E extends EntryAugmentation = Record<string, any>> = MaybeComputedRef<MaybeComputedRefEntries<HtmlAttr & DataKeys & SchemaAugmentations['htmlAttrs'] & DefinedValueOrEmptyObject<E>>>;
51
- type BodyAttributes<E extends EntryAugmentation = Record<string, any>> = MaybeComputedRef<MaybeComputedRefEntries<BodyAttr & DataKeys & SchemaAugmentations['bodyAttrs'] & DefinedValueOrEmptyObject<E>> & MaybeEventFnHandlers<BodyEvents>>;
43
+ type Base<E extends EntryAugmentation = Record<string, any>> = ResolvableProperties<Base$1 & SchemaAugmentations['base']> & DefinedValueOrEmptyObject<E>;
44
+ type Link<E extends EntryAugmentation = Record<string, any>> = ResolvableProperties<LinkBase & DataKeys & SchemaAugmentations['link']> & MaybeEventFnHandlers<HttpEventAttributes> & DefinedValueOrEmptyObject<E>;
45
+ type Meta<E extends EntryAugmentation = Record<string, any>> = ResolvableProperties<BaseMeta & DataKeys & SchemaAugmentations['meta']> & DefinedValueOrEmptyObject<E>;
46
+ type Style<E extends EntryAugmentation = Record<string, any>> = ResolvableProperties<Style$1 & DataKeys & SchemaAugmentations['style']> & DefinedValueOrEmptyObject<E>;
47
+ type Script<E extends EntryAugmentation = Record<string, any>> = ResolvableProperties<ScriptBase & DataKeys & SchemaAugmentations['script']> & MaybeEventFnHandlers<HttpEventAttributes> & DefinedValueOrEmptyObject<E>;
48
+ type Noscript<E extends EntryAugmentation = Record<string, any>> = ResolvableProperties<Noscript$1 & DataKeys & SchemaAugmentations['noscript']> & DefinedValueOrEmptyObject<E>;
49
+ type HtmlAttributes<E extends EntryAugmentation = Record<string, any>> = ResolvableProperties<HtmlAttr & DataKeys & SchemaAugmentations['htmlAttrs']> & DefinedValueOrEmptyObject<E>;
50
+ type BodyAttributes<E extends EntryAugmentation = Record<string, any>> = ResolvableProperties<BodyAttr & DataKeys & SchemaAugmentations['bodyAttrs']> & MaybeEventFnHandlers<BodyEvents> & DefinedValueOrEmptyObject<E>;
52
51
  interface ReactiveHead<E extends MergeHead = MergeHead> {
53
52
  /**
54
53
  * The `<title>` HTML element defines the document's title that is shown in a browser's title bar or a page's tab.
@@ -64,9 +63,9 @@ interface ReactiveHead<E extends MergeHead = MergeHead> {
64
63
  /**
65
64
  * Variables used to substitute in the title and meta content.
66
65
  */
67
- templateParams?: MaybeComputedRefEntries<{
66
+ templateParams?: ResolvableProperties<{
68
67
  separator?: '|' | '-' | '·' | string;
69
- } & Record<string, null | string | MaybeComputedRefEntries<Record<string, null | string>>>>;
68
+ } & Record<string, Stringable | Falsey | ResolvableProperties<Record<string, Stringable | Falsey>>>>;
70
69
  /**
71
70
  * The `<base>` HTML element specifies the base URL to use for all relative URLs in a document.
72
71
  * There can be only one <base> element in a document.
@@ -81,33 +80,33 @@ interface ReactiveHead<E extends MergeHead = MergeHead> {
81
80
  *
82
81
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-as
83
82
  */
84
- link?: MaybeComputedRef<Link<E['link']>[]>;
83
+ link?: ResolvableArray<Link<E['link']>>;
85
84
  /**
86
85
  * The `<meta>` element represents metadata that cannot be expressed in other HTML elements, like `<link>` or `<script>`.
87
86
  *
88
87
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
89
88
  */
90
- meta?: MaybeComputedRef<Meta<E['meta']>[]>;
89
+ meta?: ResolvableArray<Meta<E['meta']>>;
91
90
  /**
92
91
  * The `<style>` HTML element contains style information for a document, or part of a document.
93
92
  * It contains CSS, which is applied to the contents of the document containing the `<style>` element.
94
93
  *
95
94
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style
96
95
  */
97
- style?: MaybeComputedRef<(Style<E['style']> | string)[]>;
96
+ style?: ResolvableArray<(Style<E['style']> | string)>;
98
97
  /**
99
98
  * The `<script>` HTML element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code.
100
99
  *
101
100
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
102
101
  */
103
- script?: MaybeComputedRef<(Script<E['script']> | string)[]>;
102
+ script?: ResolvableArray<(Script<E['script']> | string)>;
104
103
  /**
105
104
  * The `<noscript>` HTML element defines a section of HTML to be inserted if a script type on the page is unsupported
106
105
  * or if scripting is currently turned off in the browser.
107
106
  *
108
107
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript
109
108
  */
110
- noscript?: MaybeComputedRef<(Noscript<E['noscript']> | string)[]>;
109
+ noscript?: ResolvableArray<(Noscript<E['noscript']> | string)>;
111
110
  /**
112
111
  * Attributes for the `<html>` HTML element.
113
112
  *
@@ -124,21 +123,11 @@ interface ReactiveHead<E extends MergeHead = MergeHead> {
124
123
  type UseHeadOptions = Omit<HeadEntryOptions, 'head'> & {
125
124
  head?: VueHeadClient<any>;
126
125
  };
127
- type UseHeadInput<T extends MergeHead = Record<string, any>> = MaybeComputedRef<ReactiveHead<T>>;
128
- type UseSeoMetaInput = MaybeComputedRefEntriesOnly<MetaFlatInput> & {
126
+ type UseHeadInput<T extends MergeHead = Record<string, any>> = ResolvableValue<ReactiveHead<T>>;
127
+ type UseSeoMetaInput = ResolvableProperties<MetaFlatInput> & {
129
128
  title?: ReactiveHead['title'];
130
129
  titleTemplate?: ReactiveHead['titleTemplate'];
131
130
  };
132
- type VueHeadClient<T extends MergeHead> = Unhead<MaybeComputedRef<ReactiveHead<T>>> & Plugin;
133
-
134
- interface HeadSafe extends Pick<ReactiveHead, 'title' | 'titleTemplate' | 'templateParams'> {
135
- meta?: MaybeComputedRefEntries<SafeMeta>[];
136
- link?: MaybeComputedRefEntries<SafeLink>[];
137
- noscript?: MaybeComputedRefEntries<SafeNoscript>[];
138
- script?: MaybeComputedRefEntries<SafeScript>[];
139
- htmlAttrs?: MaybeComputedRefEntries<SafeHtmlAttr>;
140
- bodyAttrs?: MaybeComputedRefEntries<SafeBodyAttr>;
141
- }
142
- type UseHeadSafeInput = MaybeComputedRef<HeadSafe>;
131
+ type VueHeadClient<T extends MergeHead> = Unhead<ResolvableValue<ReactiveHead<T>>> & Plugin;
143
132
 
144
- export { type BodyAttr as B, type HeadSafe as H, type Link as L, type Meta as M, type Noscript as N, type ReactiveHead as R, type Style as S, type Title as T, type UseHeadInput as U, type VueHeadClient as V, type UseHeadOptions as a, type UseHeadSafeInput as b, type UseSeoMetaInput as c, type HtmlAttr as d, type TitleTemplate as e, type Base as f, type Script as g, type HtmlAttributes as h, type BodyAttributes as i, type MaybeReadonlyRef as j, type MaybeComputedRef as k, type MaybeComputedRefOrFalsy as l, type MaybeComputedRefOrPromise as m, type MaybeComputedRefEntries as n, type MaybeComputedRefEntriesOnly as o, resolveUnrefHeadInput as r };
133
+ export type { BodyAttr as B, HtmlAttr as H, Link as L, Meta as M, Noscript as N, ReactiveHead as R, Style as S, Title as T, UseHeadInput as U, VueHeadClient as V, UseHeadOptions as a, UseSeoMetaInput as b, TitleTemplate as c, Base as d, Script as e, HtmlAttributes as f, BodyAttributes as g, MaybeFalsey as h, ResolvableValue as i, ResolvableArray as j, ResolvableProperties as k };
@@ -1,5 +1,5 @@
1
1
  import { getCurrentInstance } from 'vue';
2
- import { u as useHead } from './vue.DUgB2y83.mjs';
2
+ import { u as useHead } from './vue.j4SPrdI5.mjs';
3
3
 
4
4
  const VueHeadMixin = {
5
5
  created() {
@@ -0,0 +1,7 @@
1
+ import { toValue, isRef } from 'vue';
2
+
3
+ const VueResolver = (_, value) => {
4
+ return isRef(value) ? toValue(value) : value;
5
+ };
6
+
7
+ export { VueResolver as V };
@@ -0,0 +1,84 @@
1
+ import { SafeInputPlugin, FlatMetaPlugin } from 'unhead/plugins';
2
+ import { walkResolver } from 'unhead/utils';
3
+ import { hasInjectionContext, inject, ref, watchEffect, getCurrentInstance, onBeforeUnmount, onDeactivated, onActivated } from 'vue';
4
+ import { V as VueResolver } from './vue.N9zWjxoK.mjs';
5
+
6
+ const headSymbol = "usehead";
7
+ function vueInstall(head) {
8
+ const plugin = {
9
+ install(app) {
10
+ app.config.globalProperties.$unhead = head;
11
+ app.config.globalProperties.$head = head;
12
+ app.provide(headSymbol, head);
13
+ }
14
+ };
15
+ return plugin.install;
16
+ }
17
+
18
+ function injectHead() {
19
+ if (hasInjectionContext()) {
20
+ const instance = inject(headSymbol);
21
+ if (!instance) {
22
+ throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");
23
+ }
24
+ return instance;
25
+ }
26
+ throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");
27
+ }
28
+ function useHead(input = {}, options = {}) {
29
+ const head = options.head || injectHead();
30
+ return head.ssr ? head.push(input, options) : clientUseHead(head, input, options);
31
+ }
32
+ function clientUseHead(head, input, options = {}) {
33
+ const deactivated = ref(false);
34
+ let entry;
35
+ watchEffect(() => {
36
+ const i = deactivated.value ? {} : walkResolver(input, VueResolver);
37
+ if (entry) {
38
+ entry.patch(i);
39
+ } else {
40
+ entry = head.push(i, options);
41
+ }
42
+ });
43
+ const vm = getCurrentInstance();
44
+ if (vm) {
45
+ onBeforeUnmount(() => {
46
+ entry.dispose();
47
+ });
48
+ onDeactivated(() => {
49
+ deactivated.value = true;
50
+ });
51
+ onActivated(() => {
52
+ deactivated.value = false;
53
+ });
54
+ }
55
+ return entry;
56
+ }
57
+ function useHeadSafe(input = {}, options = {}) {
58
+ const head = options.head || injectHead();
59
+ head.use(SafeInputPlugin);
60
+ options._safe = true;
61
+ return useHead(input, options);
62
+ }
63
+ function useSeoMeta(input = {}, options = {}) {
64
+ const head = options.head || injectHead();
65
+ head.use(FlatMetaPlugin);
66
+ const { title, titleTemplate, ...meta } = input;
67
+ return useHead({
68
+ title,
69
+ titleTemplate,
70
+ // @ts-expect-error runtime type
71
+ _flatMeta: meta
72
+ }, options);
73
+ }
74
+ function useServerHead(input = {}, options = {}) {
75
+ return useHead(input, { ...options, mode: "server" });
76
+ }
77
+ function useServerHeadSafe(input = {}, options = {}) {
78
+ return useHeadSafe(input, { ...options, mode: "server" });
79
+ }
80
+ function useServerSeoMeta(input = {}, options) {
81
+ return useSeoMeta(input, { ...options, mode: "server" });
82
+ }
83
+
84
+ export { useHeadSafe as a, useSeoMeta as b, useServerHead as c, useServerHeadSafe as d, useServerSeoMeta as e, headSymbol as h, injectHead as i, useHead as u, vueInstall as v };
@@ -0,0 +1,66 @@
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';
3
+ import { i as ResolvableValue, k as ResolvableProperties } from './shared/vue.C97gXjQS.mjs';
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
+ import 'vue';
6
+
7
+ type SafeBodyAttr = ResolvableProperties<Pick<BodyAttributes, 'id' | 'class' | 'style'> & DataKeys & SchemaAugmentations['bodyAttrs']>;
8
+ type SafeHtmlAttr = ResolvableProperties<Pick<HtmlAttributes, 'id' | 'class' | 'style' | 'lang' | 'dir'> & DataKeys & SchemaAugmentations['htmlAttrs']>;
9
+ type SafeMeta = ResolvableProperties<Pick<BaseMeta, 'id' | 'name' | 'property' | 'charset' | 'content' | 'media'> & DataKeys & SchemaAugmentations['meta']>;
10
+ type SafeLink = ResolvableProperties<Pick<LinkBase, 'id' | 'color' | 'crossorigin' | 'fetchpriority' | 'href' | 'hreflang' | 'imagesrcset' | 'imagesizes' | 'integrity' | 'media' | 'referrerpolicy' | 'rel' | 'sizes' | 'type'> & DataKeys & SchemaAugmentations['link']>;
11
+ type SafeScript = ResolvableProperties<Pick<ScriptBase, 'id' | 'type' | 'nonce' | 'blocking'> & DataKeys & {
12
+ textContent?: string;
13
+ } & SchemaAugmentations['script']>;
14
+ type SafeNoscript = ResolvableProperties<Pick<Noscript, 'id' | 'textContent'> & DataKeys & SchemaAugmentations['noscript']>;
15
+ type SafeStyle = ResolvableProperties<Pick<Style, 'id' | 'media' | 'textContent' | 'nonce' | 'title' | 'blocking'> & DataKeys & SchemaAugmentations['style']>;
16
+ interface HeadSafe extends Pick<Head, 'title' | 'titleTemplate' | 'templateParams'> {
17
+ /**
18
+ * The `<link>` HTML element specifies relationships between the current document and an external resource.
19
+ * This element is most commonly used to link to stylesheets, but is also used to establish site icons
20
+ * (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things.
21
+ *
22
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-as
23
+ */
24
+ link?: ResolvableValue<ResolvableValue<SafeLink[]>>;
25
+ /**
26
+ * The `<meta>` element represents metadata that cannot be expressed in other HTML elements, like `<link>` or `<script>`.
27
+ *
28
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
29
+ */
30
+ meta?: ResolvableValue<ResolvableValue<SafeMeta>[]>;
31
+ /**
32
+ * The `<style>` HTML element contains style information for a document, or part of a document.
33
+ * It contains CSS, which is applied to the contents of the document containing the `<style>` element.
34
+ *
35
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style
36
+ */
37
+ style?: ResolvableValue<ResolvableValue<(SafeStyle | string)>[]>;
38
+ /**
39
+ * The `<script>` HTML element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code.
40
+ *
41
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
42
+ */
43
+ script?: ResolvableValue<ResolvableValue<(SafeScript | string)>[]>;
44
+ /**
45
+ * The `<noscript>` HTML element defines a section of HTML to be inserted if a script type on the page is unsupported
46
+ * or if scripting is currently turned off in the browser.
47
+ *
48
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript
49
+ */
50
+ noscript?: ResolvableValue<ResolvableValue<(SafeNoscript | string)>[]>;
51
+ /**
52
+ * Attributes for the `<html>` HTML element.
53
+ *
54
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html
55
+ */
56
+ htmlAttrs?: ResolvableValue<SafeHtmlAttr>;
57
+ /**
58
+ * Attributes for the `<body>` HTML element.
59
+ *
60
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body
61
+ */
62
+ bodyAttrs?: ResolvableValue<SafeBodyAttr>;
63
+ }
64
+ type UseHeadSafeInput = ResolvableValue<HeadSafe>;
65
+
66
+ export { type HeadSafe, ResolvableProperties, ResolvableValue, type SafeBodyAttr, type SafeHtmlAttr, type SafeLink, type SafeMeta, type SafeNoscript, type SafeScript, type SafeStyle, type UseHeadSafeInput };
@@ -0,0 +1,66 @@
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';
3
+ import { i as ResolvableValue, k as ResolvableProperties } from './shared/vue.C97gXjQS.js';
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
+ import 'vue';
6
+
7
+ type SafeBodyAttr = ResolvableProperties<Pick<BodyAttributes, 'id' | 'class' | 'style'> & DataKeys & SchemaAugmentations['bodyAttrs']>;
8
+ type SafeHtmlAttr = ResolvableProperties<Pick<HtmlAttributes, 'id' | 'class' | 'style' | 'lang' | 'dir'> & DataKeys & SchemaAugmentations['htmlAttrs']>;
9
+ type SafeMeta = ResolvableProperties<Pick<BaseMeta, 'id' | 'name' | 'property' | 'charset' | 'content' | 'media'> & DataKeys & SchemaAugmentations['meta']>;
10
+ type SafeLink = ResolvableProperties<Pick<LinkBase, 'id' | 'color' | 'crossorigin' | 'fetchpriority' | 'href' | 'hreflang' | 'imagesrcset' | 'imagesizes' | 'integrity' | 'media' | 'referrerpolicy' | 'rel' | 'sizes' | 'type'> & DataKeys & SchemaAugmentations['link']>;
11
+ type SafeScript = ResolvableProperties<Pick<ScriptBase, 'id' | 'type' | 'nonce' | 'blocking'> & DataKeys & {
12
+ textContent?: string;
13
+ } & SchemaAugmentations['script']>;
14
+ type SafeNoscript = ResolvableProperties<Pick<Noscript, 'id' | 'textContent'> & DataKeys & SchemaAugmentations['noscript']>;
15
+ type SafeStyle = ResolvableProperties<Pick<Style, 'id' | 'media' | 'textContent' | 'nonce' | 'title' | 'blocking'> & DataKeys & SchemaAugmentations['style']>;
16
+ interface HeadSafe extends Pick<Head, 'title' | 'titleTemplate' | 'templateParams'> {
17
+ /**
18
+ * The `<link>` HTML element specifies relationships between the current document and an external resource.
19
+ * This element is most commonly used to link to stylesheets, but is also used to establish site icons
20
+ * (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things.
21
+ *
22
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-as
23
+ */
24
+ link?: ResolvableValue<ResolvableValue<SafeLink[]>>;
25
+ /**
26
+ * The `<meta>` element represents metadata that cannot be expressed in other HTML elements, like `<link>` or `<script>`.
27
+ *
28
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
29
+ */
30
+ meta?: ResolvableValue<ResolvableValue<SafeMeta>[]>;
31
+ /**
32
+ * The `<style>` HTML element contains style information for a document, or part of a document.
33
+ * It contains CSS, which is applied to the contents of the document containing the `<style>` element.
34
+ *
35
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style
36
+ */
37
+ style?: ResolvableValue<ResolvableValue<(SafeStyle | string)>[]>;
38
+ /**
39
+ * The `<script>` HTML element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code.
40
+ *
41
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
42
+ */
43
+ script?: ResolvableValue<ResolvableValue<(SafeScript | string)>[]>;
44
+ /**
45
+ * The `<noscript>` HTML element defines a section of HTML to be inserted if a script type on the page is unsupported
46
+ * or if scripting is currently turned off in the browser.
47
+ *
48
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript
49
+ */
50
+ noscript?: ResolvableValue<ResolvableValue<(SafeNoscript | string)>[]>;
51
+ /**
52
+ * Attributes for the `<html>` HTML element.
53
+ *
54
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html
55
+ */
56
+ htmlAttrs?: ResolvableValue<SafeHtmlAttr>;
57
+ /**
58
+ * Attributes for the `<body>` HTML element.
59
+ *
60
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body
61
+ */
62
+ bodyAttrs?: ResolvableValue<SafeBodyAttr>;
63
+ }
64
+ type UseHeadSafeInput = ResolvableValue<HeadSafe>;
65
+
66
+ export { type HeadSafe, ResolvableProperties, ResolvableValue, type SafeBodyAttr, type SafeHtmlAttr, type SafeLink, type SafeMeta, type SafeNoscript, type SafeScript, type SafeStyle, type UseHeadSafeInput };
package/dist/types.mjs ADDED
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,11 @@
1
+ import { PropResolver, ResolvedHead } from 'unhead/types';
2
+ export * from 'unhead/utils';
3
+
4
+ declare const VueResolver: PropResolver;
5
+
6
+ /**
7
+ * @deprecated Use head.resolveTags() instead
8
+ */
9
+ declare function resolveUnrefHeadInput(input: any): ResolvedHead;
10
+
11
+ export { VueResolver, resolveUnrefHeadInput };
@@ -0,0 +1,11 @@
1
+ import { PropResolver, ResolvedHead } from 'unhead/types';
2
+ export * from 'unhead/utils';
3
+
4
+ declare const VueResolver: PropResolver;
5
+
6
+ /**
7
+ * @deprecated Use head.resolveTags() instead
8
+ */
9
+ declare function resolveUnrefHeadInput(input: any): ResolvedHead;
10
+
11
+ export { VueResolver, resolveUnrefHeadInput };