unhead 2.0.0-alpha.30 → 2.0.0-alpha.31

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,4 +1,4 @@
1
- import { R as ResolvableHead, y as CreateClientHeadOptions, U as Unhead, X as RenderDomHeadOptions } from './shared/unhead.B9T4uIcB.mjs';
1
+ import { R as ResolvableHead, q as CreateClientHeadOptions, U as Unhead, G as RenderDomHeadOptions } from './shared/unhead.BlCDUtBx.mjs';
2
2
  import 'hookable';
3
3
 
4
4
  declare function createHead<T = ResolvableHead>(options?: CreateClientHeadOptions): Unhead<T>;
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { R as ResolvableHead, y as CreateClientHeadOptions, U as Unhead, X as RenderDomHeadOptions } from './shared/unhead.B9T4uIcB.js';
1
+ import { R as ResolvableHead, q as CreateClientHeadOptions, U as Unhead, G as RenderDomHeadOptions } from './shared/unhead.BlCDUtBx.js';
2
2
  import 'hookable';
3
3
 
4
4
  declare function createHead<T = ResolvableHead>(options?: CreateClientHeadOptions): Unhead<T>;
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { H as HeadSafe } from './shared/unhead.Boa77p0p.mjs';
2
- import { U as Unhead, R as ResolvableHead, z as HeadEntryOptions, w as ActiveHeadEntry, ae as UseSeoMetaInput, C as CreateHeadOptions } from './shared/unhead.B9T4uIcB.mjs';
3
- export { u as useScript } from './shared/unhead.CTfhWwBZ.mjs';
1
+ import { H as HeadSafe } from './shared/unhead.BCRd_6gC.mjs';
2
+ import { U as Unhead, R as ResolvableHead, r as HeadEntryOptions, o as ActiveHeadEntry, a8 as UseSeoMetaInput, C as CreateHeadOptions } from './shared/unhead.BlCDUtBx.mjs';
3
+ export { u as useScript } from './shared/unhead.CGomMdtP.mjs';
4
4
  import 'hookable';
5
5
 
6
6
  declare function useHead<T extends Unhead<any>, I = ResolvableHead>(unhead: T, input?: ResolvableHead, options?: HeadEntryOptions): ActiveHeadEntry<I>;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { H as HeadSafe } from './shared/unhead.BwfxNHko.js';
2
- import { U as Unhead, R as ResolvableHead, z as HeadEntryOptions, w as ActiveHeadEntry, ae as UseSeoMetaInput, C as CreateHeadOptions } from './shared/unhead.B9T4uIcB.js';
3
- export { u as useScript } from './shared/unhead.Bf6MJ2XT.js';
1
+ import { H as HeadSafe } from './shared/unhead.dVLMTonB.js';
2
+ import { U as Unhead, R as ResolvableHead, r as HeadEntryOptions, o as ActiveHeadEntry, a8 as UseSeoMetaInput, C as CreateHeadOptions } from './shared/unhead.BlCDUtBx.js';
3
+ export { u as useScript } from './shared/unhead.QmkIVPAq.js';
4
4
  import 'hookable';
5
5
 
6
6
  declare function useHead<T extends Unhead<any>, I = ResolvableHead>(unhead: T, input?: ResolvableHead, options?: HeadEntryOptions): ActiveHeadEntry<I>;
package/dist/legacy.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createUnhead } from './index.mjs';
2
2
  export { useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta } from './index.mjs';
3
- import { U as Unhead, R as ResolvableHead, C as CreateHeadOptions } from './shared/unhead.B9T4uIcB.mjs';
4
- export { u as useScript } from './shared/unhead.CTfhWwBZ.mjs';
5
- import './shared/unhead.Boa77p0p.mjs';
3
+ import { U as Unhead, R as ResolvableHead, C as CreateHeadOptions } from './shared/unhead.BlCDUtBx.mjs';
4
+ export { u as useScript } from './shared/unhead.CGomMdtP.mjs';
5
+ import './shared/unhead.BCRd_6gC.mjs';
6
6
  import 'hookable';
7
7
 
8
8
  declare const activeHead: {
package/dist/legacy.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createUnhead } from './index.js';
2
2
  export { useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta } from './index.js';
3
- import { U as Unhead, R as ResolvableHead, C as CreateHeadOptions } from './shared/unhead.B9T4uIcB.js';
4
- export { u as useScript } from './shared/unhead.Bf6MJ2XT.js';
5
- import './shared/unhead.BwfxNHko.js';
3
+ import { U as Unhead, R as ResolvableHead, C as CreateHeadOptions } from './shared/unhead.BlCDUtBx.js';
4
+ export { u as useScript } from './shared/unhead.QmkIVPAq.js';
5
+ import './shared/unhead.dVLMTonB.js';
6
6
  import 'hookable';
7
7
 
