unhead 2.0.0-alpha.27 → 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,4 +1,4 @@
1
- import { al as ResolvableHead, o as CreateClientHeadOptions, q as Unhead, B as RenderDomHeadOptions } from './shared/unhead.BNvCtqZe.mjs';
1
+ import { a9 as ResolvableHead, o as CreateClientHeadOptions, q as Unhead, B as RenderDomHeadOptions } from './shared/unhead.D7ZXlIDC.mjs';
2
2
  import 'hookable';
3
3
 
4
4
  declare function createHead<T = ResolvableHead>(options?: CreateClientHeadOptions): Unhead<T>;
@@ -6,7 +6,7 @@ declare function createHead<T = ResolvableHead>(options?: CreateClientHeadOption
6
6
  /**
7
7
  * Render the head tags to the DOM.
8
8
  */
9
- declare function renderDOMHead<T extends Unhead<unknown>>(head: T, options?: RenderDomHeadOptions): Promise<void>;
9
+ declare function renderDOMHead<T extends Unhead<any>>(head: T, options?: RenderDomHeadOptions): Promise<void>;
10
10
 
11
11
  declare function createDebouncedFn(callee: () => void, delayer: (fn: () => void) => void): () => void;
12
12
 
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { al as ResolvableHead, o as CreateClientHeadOptions, q as Unhead, B as RenderDomHeadOptions } from './shared/unhead.BNvCtqZe.js';
1
+ import { a9 as ResolvableHead, o as CreateClientHeadOptions, q as Unhead, B as RenderDomHeadOptions } from './shared/unhead.D7ZXlIDC.js';
2
2
  import 'hookable';
3
3
 
4
4
  declare function createHead<T = ResolvableHead>(options?: CreateClientHeadOptions): Unhead<T>;
@@ -6,7 +6,7 @@ declare function createHead<T = ResolvableHead>(options?: CreateClientHeadOption
6
6
  /**
7
7
  * Render the head tags to the DOM.
8
8
  */
9
- declare function renderDOMHead<T extends Unhead<unknown>>(head: T, options?: RenderDomHeadOptions): Promise<void>;
9
+ declare function renderDOMHead<T extends Unhead<any>>(head: T, options?: RenderDomHeadOptions): Promise<void>;
10
10
 
11
11
  declare function createDebouncedFn(callee: () => void, delayer: (fn: () => void) => void): () => void;
12
12
 
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- import { H as HeadSafe } from './shared/unhead.C7wPKDIu.mjs';
2
- import { q as Unhead, al as ResolvableHead, p as HeadEntryOptions, m as ActiveHeadEntry, aq as UseSeoMetaInput, C as CreateHeadOptions } from './shared/unhead.BNvCtqZe.mjs';
3
- export { u as useScript } from './shared/unhead.DVa9RUZi.mjs';
1
+ import { H as HeadSafe } from './shared/unhead.DrgnAGrI.mjs';
2
+ import { q as Unhead, a9 as ResolvableHead, p as HeadEntryOptions, m as ActiveHeadEntry, ad as UseSeoMetaInput, C as CreateHeadOptions } from './shared/unhead.D7ZXlIDC.mjs';
3
+ export { u as useScript } from './shared/unhead.FwBXUSZ6.mjs';
4
4
  import 'hookable';
5
5
 
6
- declare function useHead<T extends Unhead<any>, I = ResolvableHead>(unhead: T, input?: I, options?: HeadEntryOptions): ActiveHeadEntry<I>;
6
+ declare function useHead<T extends Unhead<any>, I = ResolvableHead>(unhead: T, input?: ResolvableHead, options?: HeadEntryOptions): ActiveHeadEntry<I>;
7
7
  declare function useHeadSafe<T extends Unhead<any>>(unhead: T, input?: HeadSafe, options?: HeadEntryOptions): ActiveHeadEntry<HeadSafe>;
8
8
  declare function useSeoMeta<T extends Unhead<any>>(unhead: T, input?: UseSeoMetaInput, options?: HeadEntryOptions): ActiveHeadEntry<UseSeoMetaInput>;
9
9
  /**
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { H as HeadSafe } from './shared/unhead.BVMY7T4L.js';
2
- import { q as Unhead, al as ResolvableHead, p as HeadEntryOptions, m as ActiveHeadEntry, aq as UseSeoMetaInput, C as CreateHeadOptions } from './shared/unhead.BNvCtqZe.js';
3
- export { u as useScript } from './shared/unhead.DwaxOn3-.js';
1
+ import { H as HeadSafe } from './shared/unhead.1OD7Xljz.js';
2
+ import { q as Unhead, a9 as ResolvableHead, p as HeadEntryOptions, m as ActiveHeadEntry, ad as UseSeoMetaInput, C as CreateHeadOptions } from './shared/unhead.D7ZXlIDC.js';
3
+ export { u as useScript } from './shared/unhead.cbh5uF88.js';
4
4
  import 'hookable';
5
5
 
6
- declare function useHead<T extends Unhead<any>, I = ResolvableHead>(unhead: T, input?: I, options?: HeadEntryOptions): ActiveHeadEntry<I>;
6
+ declare function useHead<T extends Unhead<any>, I = ResolvableHead>(unhead: T, input?: ResolvableHead, options?: HeadEntryOptions): ActiveHeadEntry<I>;
7
7
  declare function useHeadSafe<T extends Unhead<any>>(unhead: T, input?: HeadSafe, options?: HeadEntryOptions): ActiveHeadEntry<HeadSafe>;
8
8
  declare function useSeoMeta<T extends Unhead<any>>(unhead: T, input?: UseSeoMetaInput, options?: HeadEntryOptions): ActiveHeadEntry<UseSeoMetaInput>;
9
9
  /**
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- export { u as useHead, a as useHeadSafe, b as useSeoMeta, c as useServerHead, d as useServerHeadSafe, e as useServerSeoMeta } from './shared/unhead.DDkQzRDt.mjs';
1
+ export { u as useHead, a as useHeadSafe, b as useSeoMeta, c as useServerHead, d as useServerHeadSafe, e as useServerSeoMeta } from './shared/unhead.BPM0-cfG.mjs';
2
2
  export { c as createHeadCore, a as createUnhead } from './shared/unhead.CydFxwlU.mjs';
3
3
  export { u as useScript } from './shared/unhead.BHfOzKG2.mjs';
4
- import './shared/unhead.z5bPaiJg.mjs';
5
- import './shared/unhead.DFwCX-QT.mjs';
4
+ import './shared/unhead.CApf5sj3.mjs';
5
+ import './shared/unhead.DQc16pHI.mjs';
6
6
  import './shared/unhead.yem5I2v_.mjs';
7
7
  import 'hookable';
8
8
  import './shared/unhead.xsi8MZXD.mjs';
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, al as ResolvableHead, C as CreateHeadOptions } from './shared/unhead.BNvCtqZe.mjs';
4
- export { u as useScript } from './shared/unhead.DVa9RUZi.mjs';
5
- import './shared/unhead.C7wPKDIu.mjs';
3
+ import { q as Unhead, a9 as ResolvableHead, C as CreateHeadOptions } from './shared/unhead.D7ZXlIDC.mjs';
4
+ export { u as useScript } from './shared/unhead.FwBXUSZ6.mjs';
5
+ import './shared/unhead.DrgnAGrI.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, al as ResolvableHead, C as CreateHeadOptions } from './shared/unhead.BNvCtqZe.js';
4
- export { u as useScript } from './shared/unhead.DwaxOn3-.js';
5
- import './shared/unhead.BVMY7T4L.js';
3
+ import { q as Unhead, a9 as ResolvableHead, C as CreateHeadOptions } from './shared/unhead.D7ZXlIDC.js';
4
+ export { u as useScript } from './shared/unhead.cbh5uF88.js';
5
+ import './shared/unhead.1OD7Xljz.js';
6
6
  import 'hookable';
7
7
 
8
8
  declare const activeHead: {
package/dist/legacy.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import { a as createUnhead } from './shared/unhead.CydFxwlU.mjs';
2
- import { D as DeprecationsPlugin, P as PromisesPlugin, T as TemplateParamsPlugin, A as AliasSortingPlugin } from './shared/unhead.DaDcnCjk.mjs';
3
- export { u as useHead, a as useHeadSafe, b as useSeoMeta, c as useServerHead, d as useServerHeadSafe, e as useServerSeoMeta } from './shared/unhead.DDkQzRDt.mjs';
2
+ import { D as DeprecationsPlugin, P as PromisesPlugin, T as TemplateParamsPlugin, A as AliasSortingPlugin } from './shared/unhead.DnNYlT4k.mjs';
3
+ export { u as useHead, a as useHeadSafe, b as useSeoMeta, c as useServerHead, d as useServerHeadSafe, e as useServerSeoMeta } from './shared/unhead.BPM0-cfG.mjs';
4
4
  export { u as useScript } from './shared/unhead.BHfOzKG2.mjs';
5
5
  import 'hookable';
6
6
  import './shared/unhead.xsi8MZXD.mjs';
7
7
  import './shared/unhead.yem5I2v_.mjs';
8
8
  import './shared/unhead.DZbvapt-.mjs';
9
- import './shared/unhead.z5bPaiJg.mjs';
10
- import './shared/unhead.DFwCX-QT.mjs';
9
+ import './shared/unhead.CApf5sj3.mjs';
10
+ import './shared/unhead.DQc16pHI.mjs';
11
11
  import './shared/unhead.kVuXtrDW.mjs';
12
12
 
13
13
  const activeHead = { value: null };
@@ -1,4 +1,4 @@
1
- import { k as HeadPluginInput, q as Unhead, j as HeadPluginOptions } from './shared/unhead.BNvCtqZe.mjs';
1
+ import { k as HeadPluginInput, q as Unhead, j as HeadPluginOptions } from './shared/unhead.D7ZXlIDC.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.BNvCtqZe.js';
1
+ import { k as HeadPluginInput, q as Unhead, j as HeadPluginOptions } from './shared/unhead.D7ZXlIDC.js';
2
2
  import 'hookable';
3
3
 
4
4
  declare const AliasSortingPlugin: HeadPluginInput;
package/dist/plugins.mjs CHANGED
@@ -1,9 +1,9 @@
1
- export { A as AliasSortingPlugin, D as DeprecationsPlugin, P as PromisesPlugin, T as TemplateParamsPlugin } from './shared/unhead.DaDcnCjk.mjs';
2
- import { d as defineHeadPlugin } from './shared/unhead.z5bPaiJg.mjs';
3
- export { F as FlatMetaPlugin, S as SafeInputPlugin } from './shared/unhead.z5bPaiJg.mjs';
1
+ export { A as AliasSortingPlugin, D as DeprecationsPlugin, P as PromisesPlugin, T as TemplateParamsPlugin } from './shared/unhead.DnNYlT4k.mjs';
2
+ import { d as defineHeadPlugin } from './shared/unhead.CApf5sj3.mjs';
3
+ export { F as FlatMetaPlugin, S as SafeInputPlugin } from './shared/unhead.CApf5sj3.mjs';
4
4
  import './shared/unhead.DZbvapt-.mjs';
5
5
  import './shared/unhead.kVuXtrDW.mjs';
6
- import './shared/unhead.DFwCX-QT.mjs';
6
+ import './shared/unhead.DQc16pHI.mjs';
7
7
  import './shared/unhead.yem5I2v_.mjs';
8
8
 
9
9
  function CanonicalPlugin(options) {
@@ -1,6 +1,6 @@
1
- import { e as RecordingEntry } from './shared/unhead.BNvCtqZe.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.BNvCtqZe.mjs';
3
- export { u as useScript } from './shared/unhead.DVa9RUZi.mjs';
1
+ import { e as RecordingEntry } from './shared/unhead.D7ZXlIDC.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.D7ZXlIDC.mjs';
3
+ export { u as useScript } from './shared/unhead.FwBXUSZ6.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.BNvCtqZe.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.BNvCtqZe.js';
3
- export { u as useScript } from './shared/unhead.DwaxOn3-.js';
1
+ import { e as RecordingEntry } from './shared/unhead.D7ZXlIDC.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.D7ZXlIDC.js';
3
+ export { u as useScript } from './shared/unhead.cbh5uF88.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,9 +1,9 @@
1
- import { al as ResolvableHead, n as CreateServerHeadOptions, q as Unhead, t as RenderSSRHeadOptions, s as SSRHeadPayload, an as SerializableHead, aD as HeadTag } from './shared/unhead.BNvCtqZe.mjs';
1
+ import { a9 as ResolvableHead, n as CreateServerHeadOptions, q as Unhead, t as RenderSSRHeadOptions, s as SSRHeadPayload, aa as SerializableHead, aq as HeadTag } from './shared/unhead.D7ZXlIDC.mjs';
2
2
  import 'hookable';
3
3
 
4
4
  declare function createHead<T = ResolvableHead>(options?: CreateServerHeadOptions): Unhead<T>;
5
5
 
6
- declare function renderSSRHead<T extends Unhead<unknown>>(head: T, options?: RenderSSRHeadOptions): Promise<SSRHeadPayload>;
6
+ declare function renderSSRHead(head: Unhead<any>, options?: RenderSSRHeadOptions): Promise<SSRHeadPayload>;
7
7
 
8
8
  declare function transformHtmlTemplate(head: Unhead<any>, html: string, options?: RenderSSRHeadOptions): Promise<string>;
9
9
 
package/dist/server.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { al as ResolvableHead, n as CreateServerHeadOptions, q as Unhead, t as RenderSSRHeadOptions, s as SSRHeadPayload, an as SerializableHead, aD as HeadTag } from './shared/unhead.BNvCtqZe.js';
1
+ import { a9 as ResolvableHead, n as CreateServerHeadOptions, q as Unhead, t as RenderSSRHeadOptions, s as SSRHeadPayload, aa as SerializableHead, aq as HeadTag } from './shared/unhead.D7ZXlIDC.js';
2
2
  import 'hookable';
3
3
 
4
4
  declare function createHead<T = ResolvableHead>(options?: CreateServerHeadOptions): Unhead<T>;
5
5
 
6
- declare function renderSSRHead<T extends Unhead<unknown>>(head: T, options?: RenderSSRHeadOptions): Promise<SSRHeadPayload>;
6
+ declare function renderSSRHead(head: Unhead<any>, options?: RenderSSRHeadOptions): Promise<SSRHeadPayload>;
7
7
 
8
8
  declare function transformHtmlTemplate(head: Unhead<any>, html: string, options?: RenderSSRHeadOptions): Promise<string>;
9
9
 
@@ -1,4 +1,4 @@
1
- import { al as ResolvableHead, aJ as ResolvableValue, aK as ResolvableProperties, L as LinkBase, I as DataKeys, Q as SchemaAugmentations, $ as BaseMeta, a6 as Style, K as ScriptBase, a8 as Noscript, a9 as HtmlAttributes, aa as BodyAttributes } from './unhead.BNvCtqZe.js';
1
+ import { a9 as ResolvableHead, aw as ResolvableValue, ax as ResolvableProperties, L as LinkBase, I as DataKeys, O as SchemaAugmentations, Z as BaseMeta, a4 as Style, N as ScriptBase, a6 as Noscript, a7 as HtmlAttributes, a8 as BodyAttributes } from './unhead.D7ZXlIDC.js';
2
2
 
3
3
  type SafeBodyAttr = ResolvableProperties<Pick<BodyAttributes, 'id' | 'class' | 'style'> & DataKeys & SchemaAugmentations['bodyAttrs']>;
4
4
  type SafeHtmlAttr = ResolvableProperties<Pick<HtmlAttributes, 'id' | 'class' | 'style' | 'lang' | 'dir'> & DataKeys & SchemaAugmentations['htmlAttrs']>;
@@ -1,4 +1,4 @@
1
- import { S as SafeInputPlugin, F as FlatMetaPlugin } from './unhead.z5bPaiJg.mjs';
1
+ import { S as SafeInputPlugin, F as FlatMetaPlugin } from './unhead.CApf5sj3.mjs';
2
2
 
3
3
  function useHead(unhead, input, options = {}) {
4
4
  return unhead.push(input || {}, options);
@@ -1,4 +1,4 @@
1
- import { u as unpackMeta } from './unhead.DFwCX-QT.mjs';
1
+ import { u as unpackMeta } from './unhead.DQc16pHI.mjs';
2
2
 
3
3
  function defineHeadPlugin(plugin) {
4
4
  return plugin;