@unhead/vue 2.0.0-alpha.26 → 2.0.0-alpha.28

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/client.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- import { MergeHead, CreateClientHeadOptions } from 'unhead/types';
1
+ import { CreateClientHeadOptions } from 'unhead/types';
2
2
  export { V as VueHeadMixin } from './shared/vue.DnywREVF.mjs';
3
3
  export { renderDOMHead } from 'unhead/client';
4
- import { V as VueHeadClient } from './shared/vue.CZ-wp2QU.mjs';
4
+ import { V as VueHeadClient } from './shared/vue.aRqASu2a.mjs';
5
5
  import 'vue';
6
6
 
7
- declare function createHead<T extends MergeHead>(options?: CreateClientHeadOptions): VueHeadClient<T>;
7
+ declare function createHead(options?: CreateClientHeadOptions): VueHeadClient;
8
8
 
9
9
  export { createHead };
package/dist/client.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { MergeHead, CreateClientHeadOptions } from 'unhead/types';
1
+ import { CreateClientHeadOptions } from 'unhead/types';
2
2
  export { V as VueHeadMixin } from './shared/vue.DnywREVF.js';
3
3
  export { renderDOMHead } from 'unhead/client';
4
- import { V as VueHeadClient } from './shared/vue.CZ-wp2QU.js';
4
+ import { V as VueHeadClient } from './shared/vue.aRqASu2a.js';
5
5
  import 'vue';
6
6
 
7
- declare function createHead<T extends MergeHead>(options?: CreateClientHeadOptions): VueHeadClient<T>;
7
+ declare function createHead(options?: CreateClientHeadOptions): VueHeadClient;
8
8
 
9
9
  export { createHead };
package/dist/client.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createHead as createHead$1, createDebouncedFn, renderDOMHead } from 'unhead/client';
2
2
  export { renderDOMHead } from 'unhead/client';
3
3
  import { nextTick } from 'vue';
4
- import { v as vueInstall } from './shared/vue.j4SPrdI5.mjs';
5
- export { V as VueHeadMixin } from './shared/vue.DBXhY4KI.mjs';
4
+ import { v as vueInstall } from './shared/vue.BYLJNEcq.mjs';
5
+ export { V as VueHeadMixin } from './shared/vue.nvpYXC6D.mjs';
6
6
  import 'unhead/plugins';
7
7
  import 'unhead/utils';
8
8
  import './shared/vue.N9zWjxoK.mjs';
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, onBeforeUnmount, watchEffect } from 'vue';
2
- import { u as useHead } from './shared/vue.j4SPrdI5.mjs';
2
+ import { u as useHead } from './shared/vue.BYLJNEcq.mjs';
3
3
  import 'unhead/plugins';
4
4
  import 'unhead/utils';
5
5
  import './shared/vue.N9zWjxoK.mjs';
