unhead 2.0.0-alpha.29 → 2.0.0-alpha.30

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 { a9 as ResolvableHead, o as CreateClientHeadOptions, q as Unhead, B as RenderDomHeadOptions } from './shared/unhead.Y55PIw_4.mjs';
1
+ import { R as ResolvableHead, y as CreateClientHeadOptions, U as Unhead, X as RenderDomHeadOptions } from './shared/unhead.B9T4uIcB.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 { a9 as ResolvableHead, o as CreateClientHeadOptions, q as Unhead, B as RenderDomHeadOptions } from './shared/unhead.Y55PIw_4.js';
1
+ import { R as ResolvableHead, y as CreateClientHeadOptions, U as Unhead, X as RenderDomHeadOptions } from './shared/unhead.B9T4uIcB.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.CtSoRBxO.mjs';
2
- import { q as Unhead, a9 as ResolvableHead, p as HeadEntryOptions, m as ActiveHeadEntry, ad as UseSeoMetaInput, C as CreateHeadOptions } from './shared/unhead.Y55PIw_4.mjs';
3
- export { u as useScript } from './shared/unhead.CU2Mh7US.mjs';
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';
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.CY24z1zp.js';
2
- import { q as Unhead, a9 as ResolvableHead, p as HeadEntryOptions, m as ActiveHeadEntry, ad as UseSeoMetaInput, C as CreateHeadOptions } from './shared/unhead.Y55PIw_4.js';
3
- export { u as useScript } from './shared/unhead.-0hzBWNc.js';
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';
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 { q as Unhead, a9 as ResolvableHead, C as CreateHeadOptions } from './shared/unhead.Y55PIw_4.mjs';
4
- export { u as useScript } from './shared/unhead.CU2Mh7US.mjs';
5
- import './shared/unhead.CtSoRBxO.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';
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 { q as Unhead, a9 as ResolvableHead, C as CreateHeadOptions } from './shared/unhead.Y55PIw_4.js';
4
- export { u as useScript } from './shared/unhead.-0hzBWNc.js';
5
- import './shared/unhead.CY24z1zp.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';
6
6
  import 'hookable';
7
7
 