8
8
  declare const activeHead: {
@@ -1,4 +1,4 @@
1
- import { u as HeadPluginInput, U as Unhead, t as HeadPluginOptions } from './shared/unhead.B9T4uIcB.mjs';
1
+ import { m as HeadPluginInput, U as Unhead, l as HeadPluginOptions } from './shared/unhead.BlCDUtBx.mjs';
2
2
  import 'hookable';
3
3
 
4
4
  declare const AliasSortingPlugin: HeadPluginInput;
package/dist/plugins.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { u as HeadPluginInput, U as Unhead, t as HeadPluginOptions } from './shared/unhead.B9T4uIcB.js';
1
+ import { m as HeadPluginInput, U as Unhead, l as HeadPluginOptions } from './shared/unhead.BlCDUtBx.js';
2
2
  import 'hookable';
3
3
 
4
4
  declare const AliasSortingPlugin: HeadPluginInput;
@@ -1,6 +1,6 @@
1
- import { q as RecordingEntry } from './shared/unhead.B9T4uIcB.mjs';
2
- export { A as AsVoidFunctions, E as EventHandlerOptions, p as ScriptInstance, o as UseFunctionType, m as UseScriptContext, h as UseScriptInput, i as UseScriptOptions, n as UseScriptResolvedInput, j as UseScriptReturn, l as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.B9T4uIcB.mjs';
3
- export { u as useScript } from './shared/unhead.CTfhWwBZ.mjs';
1
+ import { i as RecordingEntry } from './shared/unhead.BlCDUtBx.mjs';
2
+ export { A as AsVoidFunctions, E as EventHandlerOptions, S as ScriptInstance, h as UseFunctionType, f as UseScriptContext, a as UseScriptInput, b as UseScriptOptions, g as UseScriptResolvedInput, c as UseScriptReturn, e as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.BlCDUtBx.mjs';
3
+ export { u as useScript } from './shared/unhead.CGomMdtP.mjs';
4
4
  import 'hookable';
5
5
 
6
6
  declare function createSpyProxy<T extends Record<string, any> | any[]>(target: T, onApply: (stack: RecordingEntry[][]) => void): T;
package/dist/scripts.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { q as RecordingEntry } from './shared/unhead.B9T4uIcB.js';
2
- export { A as AsVoidFunctions, E as EventHandlerOptions, p as ScriptInstance, o as UseFunctionType, m as UseScriptContext, h as UseScriptInput, i as UseScriptOptions, n as UseScriptResolvedInput, j as UseScriptReturn, l as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.B9T4uIcB.js';
3
- export { u as useScript } from './shared/unhead.Bf6MJ2XT.js';
1
+ import { i as RecordingEntry } from './shared/unhead.BlCDUtBx.js';
2
+ export { A as AsVoidFunctions, E as EventHandlerOptions, S as ScriptInstance, h as UseFunctionType, f as UseScriptContext, a as UseScriptInput, b as UseScriptOptions, g as UseScriptResolvedInput, c as UseScriptReturn, e as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.BlCDUtBx.js';
3
+ export { u as useScript } from './shared/unhead.QmkIVPAq.js';
4
4
  import 'hookable';
5
5
 
6
6
  declare function createSpyProxy<T extends Record<string, any> | any[]>(target: T, onApply: (stack: RecordingEntry[][]) => void): T;
package/dist/server.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { R as ResolvableHead, x as CreateServerHeadOptions, U as Unhead, J as RenderSSRHeadOptions, I as SSRHeadPayload, ab as SerializableResolvedHead, aA as HeadTag } from './shared/unhead.B9T4uIcB.mjs';
1
+ import { R as ResolvableHead, p as CreateServerHeadOptions, U as Unhead, u as RenderSSRHeadOptions, t as SSRHeadPayload, a4 as SerializableHead, au as HeadTag } from './shared/unhead.BlCDUtBx.mjs';
2
2
  import 'hookable';
3
3
 
4
4
  declare function createHead<T = ResolvableHead>(options?: CreateServerHeadOptions): Unhead<T>;
@@ -9,7 +9,7 @@ declare function transformHtmlTemplate(head: Unhead<any>, html: string, options?
9
9
 
10
10
  declare function extractUnheadInputFromHtml(html: string): {
11
11
  html: string;
12
- input: SerializableResolvedHead;
12
+ input: SerializableHead;
13
13
  };
14
14
 
15
15
  declare function propsToString(props: Record<string, any>): string;
package/dist/server.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { R as ResolvableHead, x as CreateServerHeadOptions, U as Unhead, J as RenderSSRHeadOptions, I as SSRHeadPayload, ab as SerializableResolvedHead, aA as HeadTag } from './shared/unhead.B9T4uIcB.js';
1
+ import { R as ResolvableHead, p as CreateServerHeadOptions, U as Unhead, u as RenderSSRHeadOptions, t as SSRHeadPayload, a4 as SerializableHead, au as HeadTag } from './shared/unhead.BlCDUtBx.js';
2
2
  import 'hookable';
3
3
 
4
4
  declare function createHead<T = ResolvableHead>(options?: CreateServerHeadOptions): Unhead<T>;
@@ -9,7 +9,7 @@ declare function transformHtmlTemplate(head: Unhead<any>, html: string, options?
9
9
 
10
10
  declare function extractUnheadInputFromHtml(html: string): {
11
11
  html: string;
12
- input: SerializableResolvedHead;
12
+ input: SerializableHead;
13
13
  };
14
14
 
15
15
  declare function propsToString(props: Record<string, any>): string;
@@ -1,4 +1,13 @@
1
- import { R as ResolvableHead, a as ResolvableValue, b as ResolvableProperties, L as LinkWithoutEvents, D as DataKeys, S as SchemaAugmentations, c as UnheadMeta, d as Style, e as ScriptWithoutEvents, N as Noscript, f as UnheadHtmlAttributes, g as UnheadBodyAttributesWithoutEvents } from './unhead.B9T4uIcB.mjs';
1
+ import { a5 as RawInput, R as ResolvableHead, az as ResolvableValue, aA as ResolvableProperties, ag as LinkWithoutEvents, ab as DataKeys, J as SchemaAugmentations, O as UnheadMeta, ai as ScriptWithoutEvents, N as UnheadHtmlAttributes, L as UnheadBodyAttributesWithoutEvents } from './unhead.BlCDUtBx.mjs';
2
+
3
+ type Base = RawInput<'base'>;
4
+ type HtmlAttributes = RawInput<'htmlAttrs'>;
5
+ type Noscript = RawInput<'noscript'>;
6
+ type Style = RawInput<'style'>;
7
+ type Meta = RawInput<'meta'>;
8
+ type Script = RawInput<'script'>;
9
+ type Link = RawInput<'link'>;
10
+ type BodyAttributes = RawInput<'bodyAttrs'>;
2
11
 
3
12
  type SafeBodyAttr = ResolvableProperties<Pick<UnheadBodyAttributesWithoutEvents, 'id' | 'class' | 'style'> & DataKeys & SchemaAugmentations['bodyAttrs']>;
4
13
  type SafeHtmlAttr = ResolvableProperties<Pick<UnheadHtmlAttributes, 'id' | 'class' | 'style' | 'lang' | 'dir'> & DataKeys & SchemaAugmentations['htmlAttrs']>;
@@ -56,4 +65,4 @@ interface HeadSafe extends Pick<ResolvableHead, 'title' | 'titleTemplate' | 'tem
56
65
  bodyAttrs?: ResolvableValue<SafeBodyAttr>;
57
66
  }
58
67
 
59
- export type { HeadSafe as H, SafeBodyAttr as S, SafeHtmlAttr as a, SafeMeta as b, SafeLink as c, SafeScript as d, SafeNoscript as e, SafeStyle as f };
68
+ export type { Base as B, HeadSafe as H, Link as L, Meta as M, Noscript as N, SafeBodyAttr as S, SafeHtmlAttr as a, SafeMeta as b, SafeLink as c, SafeScript as d, SafeNoscript as e, SafeStyle as f, HtmlAttributes as g, Style as h, Script as i, BodyAttributes as j };
@@ -1867,7 +1867,7 @@ interface ResolvableHead {
1867
1867
  */
1868
1868
  templateParams?: ResolvableTemplateParams;
1869
1869
  }
1870
- interface SerializableResolvedHead {
1870
+ interface SerializableHead {
1871
1871
  title?: string;
1872
1872
  base?: Base & DataKeys & SchemaAugmentations['base'];
1873
1873
  templateParams?: Record<string, any>;
@@ -1879,19 +1879,20 @@ interface SerializableResolvedHead {
1879
1879
  htmlAttrs?: HtmlAttributes & DataKeys & SchemaAugmentations['htmlAttrs'];
1880
1880
  bodyAttrs?: BodyAttributesWithoutEvents & DataKeys & BodyEvents & SchemaAugmentations['bodyAttrs'];
1881
1881
  }
1882
+ type RawInput<K extends keyof SerializableHead> = Required<SerializableHead>[K] extends Array<infer T> ? T : Required<SerializableHead>[K];
1882
1883
  /**
1883
1884
  * @deprecated Use SerializableResolvedHead
1884
1885
  */
1885
- type Head = SerializableResolvedHead;
1886
+ type Head = SerializableHead;
1886
1887
  /**
1887
1888
  * @deprecated Use SerializableResolvedHead
1888
1889
  */
1889
- type ResolvedHead = SerializableResolvedHead;
1890
+ type ResolvedHead = SerializableHead;
1890
1891
  type UseSeoMetaInput = DeepResolvableProperties<MetaFlat> & {
1891
1892
  title?: ResolvableTitle;
1892
1893
  titleTemplate?: ResolvableTitleTemplate;
1893
1894
  };
1894
- type UseHeadInput = ResolvableHead | SerializableResolvedHead;
1895
+ type UseHeadInput = ResolvableHead | SerializableHead;
1895
1896
  type MetaFlatInput = MetaFlat;
1896
1897
 
1897
1898
  /**
@@ -2298,4 +2299,4 @@ interface DomState {
2298
2299
  elMap: Map<string, Element | Element[]>;
2299
2300
  }
2300
2301
 
2301
- export type { MaybeEventFnHandlers as $, AsVoidFunctions as A, Booleanable as B, CreateHeadOptions as C, DataKeys as D, EventHandlerOptions as E, DomState as F, HookResult as G, HeadEntry as H, SSRHeadPayload as I, RenderSSRHeadOptions as J, EntryResolveCtx as K, LinkWithoutEvents as L, DomRenderTagContext as M, Noscript as N, DomBeforeRenderCtx as O, PropResolver as P, ShouldRenderContext as Q, ResolvableHead as R, SchemaAugmentations as S, SSRRenderContext as T, Unhead as U, HeadHooks as V, WarmupStrategy as W, RenderDomHeadOptions as X, DomPluginOptions as Y, MetaFlatInput as Z, MaybeArray as _, ResolvableValue as a, ResolvableTitle as a0, ResolvableTitleTemplate as a1, ResolvableBase as a2, ResolvableLink as a3, ResolvableMeta as a4, ResolvableStyle as a5, ResolvableScript as a6, ResolvableNoscript as a7, ResolvableHtmlAttributes as a8, ResolvableBodyAttributes as a9, HeadTag as aA, HeadTagKeys as aB, Stringable as aC, Arrayable as aD, Never as aE, ResolvableUnion as aF, DeepResolvableProperties as aG, ResolvableTemplateParams as aa, SerializableResolvedHead as ab, Head as ac, ResolvedHead as ad, UseSeoMetaInput as ae, UseHeadInput as af, MergeHead as ag, HttpEventAttributes as ah, GlobalAttributes as ai, Base as aj, BodyAttributesWithoutEvents as ak, BodyEvents as al, HtmlAttributes as am, Meta as an, MetaFlat as ao, ResolvesDuplicates as ap, ValidTagPositions as aq, TagPosition as ar, InnerContentVal as as, InnerContent as at, TagPriority as au, TagUserProperties as av, TagKey as aw, TemplateParams as ax, ProcessesTemplateParams as ay, HasTemplateParams as az, ResolvableProperties as b, UnheadMeta as c, Style as d, ScriptWithoutEvents as e, UnheadHtmlAttributes as f, UnheadBodyAttributesWithoutEvents as g, UseScriptInput as h, UseScriptOptions as i, UseScriptReturn as j, ReferrerPolicy as k, UseScriptStatus as l, UseScriptContext as m, UseScriptResolvedInput as n, UseFunctionType as o, ScriptInstance as p, RecordingEntry as q, SideEffectsRecord as r, RuntimeMode as s, HeadPluginOptions as t, HeadPluginInput as u, HeadPlugin as v, ActiveHeadEntry as w, CreateServerHeadOptions as x, CreateClientHeadOptions as y, HeadEntryOptions as z };
2302
+ export type { ResolvableScript as $, AsVoidFunctions as A, Booleanable as B, CreateHeadOptions as C, DomState as D, EventHandlerOptions as E, HeadHooks as F, RenderDomHeadOptions as G, HeadEntry as H, DomPluginOptions as I, SchemaAugmentations as J, MaybeArray as K, UnheadBodyAttributesWithoutEvents as L, MetaFlatInput as M, UnheadHtmlAttributes as N, UnheadMeta as O, PropResolver as P, MaybeEventFnHandlers as Q, ResolvableHead as R, ScriptInstance as S, ResolvableTitle as T, Unhead as U, ResolvableTitleTemplate as V, WarmupStrategy as W, ResolvableBase as X, ResolvableLink as Y, ResolvableMeta as Z, ResolvableStyle as _, UseScriptInput as a, ResolvableNoscript as a0, ResolvableHtmlAttributes as a1, ResolvableBodyAttributes as a2, ResolvableTemplateParams as a3, SerializableHead as a4, RawInput as a5, Head as a6, ResolvedHead as a7, UseSeoMetaInput as a8, UseHeadInput as a9, ResolvableProperties as aA, ResolvableUnion as aB, DeepResolvableProperties as aC, MergeHead as aa, DataKeys as ab, HttpEventAttributes as ac, GlobalAttributes as ad, BodyAttributesWithoutEvents as ae, BodyEvents as af, LinkWithoutEvents as ag, MetaFlat as ah, ScriptWithoutEvents as ai, ResolvesDuplicates as aj, ValidTagPositions as ak, TagPosition as al, InnerContentVal as am, InnerContent as an, TagPriority as ao, TagUserProperties as ap, TagKey as aq, TemplateParams as ar, ProcessesTemplateParams as as, HasTemplateParams as at, HeadTag as au, HeadTagKeys as av, Stringable as aw, Arrayable as ax, Never as ay, ResolvableValue as az, UseScriptOptions as b, UseScriptReturn as c, ReferrerPolicy as d, UseScriptStatus as e, UseScriptContext as f, UseScriptResolvedInput as g, UseFunctionType as h, RecordingEntry as i, SideEffectsRecord as j, RuntimeMode as k, HeadPluginOptions as l, HeadPluginInput as m, HeadPlugin as n, ActiveHeadEntry as o, CreateServerHeadOptions as p, CreateClientHeadOptions as q, HeadEntryOptions as r, HookResult as s, SSRHeadPayload as t, RenderSSRHeadOptions as u, EntryResolveCtx as v, DomRenderTagContext as w, DomBeforeRenderCtx as x, ShouldRenderContext as y, SSRRenderContext as z };
@@ -1867,7 +1867,7 @@ interface ResolvableHead {
1867
1867
  */
1868
1868
  templateParams?: ResolvableTemplateParams;
1869
1869
  }
1870
- interface SerializableResolvedHead {
1870
+ interface SerializableHead {
1871
1871
  title?: string;
1872
1872
  base?: Base & DataKeys & SchemaAugmentations['base'];
1873
1873
  templateParams?: Record<string, any>;
@@ -1879,19 +1879,20 @@ interface SerializableResolvedHead {
1879
1879
  htmlAttrs?: HtmlAttributes & DataKeys & SchemaAugmentations['htmlAttrs'];
1880
1880
  bodyAttrs?: BodyAttributesWithoutEvents & DataKeys & BodyEvents & SchemaAugmentations['bodyAttrs'];
1881
1881
  }
1882
+ type RawInput<K extends keyof SerializableHead> = Required<SerializableHead>[K] extends Array<infer T> ? T : Required<SerializableHead>[K];
1882
1883
  /**
1883
1884
  * @deprecated Use SerializableResolvedHead
1884
1885
  */
1885
- type Head = SerializableResolvedHead;
1886
+ type Head = SerializableHead;
1886
1887
  /**
1887
1888
  * @deprecated Use SerializableResolvedHead
1888
1889
  */
1889
- type ResolvedHead = SerializableResolvedHead;
1890
+ type ResolvedHead = SerializableHead;
1890
1891
  type UseSeoMetaInput = DeepResolvableProperties<MetaFlat> & {
1891
1892
  title?: ResolvableTitle;
1892
1893
  titleTemplate?: ResolvableTitleTemplate;
1893
1894
  };
1894
- type UseHeadInput = ResolvableHead | SerializableResolvedHead;
1895
+ type UseHeadInput = ResolvableHead | SerializableHead;
1895
1896
  type MetaFlatInput = MetaFlat;
1896
1897
 
1897
1898
  /**
@@ -2298,4 +2299,4 @@ interface DomState {
2298
2299
  elMap: Map<string, Element | Element[]>;
2299
2300
  }
2300
2301
 
2301
- export type { MaybeEventFnHandlers as $, AsVoidFunctions as A, Booleanable as B, CreateHeadOptions as C, DataKeys as D, EventHandlerOptions as E, DomState as F, HookResult as G, HeadEntry as H, SSRHeadPayload as I, RenderSSRHeadOptions as J, EntryResolveCtx as K, LinkWithoutEvents as L, DomRenderTagContext as M, Noscript as N, DomBeforeRenderCtx as O, PropResolver as P, ShouldRenderContext as Q, ResolvableHead as R, SchemaAugmentations as S, SSRRenderContext as T, Unhead as U, HeadHooks as V, WarmupStrategy as W, RenderDomHeadOptions as X, DomPluginOptions as Y, MetaFlatInput as Z, MaybeArray as _, ResolvableValue as a, ResolvableTitle as a0, ResolvableTitleTemplate as a1, ResolvableBase as a2, ResolvableLink as a3, ResolvableMeta as a4, ResolvableStyle as a5, ResolvableScript as a6, ResolvableNoscript as a7, ResolvableHtmlAttributes as a8, ResolvableBodyAttributes as a9, HeadTag as aA, HeadTagKeys as aB, Stringable as aC, Arrayable as aD, Never as aE, ResolvableUnion as aF, DeepResolvableProperties as aG, ResolvableTemplateParams as aa, SerializableResolvedHead as ab, Head as ac, ResolvedHead as ad, UseSeoMetaInput as ae, UseHeadInput as af, MergeHead as ag, HttpEventAttributes as ah, GlobalAttributes as ai, Base as aj, BodyAttributesWithoutEvents as ak, BodyEvents as al, HtmlAttributes as am, Meta as an, MetaFlat as ao, ResolvesDuplicates as ap, ValidTagPositions as aq, TagPosition as ar, InnerContentVal as as, InnerContent as at, TagPriority as au, TagUserProperties as av, TagKey as aw, TemplateParams as ax, ProcessesTemplateParams as ay, HasTemplateParams as az, ResolvableProperties as b, UnheadMeta as c, Style as d, ScriptWithoutEvents as e, UnheadHtmlAttributes as f, UnheadBodyAttributesWithoutEvents as g, UseScriptInput as h, UseScriptOptions as i, UseScriptReturn as j, ReferrerPolicy as k, UseScriptStatus as l, UseScriptContext as m, UseScriptResolvedInput as n, UseFunctionType as o, ScriptInstance as p, RecordingEntry as q, SideEffectsRecord as r, RuntimeMode as s, HeadPluginOptions as t, HeadPluginInput as u, HeadPlugin as v, ActiveHeadEntry as w, CreateServerHeadOptions as x, CreateClientHeadOptions as y, HeadEntryOptions as z };
2302
+ export type { ResolvableScript as $, AsVoidFunctions as A, Booleanable as B, CreateHeadOptions as C, DomState as D, EventHandlerOptions as E, HeadHooks as F, RenderDomHeadOptions as G, HeadEntry as H, DomPluginOptions as I, SchemaAugmentations as J, MaybeArray as K, UnheadBodyAttributesWithoutEvents as L, MetaFlatInput as M, UnheadHtmlAttributes as N, UnheadMeta as O, PropResolver as P, MaybeEventFnHandlers as Q, ResolvableHead as R, ScriptInstance as S, ResolvableTitle as T, Unhead as U, ResolvableTitleTemplate as V, WarmupStrategy as W, ResolvableBase as X, ResolvableLink as Y, ResolvableMeta as Z, ResolvableStyle as _, UseScriptInput as a, ResolvableNoscript as a0, ResolvableHtmlAttributes as a1, ResolvableBodyAttributes as a2, ResolvableTemplateParams as a3, SerializableHead as a4, RawInput as a5, Head as a6, ResolvedHead as a7, UseSeoMetaInput as a8, UseHeadInput as a9, ResolvableProperties as aA, ResolvableUnion as aB, DeepResolvableProperties as aC, MergeHead as aa, DataKeys as ab, HttpEventAttributes as ac, GlobalAttributes as ad, BodyAttributesWithoutEvents as ae, BodyEvents as af, LinkWithoutEvents as ag, MetaFlat as ah, ScriptWithoutEvents as ai, ResolvesDuplicates as aj, ValidTagPositions as ak, TagPosition as al, InnerContentVal as am, InnerContent as an, TagPriority as ao, TagUserProperties as ap, TagKey as aq, TemplateParams as ar, ProcessesTemplateParams as as, HasTemplateParams as at, HeadTag as au, HeadTagKeys as av, Stringable as aw, Arrayable as ax, Never as ay, ResolvableValue as az, UseScriptOptions as b, UseScriptReturn as c, ReferrerPolicy as d, UseScriptStatus as e, UseScriptContext as f, UseScriptResolvedInput as g, UseFunctionType as h, RecordingEntry as i, SideEffectsRecord as j, RuntimeMode as k, HeadPluginOptions as l, HeadPluginInput as m, HeadPlugin as n, ActiveHeadEntry as o, CreateServerHeadOptions as p, CreateClientHeadOptions as q, HeadEntryOptions as r, HookResult as s, SSRHeadPayload as t, RenderSSRHeadOptions as u, EntryResolveCtx as v, DomRenderTagContext as w, DomBeforeRenderCtx as x, ShouldRenderContext as y, SSRRenderContext as z };
@@ -1,4 +1,4 @@
1
- import { U as Unhead, h as UseScriptInput, i as UseScriptOptions, j as UseScriptReturn } from './unhead.B9T4uIcB.mjs';
1
+ import { U as Unhead, a as UseScriptInput, b as UseScriptOptions, c as UseScriptReturn } from './unhead.BlCDUtBx.mjs';
2
2
 
3
3
  /**
4
4
  * Load third-party scripts with SSR support and a proxied API.
@@ -1,4 +1,4 @@
1
- import { U as Unhead, h as UseScriptInput, i as UseScriptOptions, j as UseScriptReturn } from './unhead.B9T4uIcB.js';
1
+ import { U as Unhead, a as UseScriptInput, b as UseScriptOptions, c as UseScriptReturn } from './unhead.BlCDUtBx.js';
2
2
 
3
3
  /**
4
4
  * Load third-party scripts with SSR support and a proxied API.
@@ -1,4 +1,13 @@
1
- import { R as ResolvableHead, a as ResolvableValue, b as ResolvableProperties, L as LinkWithoutEvents, D as DataKeys, S as SchemaAugmentations, c as UnheadMeta, d as Style, e as ScriptWithoutEvents, N as Noscript, f as UnheadHtmlAttributes, g as UnheadBodyAttributesWithoutEvents } from './unhead.B9T4uIcB.js';
1
+ import { a5 as RawInput, R as ResolvableHead, az as ResolvableValue, aA as ResolvableProperties, ag as LinkWithoutEvents, ab as DataKeys, J as SchemaAugmentations, O as UnheadMeta, ai as ScriptWithoutEvents, N as UnheadHtmlAttributes, L as UnheadBodyAttributesWithoutEvents } from './unhead.BlCDUtBx.js';
2
+
3
+ type Base = RawInput<'base'>;
4
+ type HtmlAttributes = RawInput<'htmlAttrs'>;
5
+ type Noscript = RawInput<'noscript'>;
6
+ type Style = RawInput<'style'>;
7
+ type Meta = RawInput<'meta'>;
8
+ type Script = RawInput<'script'>;
9
+ type Link = RawInput<'link'>;
10
+ type BodyAttributes = RawInput<'bodyAttrs'>;
2
11
 
3
12
  type SafeBodyAttr = ResolvableProperties<Pick<UnheadBodyAttributesWithoutEvents, 'id' | 'class' | 'style'> & DataKeys & SchemaAugmentations['bodyAttrs']>;
4
13
  type SafeHtmlAttr = ResolvableProperties<Pick<UnheadHtmlAttributes, 'id' | 'class' | 'style' | 'lang' | 'dir'> & DataKeys & SchemaAugmentations['htmlAttrs']>;
@@ -56,4 +65,4 @@ interface HeadSafe extends Pick<ResolvableHead, 'title' | 'titleTemplate' | 'tem
56
65
  bodyAttrs?: ResolvableValue<SafeBodyAttr>;
57
66
  }
58
67
 
59
- export type { HeadSafe as H, SafeBodyAttr as S, SafeHtmlAttr as a, SafeMeta as b, SafeLink as c, SafeScript as d, SafeNoscript as e, SafeStyle as f };
68
+ export type { Base as B, HeadSafe as H, Link as L, Meta as M, Noscript as N, SafeBodyAttr as S, SafeHtmlAttr as a, SafeMeta as b, SafeLink as c, SafeScript as d, SafeNoscript as e, SafeStyle as f, HtmlAttributes as g, Style as h, Script as i, BodyAttributes as j };
package/dist/types.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { B as Booleanable, k as ReferrerPolicy } from './shared/unhead.B9T4uIcB.mjs';
2
- export { w as ActiveHeadEntry, aD as Arrayable, A as AsVoidFunctions, aj as Base, ak as BodyAttributesWithoutEvents, al as BodyEvents, y as CreateClientHeadOptions, C as CreateHeadOptions, x as CreateServerHeadOptions, D as DataKeys, aG as DeepResolvableProperties, O as DomBeforeRenderCtx, Y as DomPluginOptions, M as DomRenderTagContext, F as DomState, K as EntryResolveCtx, E as EventHandlerOptions, ai as GlobalAttributes, az as HasTemplateParams, ac as Head, H as HeadEntry, z as HeadEntryOptions, V as HeadHooks, v as HeadPlugin, u as HeadPluginInput, t as HeadPluginOptions, aA as HeadTag, aB as HeadTagKeys, G as HookResult, am as HtmlAttributes, ah as HttpEventAttributes, at as InnerContent, as as InnerContentVal, L as LinkWithoutEvents, _ as MaybeArray, $ as MaybeEventFnHandlers, ag as MergeHead, an as Meta, ao as MetaFlat, Z as MetaFlatInput, aE as Never, N as Noscript, ay as ProcessesTemplateParams, P as PropResolver, q as RecordingEntry, X as RenderDomHeadOptions, J as RenderSSRHeadOptions, a2 as ResolvableBase, a9 as ResolvableBodyAttributes, R as ResolvableHead, a8 as ResolvableHtmlAttributes, a3 as ResolvableLink, a4 as ResolvableMeta, a7 as ResolvableNoscript, b as ResolvableProperties, a6 as ResolvableScript, a5 as ResolvableStyle, aa as ResolvableTemplateParams, a0 as ResolvableTitle, a1 as ResolvableTitleTemplate, aF as ResolvableUnion, a as ResolvableValue, ad as ResolvedHead, ap as ResolvesDuplicates, s as RuntimeMode, I as SSRHeadPayload, T as SSRRenderContext, S as SchemaAugmentations, p as ScriptInstance, e as ScriptWithoutEvents, ab as SerializableResolvedHead, Q as ShouldRenderContext, r as SideEffectsRecord, aC as Stringable, d as Style, aw as TagKey, ar as TagPosition, au as TagPriority, av as TagUserProperties, ax as TemplateParams, U as Unhead, g as UnheadBodyAttributesWithoutEvents, f as UnheadHtmlAttributes, c as UnheadMeta, o as UseFunctionType, af as UseHeadInput, m as UseScriptContext, h as UseScriptInput, i as UseScriptOptions, n as UseScriptResolvedInput, j as UseScriptReturn, l as UseScriptStatus, ae as UseSeoMetaInput, aq as ValidTagPositions, W as WarmupStrategy } from './shared/unhead.B9T4uIcB.mjs';
3
- export { H as HeadSafe, S as SafeBodyAttr, a as SafeHtmlAttr, c as SafeLink, b as SafeMeta, e as SafeNoscript, d as SafeScript, f as SafeStyle } from './shared/unhead.Boa77p0p.mjs';
4
- export { u as useScript } from './shared/unhead.CTfhWwBZ.mjs';
1
+ import { B as Booleanable, d as ReferrerPolicy } from './shared/unhead.BlCDUtBx.mjs';
2
+ export { o as ActiveHeadEntry, ax as Arrayable, A as AsVoidFunctions, ae as BodyAttributesWithoutEvents, af as BodyEvents, q as CreateClientHeadOptions, C as CreateHeadOptions, p as CreateServerHeadOptions, ab as DataKeys, aC as DeepResolvableProperties, x as DomBeforeRenderCtx, I as DomPluginOptions, w as DomRenderTagContext, D as DomState, v as EntryResolveCtx, E as EventHandlerOptions, ad as GlobalAttributes, at as HasTemplateParams, a6 as Head, H as HeadEntry, r as HeadEntryOptions, F as HeadHooks, n as HeadPlugin, m as HeadPluginInput, l as HeadPluginOptions, au as HeadTag, av as HeadTagKeys, s as HookResult, ac as HttpEventAttributes, an as InnerContent, am as InnerContentVal, ag as LinkWithoutEvents, K as MaybeArray, Q as MaybeEventFnHandlers, aa as MergeHead, ah as MetaFlat, M as MetaFlatInput, ay as Never, as as ProcessesTemplateParams, P as PropResolver, a5 as RawInput, i as RecordingEntry, G as RenderDomHeadOptions, u as RenderSSRHeadOptions, X as ResolvableBase, a2 as ResolvableBodyAttributes, R as ResolvableHead, a1 as ResolvableHtmlAttributes, Y as ResolvableLink, Z as ResolvableMeta, a0 as ResolvableNoscript, aA as ResolvableProperties, $ as ResolvableScript, _ as ResolvableStyle, a3 as ResolvableTemplateParams, T as ResolvableTitle, V as ResolvableTitleTemplate, aB as ResolvableUnion, az as ResolvableValue, a7 as ResolvedHead, aj as ResolvesDuplicates, k as RuntimeMode, t as SSRHeadPayload, z as SSRRenderContext, J as SchemaAugmentations, S as ScriptInstance, ai as ScriptWithoutEvents, a4 as SerializableHead, y as ShouldRenderContext, j as SideEffectsRecord, aw as Stringable, aq as TagKey, al as TagPosition, ao as TagPriority, ap as TagUserProperties, ar as TemplateParams, U as Unhead, L as UnheadBodyAttributesWithoutEvents, N as UnheadHtmlAttributes, O as UnheadMeta, h as UseFunctionType, a9 as UseHeadInput, f as UseScriptContext, a as UseScriptInput, b as UseScriptOptions, g as UseScriptResolvedInput, c as UseScriptReturn, e as UseScriptStatus, a8 as UseSeoMetaInput, ak as ValidTagPositions, W as WarmupStrategy } from './shared/unhead.BlCDUtBx.mjs';
3
+ export { B as Base, j as BodyAttributes, H as HeadSafe, g as HtmlAttributes, L as Link, M as Meta, N as Noscript, S as SafeBodyAttr, a as SafeHtmlAttr, c as SafeLink, b as SafeMeta, e as SafeNoscript, d as SafeScript, f as SafeStyle, i as Script, h as Style } from './shared/unhead.BCRd_6gC.mjs';
4
+ export { u as useScript } from './shared/unhead.CGomMdtP.mjs';
5
5
  export { createSpyProxy } from './scripts.mjs';
6
6
  import 'hookable';
7
7
 
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { B as Booleanable, k as ReferrerPolicy } from './shared/unhead.B9T4uIcB.js';
2
- export { w as ActiveHeadEntry, aD as Arrayable, A as AsVoidFunctions, aj as Base, ak as BodyAttributesWithoutEvents, al as BodyEvents, y as CreateClientHeadOptions, C as CreateHeadOptions, x as CreateServerHeadOptions, D as DataKeys, aG as DeepResolvableProperties, O as DomBeforeRenderCtx, Y as DomPluginOptions, M as DomRenderTagContext, F as DomState, K as EntryResolveCtx, E as EventHandlerOptions, ai as GlobalAttributes, az as HasTemplateParams, ac as Head, H as HeadEntry, z as HeadEntryOptions, V as HeadHooks, v as HeadPlugin, u as HeadPluginInput, t as HeadPluginOptions, aA as HeadTag, aB as HeadTagKeys, G as HookResult, am as HtmlAttributes, ah as HttpEventAttributes, at as InnerContent, as as InnerContentVal, L as LinkWithoutEvents, _ as MaybeArray, $ as MaybeEventFnHandlers, ag as MergeHead, an as Meta, ao as MetaFlat, Z as MetaFlatInput, aE as Never, N as Noscript, ay as ProcessesTemplateParams, P as PropResolver, q as RecordingEntry, X as RenderDomHeadOptions, J as RenderSSRHeadOptions, a2 as ResolvableBase, a9 as ResolvableBodyAttributes, R as ResolvableHead, a8 as ResolvableHtmlAttributes, a3 as ResolvableLink, a4 as ResolvableMeta, a7 as ResolvableNoscript, b as ResolvableProperties, a6 as ResolvableScript, a5 as ResolvableStyle, aa as ResolvableTemplateParams, a0 as ResolvableTitle, a1 as ResolvableTitleTemplate, aF as ResolvableUnion, a as ResolvableValue, ad as ResolvedHead, ap as ResolvesDuplicates, s as RuntimeMode, I as SSRHeadPayload, T as SSRRenderContext, S as SchemaAugmentations, p as ScriptInstance, e as ScriptWithoutEvents, ab as SerializableResolvedHead, Q as ShouldRenderContext, r as SideEffectsRecord, aC as Stringable, d as Style, aw as TagKey, ar as TagPosition, au as TagPriority, av as TagUserProperties, ax as TemplateParams, U as Unhead, g as UnheadBodyAttributesWithoutEvents, f as UnheadHtmlAttributes, c as UnheadMeta, o as UseFunctionType, af as UseHeadInput, m as UseScriptContext, h as UseScriptInput, i as UseScriptOptions, n as UseScriptResolvedInput, j as UseScriptReturn, l as UseScriptStatus, ae as UseSeoMetaInput, aq as ValidTagPositions, W as WarmupStrategy } from './shared/unhead.B9T4uIcB.js';
3
- export { H as HeadSafe, S as SafeBodyAttr, a as SafeHtmlAttr, c as SafeLink, b as SafeMeta, e as SafeNoscript, d as SafeScript, f as SafeStyle } from './shared/unhead.BwfxNHko.js';
4
- export { u as useScript } from './shared/unhead.Bf6MJ2XT.js';
1
+ import { B as Booleanable, d as ReferrerPolicy } from './shared/unhead.BlCDUtBx.js';
2
+ export { o as ActiveHeadEntry, ax as Arrayable, A as AsVoidFunctions, ae as BodyAttributesWithoutEvents, af as BodyEvents, q as CreateClientHeadOptions, C as CreateHeadOptions, p as CreateServerHeadOptions, ab as DataKeys, aC as DeepResolvableProperties, x as DomBeforeRenderCtx, I as DomPluginOptions, w as DomRenderTagContext, D as DomState, v as EntryResolveCtx, E as EventHandlerOptions, ad as GlobalAttributes, at as HasTemplateParams, a6 as Head, H as HeadEntry, r as HeadEntryOptions, F as HeadHooks, n as HeadPlugin, m as HeadPluginInput, l as HeadPluginOptions, au as HeadTag, av as HeadTagKeys, s as HookResult, ac as HttpEventAttributes, an as InnerContent, am as InnerContentVal, ag as LinkWithoutEvents, K as MaybeArray, Q as MaybeEventFnHandlers, aa as MergeHead, ah as MetaFlat, M as MetaFlatInput, ay as Never, as as ProcessesTemplateParams, P as PropResolver, a5 as RawInput, i as RecordingEntry, G as RenderDomHeadOptions, u as RenderSSRHeadOptions, X as ResolvableBase, a2 as ResolvableBodyAttributes, R as ResolvableHead, a1 as ResolvableHtmlAttributes, Y as ResolvableLink, Z as ResolvableMeta, a0 as ResolvableNoscript, aA as ResolvableProperties, $ as ResolvableScript, _ as ResolvableStyle, a3 as ResolvableTemplateParams, T as ResolvableTitle, V as ResolvableTitleTemplate, aB as ResolvableUnion, az as ResolvableValue, a7 as ResolvedHead, aj as ResolvesDuplicates, k as RuntimeMode, t as SSRHeadPayload, z as SSRRenderContext, J as SchemaAugmentations, S as ScriptInstance, ai as ScriptWithoutEvents, a4 as SerializableHead, y as ShouldRenderContext, j as SideEffectsRecord, aw as Stringable, aq as TagKey, al as TagPosition, ao as TagPriority, ap as TagUserProperties, ar as TemplateParams, U as Unhead, L as UnheadBodyAttributesWithoutEvents, N as UnheadHtmlAttributes, O as UnheadMeta, h as UseFunctionType, a9 as UseHeadInput, f as UseScriptContext, a as UseScriptInput, b as UseScriptOptions, g as UseScriptResolvedInput, c as UseScriptReturn, e as UseScriptStatus, a8 as UseSeoMetaInput, ak as ValidTagPositions, W as WarmupStrategy } from './shared/unhead.BlCDUtBx.js';
3
+ export { B as Base, j as BodyAttributes, H as HeadSafe, g as HtmlAttributes, L as Link, M as Meta, N as Noscript, S as SafeBodyAttr, a as SafeHtmlAttr, c as SafeLink, b as SafeMeta, e as SafeNoscript, d as SafeScript, f as SafeStyle, i as Script, h as Style } from './shared/unhead.dVLMTonB.js';
4
+ export { u as useScript } from './shared/unhead.QmkIVPAq.js';
5
5
  export { createSpyProxy } from './scripts.js';
6
6
  import 'hookable';
7
7
 
package/dist/utils.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { aA as HeadTag, c as UnheadMeta, ao as MetaFlat, R as ResolvableHead, P as PropResolver, U as Unhead, ax as TemplateParams } from './shared/unhead.B9T4uIcB.mjs';
1
+ import { au as HeadTag, O as UnheadMeta, ah as MetaFlat, R as ResolvableHead, P as PropResolver, U as Unhead, ar as TemplateParams } from './shared/unhead.BlCDUtBx.mjs';
2
2
  import 'hookable';
3
3
 
4
4
  declare const SelfClosingTags: Set<string>;
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { aA as HeadTag, c as UnheadMeta, ao as MetaFlat, R as ResolvableHead, P as PropResolver, U as Unhead, ax as TemplateParams } from './shared/unhead.B9T4uIcB.js';
1
+ import { au as HeadTag, O as UnheadMeta, ah as MetaFlat, R as ResolvableHead, P as PropResolver, U as Unhead, ar as TemplateParams } from './shared/unhead.BlCDUtBx.js';
2
2
  import 'hookable';
3
3
 
4
4
  declare const SelfClosingTags: Set<string>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unhead",
3
3
  "type": "module",
4
- "version": "2.0.0-alpha.30",
4
+ "version": "2.0.0-alpha.31",
5
5
  "description": "Full-stack <head> manager built for any framework.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",