package/dist/index.d.mts CHANGED
@@ -1,31 +1,34 @@
1
- export { createHeadCore } from 'unhead';
2
- import { MergeHead, ActiveHeadEntry } from 'unhead/types';
3
- export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, RenderSSRHeadOptions, ResolvableHead, ResolvedBase, ResolvedBodyAttributes, ResolvedHead, ResolvedHtmlAttributes, ResolvedLink, ResolvedMeta, ResolvedNoscript, ResolvedScript, ResolvedStyle, ResolvedTitle, ResolvedTitleTemplate, Unhead } from 'unhead/types';
4
- import { V as VueHeadClient, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput } from './shared/vue.CZ-wp2QU.mjs';
5
- export { d as Base, B as BodyAttr, g as BodyAttributes, H as HtmlAttr, f as HtmlAttributes, L as Link, i as MaybeFalsey, M as Meta, N as Noscript, h as ReactiveHead, k as ResolvableArray, R as ResolvableProperties, j as ResolvableValue, e as Script, S as Style, T as Title, c as TitleTemplate } from './shared/vue.CZ-wp2QU.mjs';
1
+ import { createUnhead } from 'unhead';
2
+ export { createUnhead } from 'unhead';
3
+ import { ActiveHeadEntry } from 'unhead/types';
4
+ export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MetaFlatInput, RenderSSRHeadOptions, ResolvableHead, SerializableHead, Unhead } from 'unhead/types';
5
+ import { V as VueHeadClient, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput } from './shared/vue.aRqASu2a.mjs';
6
+ export { d as Base, B as BodyAttr, g as BodyAttributes, H as HtmlAttr, f as HtmlAttributes, L as Link, h as MaybeFalsy, 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.aRqASu2a.mjs';
6
7
  import { UseHeadSafeInput } from './types.mjs';
7
8
  export { HeadSafe, SafeBodyAttr, SafeHtmlAttr, SafeLink, SafeMeta, SafeNoscript, SafeScript, SafeStyle } from './types.mjs';
8
9
  export { resolveUnrefHeadInput } from './utils.mjs';
9
10
  export { V as VueHeadMixin } from './shared/vue.DnywREVF.mjs';
11
+ export { useScript } from './scripts.mjs';
10
12
  import 'vue';
11
13
  import 'unhead/utils';
14
+ import 'unhead/scripts';
12
15
 
13
16
  declare const unheadVueComposablesImports: {
14
17
  '@unhead/vue': string[];
15
18
  };
16
19
 
17
- declare function injectHead(): VueHeadClient<MergeHead>;
18
- declare function useHead<T extends MergeHead>(input?: UseHeadInput<T>, options?: UseHeadOptions): ActiveHeadEntry<UseHeadInput<T>>;
19
- declare function useHeadSafe(input?: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<any>;
20
- declare function useSeoMeta(input?: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<any>;
20
+ declare function injectHead(): VueHeadClient;
21
+ declare function useHead<I = UseHeadInput>(input?: UseHeadInput, options?: UseHeadOptions): ActiveHeadEntry<I>;
22
+ declare function useHeadSafe(input?: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<UseHeadSafeInput>;
23
+ declare function useSeoMeta(input?: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<UseSeoMetaInput>;
21
24
  /**
22
25
  * @deprecated use `useHead` instead.Advanced use cases should tree shake using import.meta.* if statements.
23
26
  */
24
- declare function useServerHead<T extends MergeHead>(input?: UseHeadInput<T>, options?: UseHeadOptions): ActiveHeadEntry<any>;
27
+ declare function useServerHead<I = UseHeadInput>(input?: UseHeadInput, options?: UseHeadOptions): ActiveHeadEntry<I>;
25
28
  /**
26
29
  * @deprecated use `useHeadSafe` instead.Advanced use cases should tree shake using import.meta.* if statements.
27
30
  */
28
- declare function useServerHeadSafe(input?: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<any>;
31
+ declare function useServerHeadSafe(input?: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<UseHeadSafeInput>;
29
32
  /**
30
33
  * @deprecated use `useSeoMeta` instead.Advanced use cases should tree shake using import.meta.* if statements.
31
34
  */
@@ -33,6 +36,9 @@ declare function useServerSeoMeta(input?: UseSeoMetaInput, options?: UseHeadOpti
33
36
 
34
37
  declare const headSymbol = "usehead";
35
38
 
36
- declare const CapoPlugin: () => {};
39
+ /**
40
+ * @deprecated Use createUnhead
41
+ */
42
+ declare const createCoreHead: typeof createUnhead;
37
43
 
38
- export { CapoPlugin, UseHeadInput, UseHeadOptions, UseHeadSafeInput, UseSeoMetaInput, VueHeadClient, headSymbol, injectHead, unheadVueComposablesImports, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
44
+ export { UseHeadInput, UseHeadOptions, UseHeadSafeInput, UseSeoMetaInput, VueHeadClient, createCoreHead, headSymbol, injectHead, unheadVueComposablesImports, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
package/dist/index.d.ts CHANGED
@@ -1,31 +1,34 @@
1
- export { createHeadCore } from 'unhead';
2
- import { MergeHead, ActiveHeadEntry } from 'unhead/types';
3
- export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, RenderSSRHeadOptions, ResolvableHead, ResolvedBase, ResolvedBodyAttributes, ResolvedHead, ResolvedHtmlAttributes, ResolvedLink, ResolvedMeta, ResolvedNoscript, ResolvedScript, ResolvedStyle, ResolvedTitle, ResolvedTitleTemplate, Unhead } from 'unhead/types';
4
- import { V as VueHeadClient, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput } from './shared/vue.CZ-wp2QU.js';
5
- export { d as Base, B as BodyAttr, g as BodyAttributes, H as HtmlAttr, f as HtmlAttributes, L as Link, i as MaybeFalsey, M as Meta, N as Noscript, h as ReactiveHead, k as ResolvableArray, R as ResolvableProperties, j as ResolvableValue, e as Script, S as Style, T as Title, c as TitleTemplate } from './shared/vue.CZ-wp2QU.js';
1
+ import { createUnhead } from 'unhead';
2
+ export { createUnhead } from 'unhead';
3
+ import { ActiveHeadEntry } from 'unhead/types';
4
+ export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MetaFlatInput, RenderSSRHeadOptions, ResolvableHead, SerializableHead, Unhead } from 'unhead/types';
5
+ import { V as VueHeadClient, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput } from './shared/vue.aRqASu2a.js';
6
+ export { d as Base, B as BodyAttr, g as BodyAttributes, H as HtmlAttr, f as HtmlAttributes, L as Link, h as MaybeFalsy, 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.aRqASu2a.js';
6
7
  import { UseHeadSafeInput } from './types.js';
7
8
  export { HeadSafe, SafeBodyAttr, SafeHtmlAttr, SafeLink, SafeMeta, SafeNoscript, SafeScript, SafeStyle } from './types.js';
8
9
  export { resolveUnrefHeadInput } from './utils.js';
9
10
  export { V as VueHeadMixin } from './shared/vue.DnywREVF.js';
11
+ export { useScript } from './scripts.js';
10
12
  import 'vue';
11
13
  import 'unhead/utils';
14
+ import 'unhead/scripts';
12
15
 
13
16
  declare const unheadVueComposablesImports: {
14
17
  '@unhead/vue': string[];
15
18
  };
16
19
 
17
- declare function injectHead(): VueHeadClient<MergeHead>;
18
- declare function useHead<T extends MergeHead>(input?: UseHeadInput<T>, options?: UseHeadOptions): ActiveHeadEntry<UseHeadInput<T>>;
19
- declare function useHeadSafe(input?: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<any>;
20
- declare function useSeoMeta(input?: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<any>;
20
+ declare function injectHead(): VueHeadClient;
21
+ declare function useHead<I = UseHeadInput>(input?: UseHeadInput, options?: UseHeadOptions): ActiveHeadEntry<I>;
22
+ declare function useHeadSafe(input?: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<UseHeadSafeInput>;
23
+ declare function useSeoMeta(input?: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<UseSeoMetaInput>;
21
24
  /**
22
25
  * @deprecated use `useHead` instead.Advanced use cases should tree shake using import.meta.* if statements.
23
26
  */
24
- declare function useServerHead<T extends MergeHead>(input?: UseHeadInput<T>, options?: UseHeadOptions): ActiveHeadEntry<any>;
27
+ declare function useServerHead<I = UseHeadInput>(input?: UseHeadInput, options?: UseHeadOptions): ActiveHeadEntry<I>;
25
28
  /**
26
29
  * @deprecated use `useHeadSafe` instead.Advanced use cases should tree shake using import.meta.* if statements.
27
30
  */
28
- declare function useServerHeadSafe(input?: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<any>;
31
+ declare function useServerHeadSafe(input?: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<UseHeadSafeInput>;
29
32
  /**
30
33
  * @deprecated use `useSeoMeta` instead.Advanced use cases should tree shake using import.meta.* if statements.
31
34
  */
@@ -33,6 +36,9 @@ declare function useServerSeoMeta(input?: UseSeoMetaInput, options?: UseHeadOpti
33
36
 
34
37
  declare const headSymbol = "usehead";
35
38
 
36
- declare const CapoPlugin: () => {};
39
+ /**
40
+ * @deprecated Use createUnhead
41
+ */
42
+ declare const createCoreHead: typeof createUnhead;
37
43
 
38
- export { CapoPlugin, UseHeadInput, UseHeadOptions, UseHeadSafeInput, UseSeoMetaInput, VueHeadClient, headSymbol, injectHead, unheadVueComposablesImports, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
44
+ export { UseHeadInput, UseHeadOptions, UseHeadSafeInput, UseSeoMetaInput, VueHeadClient, createCoreHead, headSymbol, injectHead, unheadVueComposablesImports, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
package/dist/index.mjs CHANGED
@@ -1,16 +1,19 @@
1
- export { createHeadCore } from 'unhead';
2
- export { h as headSymbol, i as injectHead, u as useHead, a as useHeadSafe, b as useSeoMeta, c as useServerHead, d as useServerHeadSafe, e as useServerSeoMeta } from './shared/vue.j4SPrdI5.mjs';
1
+ import { createUnhead } from 'unhead';
2
+ export { createUnhead } from 'unhead';
3
+ export { h as headSymbol, i as injectHead, u as useHead, a as useHeadSafe, b as useSeoMeta, c as useServerHead, d as useServerHeadSafe, e as useServerSeoMeta } from './shared/vue.BYLJNEcq.mjs';
3
4
  export { resolveUnrefHeadInput } from './utils.mjs';
4
- export { V as VueHeadMixin } from './shared/vue.DBXhY4KI.mjs';
5
+ export { V as VueHeadMixin } from './shared/vue.nvpYXC6D.mjs';
6
+ export { u as useScript } from './shared/vue.cHBs6zvy.mjs';
5
7
  import 'unhead/plugins';
6
8
  import 'unhead/utils';
7
9
  import 'vue';
8
10
  import './shared/vue.N9zWjxoK.mjs';
11
+ import 'unhead/scripts';
9
12
 
10
13
  const unheadVueComposablesImports = {
11
14
  "@unhead/vue": ["injectHead", "useHead", "useSeoMeta", "useHeadSafe", "useServerHead", "useServerSeoMeta", "useServerHeadSafe"]
12
15
  };
13
16
 
14
- const CapoPlugin = () => ({});
17
+ const createCoreHead = createUnhead;
15
18
 
16
- export { CapoPlugin, unheadVueComposablesImports };
19
+ export { createCoreHead, unheadVueComposablesImports };
package/dist/legacy.d.mts CHANGED
@@ -1,26 +1,27 @@
1
1
  import * as unhead_types from 'unhead/types';
2
- import { MergeHead, CreateClientHeadOptions, ActiveHeadEntry } from 'unhead/types';
3
- export { createHeadCore } from 'unhead';
4
- import { V as VueHeadClient, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput } from './shared/vue.CZ-wp2QU.mjs';
2
+ import { CreateClientHeadOptions, ActiveHeadEntry } from 'unhead/types';
3
+ import { createUnhead } from 'unhead';
4
+ import { V as VueHeadClient, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput } from './shared/vue.aRqASu2a.mjs';
5
5
  import { UseHeadSafeInput } from './types.mjs';
6
6
  import 'vue';
7
7
 
8
+ declare const createHeadCore: typeof createUnhead;
8
9
  declare function resolveUnrefHeadInput(input: any): any;
9
10
  declare function CapoPlugin(): unhead_types.HeadPluginInput;
10
- declare function createHead<T extends MergeHead>(options?: CreateClientHeadOptions): VueHeadClient<T>;
11
- declare function createServerHead<T extends MergeHead>(options?: CreateClientHeadOptions): VueHeadClient<T>;
11
+ declare function createHead(options?: CreateClientHeadOptions): VueHeadClient;
12
+ declare function createServerHead(options?: CreateClientHeadOptions): VueHeadClient;
12
13
  /**
13
14
  * @deprecated Please switch to non-legacy version
14
15
  */
15
16
  declare function setHeadInjectionHandler(handler: () => VueHeadClient<any> | undefined): void;
16
17
  declare function injectHead(): VueHeadClient<any> | undefined;
17
- declare function useHead<T extends MergeHead>(input: UseHeadInput<T>, options?: UseHeadOptions): ActiveHeadEntry<UseHeadInput<T>> | void;
18
+ declare function useHead(input: UseHeadInput, options?: UseHeadOptions): ActiveHeadEntry<UseHeadInput> | void;
18
19
  declare function useHeadSafe(input: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
19
20
  declare function useSeoMeta(input: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
20
21
  /**
21
22
  * @deprecated use `useHead` instead. Advanced use cases should tree shake using import.meta.* if statements.
22
23
  */
23
- declare function useServerHead<T extends MergeHead>(input: UseHeadInput<T>, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
24
+ declare function useServerHead(input: UseHeadInput, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
24
25
  /**
25
26
  * @deprecated use `useHeadSafe` instead. Advanced use cases should tree shake using import.meta.* if statements.
26
27
  */
@@ -30,4 +31,4 @@ declare function useServerHeadSafe(input: UseHeadSafeInput, options?: UseHeadOpt
30
31
  */
31
32
  declare function useServerSeoMeta(input: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
32
33
 
33
- export { CapoPlugin, createHead, createServerHead, injectHead, resolveUnrefHeadInput, setHeadInjectionHandler, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
34
+ export { CapoPlugin, createHead, createHeadCore, createServerHead, injectHead, resolveUnrefHeadInput, setHeadInjectionHandler, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
package/dist/legacy.d.ts CHANGED
@@ -1,26 +1,27 @@
1
1
  import * as unhead_types from 'unhead/types';
2
- import { MergeHead, CreateClientHeadOptions, ActiveHeadEntry } from 'unhead/types';
3
- export { createHeadCore } from 'unhead';
4
- import { V as VueHeadClient, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput } from './shared/vue.CZ-wp2QU.js';
2
+ import { CreateClientHeadOptions, ActiveHeadEntry } from 'unhead/types';
3
+ import { createUnhead } from 'unhead';
4
+ import { V as VueHeadClient, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput } from './shared/vue.aRqASu2a.js';
5
5
  import { UseHeadSafeInput } from './types.js';
6
6
  import 'vue';
7
7
 
8
+ declare const createHeadCore: typeof createUnhead;
8
9
  declare function resolveUnrefHeadInput(input: any): any;
9
10
  declare function CapoPlugin(): unhead_types.HeadPluginInput;
10
- declare function createHead<T extends MergeHead>(options?: CreateClientHeadOptions): VueHeadClient<T>;
11
- declare function createServerHead<T extends MergeHead>(options?: CreateClientHeadOptions): VueHeadClient<T>;
11
+ declare function createHead(options?: CreateClientHeadOptions): VueHeadClient;
12
+ declare function createServerHead(options?: CreateClientHeadOptions): VueHeadClient;
12
13
  /**
13
14
  * @deprecated Please switch to non-legacy version
14
15
  */
15
16
  declare function setHeadInjectionHandler(handler: () => VueHeadClient<any> | undefined): void;
16
17
  declare function injectHead(): VueHeadClient<any> | undefined;
17
- declare function useHead<T extends MergeHead>(input: UseHeadInput<T>, options?: UseHeadOptions): ActiveHeadEntry<UseHeadInput<T>> | void;
18
+ declare function useHead(input: UseHeadInput, options?: UseHeadOptions): ActiveHeadEntry<UseHeadInput> | void;
18
19
  declare function useHeadSafe(input: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
19
20
  declare function useSeoMeta(input: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
20
21
  /**
21
22
  * @deprecated use `useHead` instead. Advanced use cases should tree shake using import.meta.* if statements.
22
23
  */
23
- declare function useServerHead<T extends MergeHead>(input: UseHeadInput<T>, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
24
+ declare function useServerHead(input: UseHeadInput, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
24
25
  /**
25
26
  * @deprecated use `useHeadSafe` instead. Advanced use cases should tree shake using import.meta.* if statements.
26
27
  */
@@ -30,4 +31,4 @@ declare function useServerHeadSafe(input: UseHeadSafeInput, options?: UseHeadOpt
30
31
  */
31
32
  declare function useServerSeoMeta(input: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<any> | void;
32
33
 
33
- export { CapoPlugin, createHead, createServerHead, injectHead, resolveUnrefHeadInput, setHeadInjectionHandler, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
34
+ export { CapoPlugin, createHead, createHeadCore, createServerHead, injectHead, resolveUnrefHeadInput, setHeadInjectionHandler, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
package/dist/legacy.mjs CHANGED
@@ -1,15 +1,16 @@
1
- export { createHeadCore } from 'unhead';
1
+ import { createUnhead } from 'unhead';
2
2
  import { inject, ref, watchEffect, unref, watch, getCurrentInstance, onBeforeUnmount, onDeactivated, onActivated } from 'vue';
3
3
  import { createHead as createHead$1 } from './client.mjs';
4
- import { h as headSymbol } from './shared/vue.j4SPrdI5.mjs';
4
+ import { h as headSymbol } from './shared/vue.BYLJNEcq.mjs';
5
5
  import { V as VueResolver } from './shared/vue.N9zWjxoK.mjs';
6
6
  import { createHead as createHead$2 } from './server.mjs';
7
7
  import { walkResolver } from 'unhead/utils';
8
8
  import { defineHeadPlugin, DeprecationsPlugin, PromisesPlugin, TemplateParamsPlugin, AliasSortingPlugin, SafeInputPlugin, FlatMetaPlugin } from 'unhead/plugins';
9
9
  import 'unhead/client';
10
- import './shared/vue.DBXhY4KI.mjs';
10
+ import './shared/vue.nvpYXC6D.mjs';
11
11
  import 'unhead/server';
12
12
 
13
+ const createHeadCore = createUnhead;
13
14
  function resolveUnrefHeadInput(input) {
14
15
  return walkResolver(input, VueResolver);
15
16
  }
@@ -110,4 +111,4 @@ function useServerSeoMeta(input, options) {
110
111
  return useSeoMeta(input, { ...options, mode: "server" });
111
112
  }
112
113
 
113
- export { CapoPlugin, createHead, createServerHead, injectHead, resolveUnrefHeadInput, setHeadInjectionHandler, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
114
+ export { CapoPlugin, createHead, createHeadCore, createServerHead, injectHead, resolveUnrefHeadInput, setHeadInjectionHandler, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
@@ -1,7 +1,7 @@
1
1
  import { UseScriptOptions as UseScriptOptions$1, ScriptInstance, UseScriptStatus, UseFunctionType } from 'unhead/scripts';
2
2
  import { ScriptBase, DataKeys, SchemaAugmentations, HeadEntryOptions } from 'unhead/types';
3
3
  import { Ref } from 'vue';
4
- import { R as ResolvableProperties, V as VueHeadClient } from './shared/vue.CZ-wp2QU.mjs';
4
+ import { k as ResolvableProperties, V as VueHeadClient } from './shared/vue.aRqASu2a.mjs';
5
5
 
6
6
  interface VueScriptInstance<T extends Record<symbol | string, any>> extends Omit<ScriptInstance<T>, 'status'> {
7
7
  status: Ref<UseScriptStatus>;
package/dist/scripts.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { UseScriptOptions as UseScriptOptions$1, ScriptInstance, UseScriptStatus, UseFunctionType } from 'unhead/scripts';
2
2
  import { ScriptBase, DataKeys, SchemaAugmentations, HeadEntryOptions } from 'unhead/types';
3
3
  import { Ref } from 'vue';
4
- import { R as ResolvableProperties, V as VueHeadClient } from './shared/vue.CZ-wp2QU.js';
4
+ import { k as ResolvableProperties, V as VueHeadClient } from './shared/vue.aRqASu2a.js';
5
5
 
6
6
  interface VueScriptInstance<T extends Record<symbol | string, any>> extends Omit<ScriptInstance<T>, 'status'> {
7
7
  status: Ref<UseScriptStatus>;
package/dist/scripts.mjs CHANGED
@@ -1,73 +1,7 @@
1
- import { useScript as useScript$1 } from 'unhead/scripts';
2
- import { getCurrentInstance, onMounted, isRef, watch, onScopeDispose, ref } from 'vue';
3
- import { i as injectHead } from './shared/vue.j4SPrdI5.mjs';
1
+ export { u as useScript } from './shared/vue.cHBs6zvy.mjs';
2
+ import 'unhead/scripts';
3
+ import 'vue';
4
+ import './shared/vue.BYLJNEcq.mjs';
4
5
  import 'unhead/plugins';
5
6
  import 'unhead/utils';
6
7
  import './shared/vue.N9zWjxoK.mjs';
7
-
8
- function registerVueScopeHandlers(script, scope) {
9
- if (!scope) {
10
- return;
11
- }
12
- const _registerCb = (key, cb) => {
13
- if (!script._cbs[key]) {
14
- cb(script.instance);
15
- return () => {
16
- };
17
- }
18
- let i = script._cbs[key].push(cb);
19
- const destroy = () => {
20
- if (i) {
21
- script._cbs[key]?.splice(i - 1, 1);
22
- i = null;
23
- }
24
- };
25
- onScopeDispose(destroy);
26
- return destroy;
27
- };
28
- script.onLoaded = (cb) => _registerCb("loaded", cb);
29
- script.onError = (cb) => _registerCb("error", cb);
30
- onScopeDispose(() => {
31
- script._triggerAbortController?.abort();
32
- });
33
- }
34
- function useScript(_input, _options) {
35
- const input = typeof _input === "string" ? { src: _input } : _input;
36
- const options = _options || {};
37
- const head = options?.head || injectHead();
38
- options.head = head;
39
- const scope = getCurrentInstance();
40
- options.eventContext = scope;
41
- if (scope && typeof options.trigger === "undefined") {
42
- options.trigger = onMounted;
43
- } else if (isRef(options.trigger)) {
44
- const refTrigger = options.trigger;
45
- let off;
46
- options.trigger = new Promise((resolve) => {
47
- off = watch(refTrigger, (val) => {
48
- if (val) {
49
- resolve(true);
50
- }
51
- }, {
52
- immediate: true
53
- });
54
- onScopeDispose(() => resolve(false), true);
55
- }).then((val) => {
56
- off?.();
57
- return val;
58
- });
59
- }
60
- head._scriptStatusWatcher = head._scriptStatusWatcher || head.hooks.hook("script:updated", ({ script: s }) => {
61
- s._statusRef.value = s.status;
62
- });
63
- const script = useScript$1(head, input, options);
64
- script._statusRef = script._statusRef || ref(script.status);
65
- registerVueScopeHandlers(script, scope);
66
- return new Proxy(script, {
67
- get(_, key, a) {
68
- return Reflect.get(_, key === "status" ? "_statusRef" : key, a);
69
- }
70
- });
71
- }
72
-
73
- export { useScript };
package/dist/server.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- import { MergeHead, CreateServerHeadOptions } from 'unhead/types';
1
+ import { CreateServerHeadOptions } from 'unhead/types';
2
2
  export { V as VueHeadMixin } from './shared/vue.DnywREVF.mjs';
3
3
  export { SSRHeadPayload, extractUnheadInputFromHtml, propsToString, renderSSRHead, transformHtmlTemplate } from 'unhead/server';
4
- import { V as VueHeadClient } from './shared/vue.CZ-wp2QU.mjs';
4
+ import { V as VueHeadClient } from './shared/vue.aRqASu2a.mjs';
5
5
  import 'vue';
6
6
 
7
- declare function createHead<T extends MergeHead>(options?: Omit<CreateServerHeadOptions, 'propsResolver'>): VueHeadClient<T>;
7
+ declare function createHead(options?: Omit<CreateServerHeadOptions, 'propsResolver'>): VueHeadClient;
8
8
 
9
9
  export { createHead };
package/dist/server.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { MergeHead, CreateServerHeadOptions } from 'unhead/types';
1
+ import { CreateServerHeadOptions } from 'unhead/types';
2
2
  export { V as VueHeadMixin } from './shared/vue.DnywREVF.js';
3
3
  export { SSRHeadPayload, extractUnheadInputFromHtml, propsToString, renderSSRHead, transformHtmlTemplate } from 'unhead/server';
4
- import { V as VueHeadClient } from './shared/vue.CZ-wp2QU.js';
4
+ import { V as VueHeadClient } from './shared/vue.aRqASu2a.js';
5
5
  import 'vue';
6
6
 
7
- declare function createHead<T extends MergeHead>(options?: Omit<CreateServerHeadOptions, 'propsResolver'>): VueHeadClient<T>;
7
+ declare function createHead(options?: Omit<CreateServerHeadOptions, 'propsResolver'>): VueHeadClient;
8
8
 
9
9
  export { createHead };
package/dist/server.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createHead as createHead$1 } from 'unhead/server';
2
2
  export { extractUnheadInputFromHtml, propsToString, renderSSRHead, transformHtmlTemplate } from 'unhead/server';
3
- import { v as vueInstall } from './shared/vue.j4SPrdI5.mjs';
3
+ import { v as vueInstall } from './shared/vue.BYLJNEcq.mjs';
4
4
  import { V as VueResolver } from './shared/vue.N9zWjxoK.mjs';
5
- export { V as VueHeadMixin } from './shared/vue.DBXhY4KI.mjs';
5
+ export { V as VueHeadMixin } from './shared/vue.nvpYXC6D.mjs';
6
6
  import 'unhead/plugins';
7
7
  import 'unhead/utils';
8
8
  import 'vue';
@@ -25,9 +25,9 @@ function injectHead() {
25
25
  }
26
26
  throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");
27
27
  }
28
- function useHead(input = {}, options = {}) {
28
+ function useHead(input, options = {}) {
29
29
  const head = options.head || injectHead();
30
- return head.ssr ? head.push(input, options) : clientUseHead(head, input, options);
30
+ return head.ssr ? head.push(input || {}, options) : clientUseHead(head, input, options);
31
31
  }
32
32
  function clientUseHead(head, input, options = {}) {
33
33
  const deactivated = ref(false);
@@ -67,17 +67,16 @@ function useSeoMeta(input = {}, options = {}) {
67
67
  return useHead({
68
68
  title,
69
69
  titleTemplate,
70
- // @ts-expect-error runtime type
71
70
  _flatMeta: meta
72
71
  }, options);
73
72
  }
74
- function useServerHead(input = {}, options = {}) {
73
+ function useServerHead(input, options = {}) {
75
74
  return useHead(input, { ...options, mode: "server" });
76
75
  }
77
- function useServerHeadSafe(input = {}, options = {}) {
76
+ function useServerHeadSafe(input, options = {}) {
78
77
  return useHeadSafe(input, { ...options, mode: "server" });
79
78
  }
80
- function useServerSeoMeta(input = {}, options) {
79
+ function useServerSeoMeta(input, options = {}) {
81
80
  return useSeoMeta(input, { ...options, mode: "server" });
82
81
  }
83
82
 
@@ -1,8 +1,9 @@
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';
1
+ import { Stringable, SchemaAugmentations, TitleTemplate as TitleTemplate$1, Base as Base$1, LinkBase, DataKeys, MaybeEventFnHandlers, HttpEventAttributes, BaseMeta, Style as Style$1, ScriptBase, Noscript as Noscript$1, BaseHtmlAttr, MaybeArray, BaseBodyAttr, BodyEvents, Unhead, HeadEntryOptions, MetaFlatInput } from 'unhead/types';
2
2
  import { ComputedRef, Ref, CSSProperties, Plugin } from 'vue';
3
3
 
4
- type MaybeFalsey<T> = T | Falsey;
5
- type ResolvableValue<T> = MaybeFalsey<T> | (() => MaybeFalsey<T>) | ComputedRef<MaybeFalsey<T>> | Ref<MaybeFalsey<T>>;
4
+ type Falsy = false | null | undefined;
5
+ type MaybeFalsy<T> = T | Falsy;
6
+ type ResolvableValue<T> = MaybeFalsy<T> | (() => MaybeFalsy<T>) | ComputedRef<MaybeFalsy<T>> | Ref<MaybeFalsy<T>>;
6
7
  type ResolvableArray<T> = ResolvableValue<ResolvableValue<T>[]>;
7
8
  type ResolvableProperties<T> = {
8
9
  [key in keyof T]?: ResolvableValue<T[key]>;
@@ -14,13 +15,13 @@ interface HtmlAttr extends Omit<BaseHtmlAttr, 'class' | 'style'> {
14
15
  *
15
16
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
16
17
  */
17
- class?: MaybeArray<ResolvableValue<Falsey | Stringable> | Record<string, ResolvableValue<Falsey | Stringable>>>;
18
+ class?: MaybeArray<ResolvableValue<Stringable> | Record<string, ResolvableValue<Stringable>>>;
18
19
  /**
19
20
  * The class global attribute is a space-separated list of the case-sensitive classes of the element.
20
21
  *
21
22
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
22
23
  */
23
- style?: MaybeArray<ResolvableValue<Falsey | Stringable> | ResolvableProperties<CSSProperties>>;
24
+ style?: MaybeArray<ResolvableValue<Stringable> | ResolvableProperties<CSSProperties>>;
24
25
  }
25
26
  interface BodyAttr extends Omit<BaseBodyAttr, 'class' | 'style'> {
26
27
  /**
@@ -28,7 +29,7 @@ interface BodyAttr extends Omit<BaseBodyAttr, 'class' | 'style'> {
28
29
  *
29
30
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
30
31
  */
31
- class?: MaybeArray<ResolvableValue<Falsey | Stringable>> | Record<string, ResolvableValue<Falsey | Stringable>>;
32
+ class?: MaybeArray<ResolvableValue<Stringable>> | Record<string, ResolvableValue<Stringable>>;
32
33
  /**
33
34
  * The class global attribute is a space-separated list of the case-sensitive classes of the element.
34
35
  *
@@ -36,19 +37,19 @@ interface BodyAttr extends Omit<BaseBodyAttr, 'class' | 'style'> {
36
37
  */
37
38
  style?: MaybeArray<ResolvableValue<string>> | ResolvableProperties<CSSProperties>;
38
39
  }
39
- type Title = ResolvableValue<Stringable | Falsey> | ResolvableProperties<({
40
+ type Title = ResolvableValue<Stringable> | ResolvableProperties<({
40
41
  textContent: Stringable;
41
42
  } & SchemaAugmentations['title'])>;
42
43
  type TitleTemplate = TitleTemplate$1 | Ref<TitleTemplate$1> | ((title?: string) => TitleTemplate$1);
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>;
51
- interface ReactiveHead<E extends MergeHead = MergeHead> {
44
+ type Base = ResolvableProperties<Base$1 & SchemaAugmentations['base']>;
45
+ type Link = ResolvableProperties<LinkBase & DataKeys & SchemaAugmentations['link']> & MaybeEventFnHandlers<HttpEventAttributes>;
46
+ type Meta = ResolvableProperties<BaseMeta & DataKeys & SchemaAugmentations['meta']>;
47
+ type Style = ResolvableProperties<Style$1 & DataKeys & SchemaAugmentations['style']>;
48
+ type Script = ResolvableProperties<ScriptBase & DataKeys & SchemaAugmentations['script']> & MaybeEventFnHandlers<HttpEventAttributes>;
49
+ type Noscript = ResolvableProperties<Noscript$1 & DataKeys & SchemaAugmentations['noscript']>;
50
+ type HtmlAttributes = ResolvableProperties<HtmlAttr & DataKeys & SchemaAugmentations['htmlAttrs']>;
51
+ type BodyAttributes = ResolvableProperties<BodyAttr & DataKeys & SchemaAugmentations['bodyAttrs']> & MaybeEventFnHandlers<BodyEvents>;
52
+ interface ReactiveHead {
52
53
  /**
53
54
  * The `<title>` HTML element defines the document's title that is shown in a browser's title bar or a page's tab.
54
55
  * It only contains text; tags within the element are ignored.
@@ -65,14 +66,14 @@ interface ReactiveHead<E extends MergeHead = MergeHead> {
65
66
  */
66
67
  templateParams?: ResolvableProperties<{
67
68
  separator?: '|' | '-' | '·' | string;
68
- } & Record<string, Stringable | Falsey | ResolvableProperties<Record<string, Stringable | Falsey>>>>;
69
+ } & Record<string, Stringable | ResolvableProperties<Record<string, Stringable>>>>;
69
70
  /**
70
71
  * The `<base>` HTML element specifies the base URL to use for all relative URLs in a document.
71
72
  * There can be only one <base> element in a document.
72
73
  *
73
74
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
74
75
  */
75
- base?: Base<E['base']>;
76
+ base?: Base;
76
77
  /**
77
78
  * The `<link>` HTML element specifies relationships between the current document and an external resource.
78
79
  * This element is most commonly used to link to stylesheets, but is also used to establish site icons
@@ -80,54 +81,54 @@ interface ReactiveHead<E extends MergeHead = MergeHead> {
80
81
  *
81
82
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-as
82
83
  */
83
- link?: ResolvableArray<Link<E['link']>>;
84
+ link?: ResolvableArray<Link>;
84
85
  /**
85
86
  * The `<meta>` element represents metadata that cannot be expressed in other HTML elements, like `<link>` or `<script>`.
86
87
  *
87
88
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
88
89
  */
89
- meta?: ResolvableArray<Meta<E['meta']>>;
90
+ meta?: ResolvableArray<Meta>;
90
91
  /**
91
92
  * The `<style>` HTML element contains style information for a document, or part of a document.
92
93
  * It contains CSS, which is applied to the contents of the document containing the `<style>` element.
93
94
  *
94
95
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style
95
96
  */
96
- style?: ResolvableArray<(Style<E['style']> | string)>;
97
+ style?: ResolvableArray<(Style | string)>;
97
98
  /**
98
99
  * The `<script>` HTML element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code.
99
100
  *
100
101
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
101
102
  */
102
- script?: ResolvableArray<(Script<E['script']> | string)>;
103
+ script?: ResolvableArray<(Script | string)>;
103
104
  /**
104
105
  * The `<noscript>` HTML element defines a section of HTML to be inserted if a script type on the page is unsupported
105
106
  * or if scripting is currently turned off in the browser.
106
107
  *
107
108
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript
108
109
  */
109
- noscript?: ResolvableArray<(Noscript<E['noscript']> | string)>;
110
+ noscript?: ResolvableArray<(Noscript | string)>;
110
111
  /**
111
112
  * Attributes for the `<html>` HTML element.
112
113
  *
113
114
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html
114
115
  */
115
- htmlAttrs?: HtmlAttributes<E['htmlAttrs']>;
116
+ htmlAttrs?: HtmlAttributes;
116
117
  /**
117
118
  * Attributes for the `<body>` HTML element.
118
119
  *
119
120
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body
120
121
  */
121
- bodyAttrs?: BodyAttributes<E['bodyAttrs']>;
122
+ bodyAttrs?: BodyAttributes;
122
123
  }
123
124
  type UseHeadOptions = Omit<HeadEntryOptions, 'head'> & {
124
125
  head?: VueHeadClient<any>;
125
126
  };
126
- type UseHeadInput<T extends MergeHead = Record<string, any>> = ResolvableValue<ReactiveHead<T>>;
127
+ type UseHeadInput<Deprecated = never> = ResolvableValue<ReactiveHead>;
127
128
  type UseSeoMetaInput = ResolvableProperties<MetaFlatInput> & {
128
129
  title?: ReactiveHead['title'];
129
130
  titleTemplate?: ReactiveHead['titleTemplate'];
130
131
  };
131
- type VueHeadClient<T extends MergeHead> = Unhead<ResolvableValue<ReactiveHead<T>>> & Plugin;
132
+ type VueHeadClient<I = UseHeadInput> = Unhead<I> & Plugin;
132
133
 
133
- export type { BodyAttr as B, HtmlAttr as H, Link as L, Meta as M, Noscript as N, ResolvableProperties 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, ReactiveHead as h, MaybeFalsey as i, ResolvableValue as j, ResolvableArray as k };
134
+ 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, MaybeFalsy as h, ResolvableValue as i, ResolvableArray as j, ResolvableProperties as k };
@@ -1,8 +1,9 @@
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';
1
+ import { Stringable, SchemaAugmentations, TitleTemplate as TitleTemplate$1, Base as Base$1, LinkBase, DataKeys, MaybeEventFnHandlers, HttpEventAttributes, BaseMeta, Style as Style$1, ScriptBase, Noscript as Noscript$1, BaseHtmlAttr, MaybeArray, BaseBodyAttr, BodyEvents, Unhead, HeadEntryOptions, MetaFlatInput } from 'unhead/types';
2
2
  import { ComputedRef, Ref, CSSProperties, Plugin } from 'vue';
3
3
 
4
- type MaybeFalsey<T> = T | Falsey;
5
- type ResolvableValue<T> = MaybeFalsey<T> | (() => MaybeFalsey<T>) | ComputedRef<MaybeFalsey<T>> | Ref<MaybeFalsey<T>>;
4
+ type Falsy = false | null | undefined;
5
+ type MaybeFalsy<T> = T | Falsy;
6
+ type ResolvableValue<T> = MaybeFalsy<T> | (() => MaybeFalsy<T>) | ComputedRef<MaybeFalsy<T>> | Ref<MaybeFalsy<T>>;
6
7
  type ResolvableArray<T> = ResolvableValue<ResolvableValue<T>[]>;
7
8
  type ResolvableProperties<T> = {
8
9
  [key in keyof T]?: ResolvableValue<T[key]>;
@@ -14,13 +15,13 @@ interface HtmlAttr extends Omit<BaseHtmlAttr, 'class' | 'style'> {
14
15
  *
15
16
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
16
17
  */
17
- class?: MaybeArray<ResolvableValue<Falsey | Stringable> | Record<string, ResolvableValue<Falsey | Stringable>>>;
18
+ class?: MaybeArray<ResolvableValue<Stringable> | Record<string, ResolvableValue<Stringable>>>;
18
19
  /**
19
20
  * The class global attribute is a space-separated list of the case-sensitive classes of the element.
20
21
  *
21
22
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
22
23
  */
23
- style?: MaybeArray<ResolvableValue<Falsey | Stringable> | ResolvableProperties<CSSProperties>>;
24
+ style?: MaybeArray<ResolvableValue<Stringable> | ResolvableProperties<CSSProperties>>;
24
25
  }
25
26
  interface BodyAttr extends Omit<BaseBodyAttr, 'class' | 'style'> {
26
27
  /**
@@ -28,7 +29,7 @@ interface BodyAttr extends Omit<BaseBodyAttr, 'class' | 'style'> {
28
29
  *
29
30
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
30
31
  */
31
- class?: MaybeArray<ResolvableValue<Falsey | Stringable>> | Record<string, ResolvableValue<Falsey | Stringable>>;
32
+ class?: MaybeArray<ResolvableValue<Stringable>> | Record<string, ResolvableValue<Stringable>>;
32
33
  /**
33
34
  * The class global attribute is a space-separated list of the case-sensitive classes of the element.
34
35
  *
@@ -36,19 +37,19 @@ interface BodyAttr extends Omit<BaseBodyAttr, 'class' | 'style'> {
36
37
  */
37
38
  style?: MaybeArray<ResolvableValue<string>> | ResolvableProperties<CSSProperties>;
38
39
  }
39
- type Title = ResolvableValue<Stringable | Falsey> | ResolvableProperties<({
40
+ type Title = ResolvableValue<Stringable> | ResolvableProperties<({
40
41
  textContent: Stringable;
41
42
  } & SchemaAugmentations['title'])>;
42
43
  type TitleTemplate = TitleTemplate$1 | Ref<TitleTemplate$1> | ((title?: string) => TitleTemplate$1);
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>;
51
- interface ReactiveHead<E extends MergeHead = MergeHead> {
44
+ type Base = ResolvableProperties<Base$1 & SchemaAugmentations['base']>;
45
+ type Link = ResolvableProperties<LinkBase & DataKeys & SchemaAugmentations['link']> & MaybeEventFnHandlers<HttpEventAttributes>;
46
+ type Meta = ResolvableProperties<BaseMeta & DataKeys & SchemaAugmentations['meta']>;
47
+ type Style = ResolvableProperties<Style$1 & DataKeys & SchemaAugmentations['style']>;
48
+ type Script = ResolvableProperties<ScriptBase & DataKeys & SchemaAugmentations['script']> & MaybeEventFnHandlers<HttpEventAttributes>;
49
+ type Noscript = ResolvableProperties<Noscript$1 & DataKeys & SchemaAugmentations['noscript']>;
50
+ type HtmlAttributes = ResolvableProperties<HtmlAttr & DataKeys & SchemaAugmentations['htmlAttrs']>;
51
+ type BodyAttributes = ResolvableProperties<BodyAttr & DataKeys & SchemaAugmentations['bodyAttrs']> & MaybeEventFnHandlers<BodyEvents>;
52
+ interface ReactiveHead {
52
53
  /**
53
54
  * The `<title>` HTML element defines the document's title that is shown in a browser's title bar or a page's tab.
54
55
  * It only contains text; tags within the element are ignored.
@@ -65,14 +66,14 @@ interface ReactiveHead<E extends MergeHead = MergeHead> {
65
66
  */
66
67
  templateParams?: ResolvableProperties<{
67
68
  separator?: '|' | '-' | '·' | string;
68
- } & Record<string, Stringable | Falsey | ResolvableProperties<Record<string, Stringable | Falsey>>>>;
69
+ } & Record<string, Stringable | ResolvableProperties<Record<string, Stringable>>>>;
69
70
  /**
70
71
  * The `<base>` HTML element specifies the base URL to use for all relative URLs in a document.
71
72
  * There can be only one <base> element in a document.
72
73
  *
73
74
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
74
75
  */
75
- base?: Base<E['base']>;
76
+ base?: Base;
76
77
  /**
77
78
  * The `<link>` HTML element specifies relationships between the current document and an external resource.
78
79
  * This element is most commonly used to link to stylesheets, but is also used to establish site icons
@@ -80,54 +81,54 @@ interface ReactiveHead<E extends MergeHead = MergeHead> {
80
81
  *
81
82
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-as
82
83
  */
83
- link?: ResolvableArray<Link<E['link']>>;
84
+ link?: ResolvableArray<Link>;
84
85
  /**
85
86
  * The `<meta>` element represents metadata that cannot be expressed in other HTML elements, like `<link>` or `<script>`.
86
87
  *
87
88
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
88
89
  */
89
- meta?: ResolvableArray<Meta<E['meta']>>;
90
+ meta?: ResolvableArray<Meta>;
90
91
  /**
91
92
  * The `<style>` HTML element contains style information for a document, or part of a document.
92
93
  * It contains CSS, which is applied to the contents of the document containing the `<style>` element.
93
94
  *
94
95
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style
95
96
  */
96
- style?: ResolvableArray<(Style<E['style']> | string)>;
97
+ style?: ResolvableArray<(Style | string)>;
97
98
  /**
98
99
  * The `<script>` HTML element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code.
99
100
  *
100
101
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
101
102
  */
102
- script?: ResolvableArray<(Script<E['script']> | string)>;
103
+ script?: ResolvableArray<(Script | string)>;
103
104
  /**
104
105
  * The `<noscript>` HTML element defines a section of HTML to be inserted if a script type on the page is unsupported
105
106
  * or if scripting is currently turned off in the browser.
106
107
  *
107
108
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript
108
109
  */
109
- noscript?: ResolvableArray<(Noscript<E['noscript']> | string)>;
110
+ noscript?: ResolvableArray<(Noscript | string)>;
110
111
  /**
111
112
  * Attributes for the `<html>` HTML element.
112
113
  *
113
114
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html
114
115
  */
115
- htmlAttrs?: HtmlAttributes<E['htmlAttrs']>;
116
+ htmlAttrs?: HtmlAttributes;
116
117
  /**
117
118
  * Attributes for the `<body>` HTML element.
118
119
  *
119
120
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body
120
121
  */
121
- bodyAttrs?: BodyAttributes<E['bodyAttrs']>;
122
+ bodyAttrs?: BodyAttributes;
122
123
  }
123
124
  type UseHeadOptions = Omit<HeadEntryOptions, 'head'> & {
124
125
  head?: VueHeadClient<any>;
125
126
  };
126
- type UseHeadInput<T extends MergeHead = Record<string, any>> = ResolvableValue<ReactiveHead<T>>;
127
+ type UseHeadInput<Deprecated = never> = ResolvableValue<ReactiveHead>;
127
128
  type UseSeoMetaInput = ResolvableProperties<MetaFlatInput> & {
128
129
  title?: ReactiveHead['title'];
129
130
  titleTemplate?: ReactiveHead['titleTemplate'];
130
131
  };
131
- type VueHeadClient<T extends MergeHead> = Unhead<ResolvableValue<ReactiveHead<T>>> & Plugin;
132
+ type VueHeadClient<I = UseHeadInput> = Unhead<I> & Plugin;
132
133
 
133
- export type { BodyAttr as B, HtmlAttr as H, Link as L, Meta as M, Noscript as N, ResolvableProperties 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, ReactiveHead as h, MaybeFalsey as i, ResolvableValue as j, ResolvableArray as k };
134
+ 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, MaybeFalsy as h, ResolvableValue as i, ResolvableArray as j, ResolvableProperties as k };
@@ -0,0 +1,70 @@
1
+ import { useScript as useScript$1 } from 'unhead/scripts';
2
+ import { getCurrentInstance, onMounted, isRef, watch, onScopeDispose, ref } from 'vue';
3
+ import { i as injectHead } from './vue.BYLJNEcq.mjs';
4
+
5
+ function registerVueScopeHandlers(script, scope) {
6
+ if (!scope) {
7
+ return;
8
+ }
9
+ const _registerCb = (key, cb) => {
10
+ if (!script._cbs[key]) {
11
+ cb(script.instance);
12
+ return () => {
13
+ };
14
+ }
15
+ let i = script._cbs[key].push(cb);
16
+ const destroy = () => {
17
+ if (i) {
18
+ script._cbs[key]?.splice(i - 1, 1);
19
+ i = null;
20
+ }
21
+ };
22
+ onScopeDispose(destroy);
23
+ return destroy;
24
+ };
25
+ script.onLoaded = (cb) => _registerCb("loaded", cb);
26
+ script.onError = (cb) => _registerCb("error", cb);
27
+ onScopeDispose(() => {
28
+ script._triggerAbortController?.abort();
29
+ });
30
+ }
31
+ function useScript(_input, _options) {
32
+ const input = typeof _input === "string" ? { src: _input } : _input;
33
+ const options = _options || {};
34
+ const head = options?.head || injectHead();
35
+ options.head = head;
36
+ const scope = getCurrentInstance();
37
+ options.eventContext = scope;
38
+ if (scope && typeof options.trigger === "undefined") {
39
+ options.trigger = onMounted;
40
+ } else if (isRef(options.trigger)) {
41
+ const refTrigger = options.trigger;
42
+ let off;
43
+ options.trigger = new Promise((resolve) => {
44
+ off = watch(refTrigger, (val) => {
45
+ if (val) {
46
+ resolve(true);
47
+ }
48
+ }, {
49
+ immediate: true
50
+ });
51
+ onScopeDispose(() => resolve(false), true);
52
+ }).then((val) => {
53
+ off?.();
54
+ return val;
55
+ });
56
+ }
57
+ head._scriptStatusWatcher = head._scriptStatusWatcher || head.hooks.hook("script:updated", ({ script: s }) => {
58
+ s._statusRef.value = s.status;
59
+ });
60
+ const script = useScript$1(head, input, options);
61
+ script._statusRef = script._statusRef || ref(script.status);
62
+ registerVueScopeHandlers(script, scope);
63
+ return new Proxy(script, {
64
+ get(_, key, a) {
65
+ return Reflect.get(_, key === "status" ? "_statusRef" : key, a);
66
+ }
67
+ });
68
+ }
69
+
70
+ export { useScript as u };
@@ -1,5 +1,5 @@
1
1
  import { getCurrentInstance } from 'vue';
2
- import { u as useHead } from './vue.j4SPrdI5.mjs';
2
+ import { u as useHead } from './vue.BYLJNEcq.mjs';
3
3
 
4
4
  const VueHeadMixin = {
5
5
  created() {
package/dist/types.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { ResolvableHead, LinkBase, DataKeys, SchemaAugmentations, BaseMeta, Style, ScriptBase, Noscript, HtmlAttributes, BodyAttributes } from 'unhead/types';
2
- export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, RenderSSRHeadOptions, ResolvableHead, ResolvedBase, ResolvedBodyAttributes, ResolvedHead, ResolvedHtmlAttributes, ResolvedLink, ResolvedMeta, ResolvedNoscript, ResolvedScript, ResolvedStyle, ResolvedTitle, ResolvedTitleTemplate, Unhead } from 'unhead/types';
3
- import { j as ResolvableValue, R as ResolvableProperties } from './shared/vue.CZ-wp2QU.mjs';
4
- export { d as Base, B as BodyAttr, g as BodyAttributes, H as HtmlAttr, f as HtmlAttributes, L as Link, i as MaybeFalsey, M as Meta, N as Noscript, h as ReactiveHead, k 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.CZ-wp2QU.mjs';
1
+ import { ResolvableHead, LinkBase, DataKeys, SchemaAugmentations, BaseMeta, Style, ScriptBase, TagPriority, TagPosition, ResolvesDuplicates, ProcessesTemplateParams, Noscript, HtmlAttributes, BodyAttributes } from 'unhead/types';
2
+ export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MetaFlatInput, RenderSSRHeadOptions, ResolvableHead, SerializableHead, Unhead } from 'unhead/types';
3
+ import { i as ResolvableValue, k as ResolvableProperties } from './shared/vue.aRqASu2a.mjs';
4
+ export { d as Base, B as BodyAttr, g as BodyAttributes, H as HtmlAttr, f as HtmlAttributes, L as Link, h as MaybeFalsy, 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.aRqASu2a.mjs';
5
5
  import 'vue';
6
6
 
7
7
  type SafeBodyAttr = ResolvableProperties<Pick<BodyAttributes, 'id' | 'class' | 'style'> & DataKeys & SchemaAugmentations['bodyAttrs']>;
@@ -10,7 +10,7 @@ type SafeMeta = ResolvableProperties<Pick<BaseMeta, 'id' | 'name' | 'property' |
10
10
  type SafeLink = ResolvableProperties<Pick<LinkBase, 'id' | 'color' | 'crossorigin' | 'fetchpriority' | 'href' | 'hreflang' | 'imagesrcset' | 'imagesizes' | 'integrity' | 'media' | 'referrerpolicy' | 'rel' | 'sizes' | 'type'> & DataKeys & SchemaAugmentations['link']>;
11
11
  type SafeScript = ResolvableProperties<Pick<ScriptBase, 'id' | 'type' | 'nonce' | 'blocking'> & DataKeys & {
12
12
  textContent?: string;
13
- } & SchemaAugmentations['script']>;
13
+ } & TagPriority & TagPosition & ResolvesDuplicates & ProcessesTemplateParams>;
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
16
  interface HeadSafe extends Pick<ResolvableHead, 'title' | 'titleTemplate' | 'templateParams'> {
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { ResolvableHead, LinkBase, DataKeys, SchemaAugmentations, BaseMeta, Style, ScriptBase, Noscript, HtmlAttributes, BodyAttributes } from 'unhead/types';
2
- export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, RenderSSRHeadOptions, ResolvableHead, ResolvedBase, ResolvedBodyAttributes, ResolvedHead, ResolvedHtmlAttributes, ResolvedLink, ResolvedMeta, ResolvedNoscript, ResolvedScript, ResolvedStyle, ResolvedTitle, ResolvedTitleTemplate, Unhead } from 'unhead/types';
3
- import { j as ResolvableValue, R as ResolvableProperties } from './shared/vue.CZ-wp2QU.js';
4
- export { d as Base, B as BodyAttr, g as BodyAttributes, H as HtmlAttr, f as HtmlAttributes, L as Link, i as MaybeFalsey, M as Meta, N as Noscript, h as ReactiveHead, k 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.CZ-wp2QU.js';
1
+ import { ResolvableHead, LinkBase, DataKeys, SchemaAugmentations, BaseMeta, Style, ScriptBase, TagPriority, TagPosition, ResolvesDuplicates, ProcessesTemplateParams, Noscript, HtmlAttributes, BodyAttributes } from 'unhead/types';
2
+ export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MetaFlatInput, RenderSSRHeadOptions, ResolvableHead, SerializableHead, Unhead } from 'unhead/types';
3
+ import { i as ResolvableValue, k as ResolvableProperties } from './shared/vue.aRqASu2a.js';
4
+ export { d as Base, B as BodyAttr, g as BodyAttributes, H as HtmlAttr, f as HtmlAttributes, L as Link, h as MaybeFalsy, 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.aRqASu2a.js';
5
5
  import 'vue';
6
6
 
7
7
  type SafeBodyAttr = ResolvableProperties<Pick<BodyAttributes, 'id' | 'class' | 'style'> & DataKeys & SchemaAugmentations['bodyAttrs']>;
@@ -10,7 +10,7 @@ type SafeMeta = ResolvableProperties<Pick<BaseMeta, 'id' | 'name' | 'property' |
10
10
  type SafeLink = ResolvableProperties<Pick<LinkBase, 'id' | 'color' | 'crossorigin' | 'fetchpriority' | 'href' | 'hreflang' | 'imagesrcset' | 'imagesizes' | 'integrity' | 'media' | 'referrerpolicy' | 'rel' | 'sizes' | 'type'> & DataKeys & SchemaAugmentations['link']>;
11
11
  type SafeScript = ResolvableProperties<Pick<ScriptBase, 'id' | 'type' | 'nonce' | 'blocking'> & DataKeys & {
12
12
  textContent?: string;
13
- } & SchemaAugmentations['script']>;
13
+ } & TagPriority & TagPosition & ResolvesDuplicates & ProcessesTemplateParams>;
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
16
  interface HeadSafe extends Pick<ResolvableHead, 'title' | 'titleTemplate' | 'templateParams'> {
package/dist/utils.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { PropResolver, ResolvedHead } from 'unhead/types';
1
+ import { PropResolver } from 'unhead/types';
2
2
  export * from 'unhead/utils';
3
3
 
4
4
  declare const VueResolver: PropResolver;
@@ -6,6 +6,6 @@ declare const VueResolver: PropResolver;
6
6
  /**
7
7
  * @deprecated Use head.resolveTags() instead
8
8
  */
9
- declare function resolveUnrefHeadInput(input: any): ResolvedHead;
9
+ declare function resolveUnrefHeadInput<T extends Record<string, any>>(input: T): T;
10
10
 
11
11
  export { VueResolver, resolveUnrefHeadInput };
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PropResolver, ResolvedHead } from 'unhead/types';
1
+ import { PropResolver } from 'unhead/types';
2
2
  export * from 'unhead/utils';
3
3
 
4
4
  declare const VueResolver: PropResolver;
@@ -6,6 +6,6 @@ declare const VueResolver: PropResolver;
6
6
  /**
7
7
  * @deprecated Use head.resolveTags() instead
8
8
  */
9
- declare function resolveUnrefHeadInput(input: any): ResolvedHead;
9
+ declare function resolveUnrefHeadInput<T extends Record<string, any>>(input: T): T;
10
10
 
11
11
  export { VueResolver, resolveUnrefHeadInput };
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.26",
4
+ "version": "2.0.0-alpha.28",
5
5
  "description": "Full-stack <head> manager built for Vue.",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",
@@ -109,7 +109,7 @@
109
109
  },
110
110
  "dependencies": {
111
111
  "hookable": "^5.5.3",
112
- "unhead": "2.0.0-alpha.26"
112
+ "unhead": "2.0.0-alpha.28"
113
113
  },
114
114
  "scripts": {
115
115
  "build": "unbuild .",