8
8
  declare const activeHead: {
@@ -1,4 +1,4 @@
1
- import { k as HeadPluginInput, q as Unhead, j as HeadPluginOptions } from './shared/unhead.Y55PIw_4.mjs';
1
+ import { u as HeadPluginInput, U as Unhead, t as HeadPluginOptions } from './shared/unhead.B9T4uIcB.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 { k as HeadPluginInput, q as Unhead, j as HeadPluginOptions } from './shared/unhead.Y55PIw_4.js';
1
+ import { u as HeadPluginInput, U as Unhead, t as HeadPluginOptions } from './shared/unhead.B9T4uIcB.js';
2
2
  import 'hookable';
3
3
 
4
4
  declare const AliasSortingPlugin: HeadPluginInput;
@@ -1,6 +1,6 @@
1
- import { e as RecordingEntry } from './shared/unhead.Y55PIw_4.mjs';
2
- export { A as AsVoidFunctions, E as EventHandlerOptions, S as ScriptInstance, d as UseFunctionType, a as UseScriptContext, c as UseScriptInput, f as UseScriptOptions, b as UseScriptResolvedInput, g as UseScriptReturn, U as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.Y55PIw_4.mjs';
3
- export { u as useScript } from './shared/unhead.CU2Mh7US.mjs';
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';
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 { e as RecordingEntry } from './shared/unhead.Y55PIw_4.js';
2
- export { A as AsVoidFunctions, E as EventHandlerOptions, S as ScriptInstance, d as UseFunctionType, a as UseScriptContext, c as UseScriptInput, f as UseScriptOptions, b as UseScriptResolvedInput, g as UseScriptReturn, U as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.Y55PIw_4.js';
3
- export { u as useScript } from './shared/unhead.-0hzBWNc.js';
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';
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 { a9 as ResolvableHead, n as CreateServerHeadOptions, q as Unhead, t as RenderSSRHeadOptions, s as SSRHeadPayload, aa as SerializableHead, ar as HeadTag } from './shared/unhead.Y55PIw_4.mjs';
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';
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: SerializableHead;
12
+ input: SerializableResolvedHead;
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 { a9 as ResolvableHead, n as CreateServerHeadOptions, q as Unhead, t as RenderSSRHeadOptions, s as SSRHeadPayload, aa as SerializableHead, ar as HeadTag } from './shared/unhead.Y55PIw_4.js';
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';
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: SerializableHead;
12
+ input: SerializableResolvedHead;
13
13
  };
14
14
 
15
15
  declare function propsToString(props: Record<string, any>): string;
@@ -5,7 +5,7 @@ type UseScriptContext<T extends Record<symbol | string, any>> = ScriptInstance<T
5
5
  /**
6
6
  * Either a string source for the script or full script properties.
7
7
  */
8
- type UseScriptResolvedInput = Omit<ScriptBase, 'src'> & {
8
+ type UseScriptResolvedInput = Omit<ScriptWithoutEvents, 'src'> & {
9
9
  src: string;
10
10
  } & DataKeys & MaybeEventFnHandlers<HttpEventAttributes> & SchemaAugmentations['script'];
11
11
  type BaseScriptApi = Record<symbol | string, any>;
@@ -147,7 +147,7 @@ interface HttpEventAttributes {
147
147
  onloadstart?: string;
148
148
  }
149
149
 
150
- interface Base$1 {
150
+ interface Base {
151
151
  /**
152
152
  * The base URL to be used throughout the document for relative URLs. Absolute and relative URLs are allowed.
153
153
  *
@@ -398,10 +398,10 @@ interface BodyEvents {
398
398
  */
399
399
  onunload?: string;
400
400
  }
401
- interface BaseBodyAttributes extends Pick<GlobalAttributes, 'class' | 'style' | 'id'> {
401
+ interface BodyAttributesWithoutEvents extends Pick<GlobalAttributes, 'class' | 'style' | 'id'> {
402
402
  }
403
403
 
404
- interface HtmlAttributes$1 extends Pick<GlobalAttributes, 'lang' | 'dir' | 'translate' | 'class' | 'style' | 'id'> {
404
+ interface HtmlAttributes extends Pick<GlobalAttributes, 'lang' | 'dir' | 'translate' | 'class' | 'style' | 'id'> {
405
405
  /**
406
406
  * Open-graph protocol prefix.
407
407
  *
@@ -445,7 +445,7 @@ interface Blocking {
445
445
  }
446
446
 
447
447
  type LinkRelTypes = 'alternate' | 'author' | 'shortcut icon' | 'bookmark' | 'canonical' | 'dns-prefetch' | 'external' | 'help' | 'icon' | 'license' | 'manifest' | 'me' | 'modulepreload' | 'next' | 'nofollow' | 'noopener' | 'noreferrer' | 'opener' | 'pingback' | 'preconnect' | 'prefetch' | 'preload' | 'prerender' | 'prev' | 'search' | 'shortlink' | 'stylesheet' | 'tag' | 'apple-touch-icon' | 'apple-touch-startup-image';
448
- interface LinkBase extends Pick<GlobalAttributes, 'nonce' | 'id'>, Blocking {
448
+ interface LinkWithoutEvents extends Pick<GlobalAttributes, 'nonce' | 'id'>, Blocking {
449
449
  /**
450
450
  * This attribute is only used when rel="preload" or rel="prefetch" has been set on the `<link>` element.
451
451
  * It specifies the type of content being loaded by the `<link>`, which is necessary for request matching,
@@ -575,7 +575,7 @@ interface LinkBase extends Pick<GlobalAttributes, 'nonce' | 'id'>, Blocking {
575
575
 
576
576
  type MetaNames = 'apple-itunes-app' | 'apple-mobile-web-app-capable' | 'apple-mobile-web-app-status-bar-style' | 'apple-mobile-web-app-title' | 'application-name' | 'author' | 'charset' | 'color-scheme' | 'content-security-policy' | 'content-type' | 'creator' | 'default-style' | 'description' | 'fb:app_id' | 'format-detection' | 'generator' | 'google-site-verification' | 'google' | 'googlebot' | 'keywords' | 'mobile-web-app-capable' | 'msapplication-Config' | 'msapplication-TileColor' | 'msapplication-TileImage' | 'publisher' | 'rating' | 'referrer' | 'refresh' | 'robots' | 'theme-color' | 'twitter:app:id:googleplay' | 'twitter:app:id:ipad' | 'twitter:app:id:iphone' | 'twitter:app:name:googleplay' | 'twitter:app:name:ipad' | 'twitter:app:name:iphone' | 'twitter:app:url:googleplay' | 'twitter:app:url:ipad' | 'twitter:app:url:iphone' | 'twitter:card' | 'twitter:creator:id' | 'twitter:creator' | 'twitter:data:1' | 'twitter:data:2' | 'twitter:description' | 'twitter:image:alt' | 'twitter:image' | 'twitter:label:1' | 'twitter:label:2' | 'twitter:player:height' | 'twitter:player:stream' | 'twitter:player:width' | 'twitter:player' | 'twitter:site:id' | 'twitter:site' | 'twitter:title' | 'viewport' | 'x-ua-compatible';
577
577
  type MetaProperties = 'article:author' | 'article:expiration_time' | 'article:modified_time' | 'article:published_time' | 'article:section' | 'article:tag' | 'book:author' | 'book:isbn' | 'book:release_data' | 'book:tag' | 'fb:app:id' | 'og:audio:secure_url' | 'og:audio:type' | 'og:audio:url' | 'og:description' | 'og:determiner' | 'og:image:height' | 'og:image:secure_url' | 'og:image:type' | 'og:image:url' | 'og:image:width' | 'og:image' | 'og:locale:alternate' | 'og:locale' | 'og:site:name' | 'og:title' | 'og:type' | 'og:url' | 'og:video:height' | 'og:video:secure_url' | 'og:video:type' | 'og:video:url' | 'og:video:width' | 'og:video' | 'profile:first_name' | 'profile:gender' | 'profile:last_name' | 'profile:username';
578
- interface Meta$1 extends Pick<GlobalAttributes, 'id'> {
578
+ interface Meta extends Pick<GlobalAttributes, 'id'> {
579
579
  /**
580
580
  * This attribute declares the document's character encoding.
581
581
  * If the attribute is present, its value must be an ASCII case-insensitive match for the string "utf-8",
@@ -1594,7 +1594,7 @@ interface MetaFlat extends MetaFlatArticle, MetaFlatBook, MetaFlatProfile {
1594
1594
  keywords?: string;
1595
1595
  }
1596
1596
 
1597
- interface Noscript$1 {
1597
+ interface Noscript {
1598
1598
  /**
1599
1599
  * This attribute defines the unique ID.
1600
1600
  */
@@ -1612,7 +1612,7 @@ interface Noscript$1 {
1612
1612
  style?: string;
1613
1613
  }
1614
1614
 
1615
- interface ScriptBase extends Pick<GlobalAttributes, 'nonce' | 'id'>, Blocking {
1615
+ interface ScriptWithoutEvents extends Pick<GlobalAttributes, 'nonce' | 'id'>, Blocking {
1616
1616
  /**
1617
1617
  * For classic scripts, if the async attribute is present,
1618
1618
  * then the classic script will be fetched in parallel to parsing and evaluated as soon as it is available.
@@ -1689,7 +1689,7 @@ interface ScriptBase extends Pick<GlobalAttributes, 'nonce' | 'id'>, Blocking {
1689
1689
  ['custom-element']?: 'amp-story' | 'amp-carousel' | 'amp-ad' | (string & Record<never, never>);
1690
1690
  }
1691
1691
 
1692
- interface Style$1 extends Pick<GlobalAttributes, 'nonce' | 'id'>, Blocking {
1692
+ interface Style extends Pick<GlobalAttributes, 'nonce' | 'id'>, Blocking {
1693
1693
  /**
1694
1694
  * This attribute defines which media the style should be applied to.
1695
1695
  * Its value is a media query, which defaults to all if the attribute is missing.
@@ -1737,9 +1737,7 @@ interface SchemaAugmentations {
1737
1737
  noscript: TagPriority & TagPosition & InnerContent & ResolvesDuplicates & ProcessesTemplateParams;
1738
1738
  }
1739
1739
  type MaybeArray<T> = T | T[];
1740
- type BaseBodyAttr = BaseBodyAttributes;
1741
- type BaseHtmlAttr = HtmlAttributes$1;
1742
- interface BodyAttr extends Omit<BaseBodyAttr, 'class' | 'style'> {
1740
+ interface UnheadBodyAttributesWithoutEvents extends Omit<BodyAttributesWithoutEvents, 'class' | 'style'> {
1743
1741
  /**
1744
1742
  * The class global attribute is a space-separated list of the case-sensitive classes of the element.
1745
1743
  *
@@ -1753,7 +1751,7 @@ interface BodyAttr extends Omit<BaseBodyAttr, 'class' | 'style'> {
1753
1751
  */
1754
1752
  style?: MaybeArray<ResolvableValue<Stringable>> | Record<string, ResolvableValue<Stringable>>;
1755
1753
  }
1756
- interface HtmlAttr extends Omit<HtmlAttributes$1, 'class' | 'style'> {
1754
+ interface UnheadHtmlAttributes extends Omit<HtmlAttributes, 'class' | 'style'> {
1757
1755
  /**
1758
1756
  * The class global attribute is a space-separated list of the case-sensitive classes of the element.
1759
1757
  *
@@ -1767,7 +1765,7 @@ interface HtmlAttr extends Omit<HtmlAttributes$1, 'class' | 'style'> {
1767
1765
  */
1768
1766
  style?: MaybeArray<ResolvableValue<Stringable>> | Record<string, ResolvableValue<Stringable>>;
1769
1767
  }
1770
- interface BaseMeta extends Omit<Meta$1, 'content'> {
1768
+ interface UnheadMeta extends Omit<Meta, 'content'> {
1771
1769
  /**
1772
1770
  * This attribute contains the value for the http-equiv, name or property attribute, depending on which is used.
1773
1771
  *
@@ -1780,21 +1778,23 @@ interface BaseMeta extends Omit<Meta$1, 'content'> {
1780
1778
  type MaybeEventFnHandlers<T> = {
1781
1779
  [key in keyof T]?: T[key] | ((e: Event) => void);
1782
1780
  };
1783
- type TitleTemplateResolver = string | ((title?: string) => string | null);
1784
- type Title = ResolvableValue<Stringable> | ResolvableProperties<({
1781
+ type ResolvableTitle = ResolvableValue<Stringable> | ResolvableProperties<({
1785
1782
  textContent: string;
1786
1783
  } & SchemaAugmentations['title'])>;
1787
- type TitleTemplate = TitleTemplateResolver | null | ({
1788
- textContent: TitleTemplateResolver;
1784
+ type ResolvableTitleTemplate = string | ((title?: string) => string | null) | null | ({
1785
+ textContent: string | ((title?: string) => string | null);
1789
1786
  } & SchemaAugmentations['titleTemplate']);
1790
- type Base = ResolvableProperties<Base$1 & SchemaAugmentations['base']>;
1791
- type Link = ResolvableProperties<LinkBase & DataKeys & SchemaAugmentations['link']> & MaybeEventFnHandlers<HttpEventAttributes>;
1792
- type Meta = ResolvableProperties<BaseMeta & DataKeys & SchemaAugmentations['meta']>;
1793
- type Style = ResolvableProperties<Style$1 & DataKeys & SchemaAugmentations['style']>;
1794
- type Script = ResolvableProperties<ScriptBase & DataKeys & SchemaAugmentations['script']> & MaybeEventFnHandlers<HttpEventAttributes>;
1795
- type Noscript = ResolvableProperties<Noscript$1 & DataKeys & SchemaAugmentations['noscript']>;
1796
- type HtmlAttributes = ResolvableProperties<HtmlAttr & DataKeys & SchemaAugmentations['htmlAttrs']>;
1797
- type BodyAttributes = ResolvableProperties<BodyAttr & DataKeys & SchemaAugmentations['bodyAttrs']> & MaybeEventFnHandlers<BodyEvents>;
1787
+ type ResolvableBase = ResolvableProperties<Base & SchemaAugmentations['base']>;
1788
+ type ResolvableLink = ResolvableProperties<LinkWithoutEvents & DataKeys & SchemaAugmentations['link']> & MaybeEventFnHandlers<HttpEventAttributes>;
1789
+ type ResolvableMeta = ResolvableProperties<UnheadMeta & DataKeys & SchemaAugmentations['meta']>;
1790
+ type ResolvableStyle = ResolvableProperties<Style & DataKeys & SchemaAugmentations['style']> | string;
1791
+ type ResolvableScript = ResolvableProperties<ScriptWithoutEvents & DataKeys & SchemaAugmentations['script']> & MaybeEventFnHandlers<HttpEventAttributes> | string;
1792
+ type ResolvableNoscript = ResolvableProperties<Noscript & DataKeys & SchemaAugmentations['noscript']> | string;
1793
+ type ResolvableHtmlAttributes = ResolvableProperties<UnheadHtmlAttributes & DataKeys & SchemaAugmentations['htmlAttrs']>;
1794
+ type ResolvableBodyAttributes = ResolvableProperties<UnheadBodyAttributesWithoutEvents & DataKeys & SchemaAugmentations['bodyAttrs']> & MaybeEventFnHandlers<BodyEvents>;
1795
+ type ResolvableTemplateParams = {
1796
+ separator?: '|' | '-' | '·' | string;
1797
+ } & Record<string, null | string | Record<string, string>>;
1798
1798
  interface ResolvableHead {
1799
1799
  /**
1800
1800
  * The `<title>` HTML element defines the document's title that is shown in a browser's title bar or a page's tab.
@@ -1802,14 +1802,14 @@ interface ResolvableHead {
1802
1802
  *
1803
1803
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title
1804
1804
  */
1805
- title?: Title;
1805
+ title?: ResolvableTitle;
1806
1806
  /**
1807
1807
  * The `<base>` HTML element specifies the base URL to use for all relative URLs in a document.
1808
1808
  * There can be only one <base> element in a document.
1809
1809
  *
1810
1810
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
1811
1811
  */
1812
- base?: ResolvableValue<Base>;
1812
+ base?: ResolvableValue<ResolvableBase>;
1813
1813
  /**
1814
1814
  * The `<link>` HTML element specifies relationships between the current document and an external resource.
1815
1815
  * This element is most commonly used to link to stylesheets, but is also used to establish site icons
@@ -1817,86 +1817,81 @@ interface ResolvableHead {
1817
1817
  *
1818
1818
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-as
1819
1819
  */
1820
- link?: ResolvableValue<ResolvableValue<Link>[]>;
1820
+ link?: ResolvableValue<ResolvableValue<ResolvableLink>[]>;
1821
1821
  /**
1822
1822
  * The `<meta>` element represents metadata that cannot be expressed in other HTML elements, like `<link>` or `<script>`.
1823
1823
  *
1824
1824
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
1825
1825
  */
1826
- meta?: ResolvableValue<ResolvableValue<Meta>[]>;
1826
+ meta?: ResolvableValue<ResolvableValue<ResolvableMeta>[]>;
1827
1827
  /**
1828
1828
  * The `<style>` HTML element contains style information for a document, or part of a document.
1829
1829
  * It contains CSS, which is applied to the contents of the document containing the `<style>` element.
1830
1830
  *
1831
1831
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style
1832
1832
  */
1833
- style?: ResolvableValue<ResolvableValue<(Style | string)>[]>;
1833
+ style?: ResolvableValue<ResolvableValue<(ResolvableStyle)>[]>;
1834
1834
  /**
1835
1835
  * The `<script>` HTML element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code.
1836
1836
  *
1837
1837
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
1838
1838
  */
1839
- script?: ResolvableValue<ResolvableValue<(Script | string)>[]>;
1839
+ script?: ResolvableValue<ResolvableValue<(ResolvableScript)>[]>;
1840
1840
  /**
1841
1841
  * The `<noscript>` HTML element defines a section of HTML to be inserted if a script type on the page is unsupported
1842
1842
  * or if scripting is currently turned off in the browser.
1843
1843
  *
1844
1844
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript
1845
1845
  */
1846
- noscript?: ResolvableValue<ResolvableValue<(Noscript | string)>[]>;
1846
+ noscript?: ResolvableValue<ResolvableValue<(ResolvableNoscript)>[]>;
1847
1847
  /**
1848
1848
  * Attributes for the `<html>` HTML element.
1849
1849
  *
1850
1850
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html
1851
1851
  */
1852
- htmlAttrs?: ResolvableValue<HtmlAttributes>;
1852
+ htmlAttrs?: ResolvableValue<ResolvableHtmlAttributes>;
1853
1853
  /**
1854
1854
  * Attributes for the `<body>` HTML element.
1855
1855
  *
1856
1856
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body
1857
1857
  */
1858
- bodyAttrs?: ResolvableValue<BodyAttributes>;
1858
+ bodyAttrs?: ResolvableValue<ResolvableBodyAttributes>;
1859
1859
  /**
1860
1860
  * Generate the title from a template.
1861
1861
  *
1862
1862
  * Should include a `%s` placeholder for the title, for example `%s - My Site`.
1863
1863
  */
1864
- titleTemplate?: TitleTemplate;
1864
+ titleTemplate?: ResolvableTitleTemplate;
1865
1865
  /**
1866
1866
  * Variables used to substitute in the title and meta content.
1867
1867
  */
1868
- templateParams?: TemplateParams;
1868
+ templateParams?: ResolvableTemplateParams;
1869
1869
  }
1870
- interface SerializableHead {
1871
- /**
1872
- * Generate the title from a template.
1873
- *
1874
- * Should include a `%s` placeholder for the title, for example `%s - My Site`.
1875
- */
1876
- titleTemplate?: string;
1877
- /**
1878
- * Variables used to substitute in the title and meta content.
1879
- */
1880
- templateParams?: TemplateParams;
1881
- title?: string | ({
1882
- textContent: string;
1883
- } & SchemaAugmentations['title']);
1884
- base?: Base$1 & SchemaAugmentations['base'] & DataKeys;
1885
- link?: (LinkBase & SchemaAugmentations['link'] & DataKeys & HttpEventAttributes)[];
1886
- meta?: (Meta$1 & SchemaAugmentations['meta'] & DataKeys)[];
1887
- style?: (Style$1 & SchemaAugmentations['style'] & DataKeys)[];
1888
- script?: (ScriptBase & SchemaAugmentations['script'] & DataKeys & HttpEventAttributes)[];
1889
- noscript?: (Noscript$1 & SchemaAugmentations['noscript'] & DataKeys)[];
1890
- htmlAttrs?: HtmlAttributes$1 & SchemaAugmentations['htmlAttrs'] & DataKeys;
1891
- bodyAttrs?: BaseBodyAttr & SchemaAugmentations['bodyAttrs'] & DataKeys & BodyEvents;
1870
+ interface SerializableResolvedHead {
1871
+ title?: string;
1872
+ base?: Base & DataKeys & SchemaAugmentations['base'];
1873
+ templateParams?: Record<string, any>;
1874
+ link?: (LinkWithoutEvents & DataKeys & HttpEventAttributes & SchemaAugmentations['link'])[];
1875
+ meta?: (Meta & DataKeys & SchemaAugmentations['meta'])[];
1876
+ style?: (Style & DataKeys & SchemaAugmentations['style'])[];
1877
+ script?: (ScriptWithoutEvents & DataKeys & HttpEventAttributes & SchemaAugmentations['script'])[];
1878
+ noscript?: (Noscript & DataKeys & SchemaAugmentations['noscript'])[];
1879
+ htmlAttrs?: HtmlAttributes & DataKeys & SchemaAugmentations['htmlAttrs'];
1880
+ bodyAttrs?: BodyAttributesWithoutEvents & DataKeys & BodyEvents & SchemaAugmentations['bodyAttrs'];
1892
1881
  }
1893
- type Head = SerializableHead;
1894
- type ResolvedHead = SerializableHead;
1882
+ /**
1883
+ * @deprecated Use SerializableResolvedHead
1884
+ */
1885
+ type Head = SerializableResolvedHead;
1886
+ /**
1887
+ * @deprecated Use SerializableResolvedHead
1888
+ */
1889
+ type ResolvedHead = SerializableResolvedHead;
1895
1890
  type UseSeoMetaInput = DeepResolvableProperties<MetaFlat> & {
1896
- title?: Title;
1897
- titleTemplate?: TitleTemplate;
1891
+ title?: ResolvableTitle;
1892
+ titleTemplate?: ResolvableTitleTemplate;
1898
1893
  };
1899
- type UseHeadInput = ResolvableHead | SerializableHead;
1894
+ type UseHeadInput = ResolvableHead | SerializableResolvedHead;
1900
1895
  type MetaFlatInput = MetaFlat;
1901
1896
 
1902
1897
  /**
@@ -2303,4 +2298,4 @@ interface DomState {
2303
2298
  elMap: Map<string, Element | Element[]>;
2304
2299
  }
2305
2300
 
2306
- export type { Title as $, AsVoidFunctions as A, RenderDomHeadOptions as B, CreateHeadOptions as C, DomState as D, EventHandlerOptions as E, DomPluginOptions as F, BodyEvents as G, HeadEntry as H, DataKeys as I, HttpEventAttributes as J, MetaFlatInput as K, LinkBase as L, MetaFlat as M, ScriptBase as N, SchemaAugmentations as O, PropResolver as P, MaybeArray as Q, ReferrerPolicy as R, ScriptInstance as S, BaseBodyAttr as T, UseScriptStatus as U, BaseHtmlAttr as V, WarmupStrategy as W, BodyAttr as X, HtmlAttr as Y, BaseMeta as Z, MaybeEventFnHandlers as _, UseScriptContext as a, TitleTemplate as a0, Base as a1, Link as a2, Meta as a3, Style as a4, Script as a5, Noscript as a6, HtmlAttributes as a7, BodyAttributes as a8, ResolvableHead as a9, DeepResolvableProperties as aA, SerializableHead as aa, Head as ab, ResolvedHead as ac, UseSeoMetaInput as ad, UseHeadInput as ae, MergeHead as af, ResolvesDuplicates as ag, ValidTagPositions as ah, TagPosition as ai, InnerContentVal as aj, InnerContent as ak, TagPriority as al, TagUserProperties as am, TagKey as an, TemplateParams as ao, ProcessesTemplateParams as ap, HasTemplateParams as aq, HeadTag as ar, HeadTagKeys as as, Booleanable as at, Stringable as au, Arrayable as av, Never as aw, ResolvableValue as ax, ResolvableProperties as ay, ResolvableUnion as az, UseScriptResolvedInput as b, UseScriptInput as c, UseFunctionType as d, RecordingEntry as e, UseScriptOptions as f, UseScriptReturn as g, SideEffectsRecord as h, RuntimeMode as i, HeadPluginOptions as j, HeadPluginInput as k, HeadPlugin as l, ActiveHeadEntry as m, CreateServerHeadOptions as n, CreateClientHeadOptions as o, HeadEntryOptions as p, Unhead as q, HookResult as r, SSRHeadPayload as s, RenderSSRHeadOptions as t, EntryResolveCtx as u, DomRenderTagContext as v, DomBeforeRenderCtx as w, ShouldRenderContext as x, SSRRenderContext as y, HeadHooks as z };
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 };