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 +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +3 -3
- package/dist/legacy.d.mts +3 -3
- package/dist/legacy.d.ts +3 -3
- package/dist/legacy.mjs +4 -4
- package/dist/plugins.d.mts +1 -1
- package/dist/plugins.d.ts +1 -1
- package/dist/plugins.mjs +4 -4
- package/dist/scripts.d.mts +3 -3
- package/dist/scripts.d.ts +3 -3
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/shared/{unhead.BVMY7T4L.d.ts → unhead.1OD7Xljz.d.ts} +1 -1
- package/dist/shared/{unhead.DDkQzRDt.mjs → unhead.BPM0-cfG.mjs} +1 -1
- package/dist/shared/{unhead.z5bPaiJg.mjs → unhead.CApf5sj3.mjs} +1 -1
- package/dist/shared/{unhead.BNvCtqZe.d.mts → unhead.D7ZXlIDC.d.mts} +180 -228
- package/dist/shared/{unhead.BNvCtqZe.d.ts → unhead.D7ZXlIDC.d.ts} +180 -228
- package/dist/shared/{unhead.DFwCX-QT.mjs → unhead.DQc16pHI.mjs} +1 -2
- package/dist/shared/{unhead.DaDcnCjk.mjs → unhead.DnNYlT4k.mjs} +1 -1
- package/dist/shared/{unhead.C7wPKDIu.d.mts → unhead.DrgnAGrI.d.mts} +1 -1
- package/dist/shared/{unhead.DVa9RUZi.d.mts → unhead.FwBXUSZ6.d.mts} +1 -1
- package/dist/shared/{unhead.DwaxOn3-.d.ts → unhead.cbh5uF88.d.ts} +1 -1
- package/dist/types.d.mts +4 -4
- package/dist/types.d.ts +4 -4
- package/dist/utils.d.mts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
package/dist/client.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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<
|
|
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 {
|
|
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<
|
|
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.
|
|
2
|
-
import { q as Unhead,
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
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?:
|
|
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.
|
|
2
|
-
import { q as Unhead,
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
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?:
|
|
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.
|
|
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.
|
|
5
|
-
import './shared/unhead.
|
|
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,
|
|
4
|
-
export { u as useScript } from './shared/unhead.
|
|
5
|
-
import './shared/unhead.
|
|
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,
|
|
4
|
-
export { u as useScript } from './shared/unhead.
|
|
5
|
-
import './shared/unhead.
|
|
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.
|
|
3
|
-
export { u as useHead, a as useHeadSafe, b as useSeoMeta, c as useServerHead, d as useServerHeadSafe, e as useServerSeoMeta } from './shared/unhead.
|
|
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.
|
|
10
|
-
import './shared/unhead.
|
|
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 };
|
package/dist/plugins.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as HeadPluginInput, q as Unhead, j as HeadPluginOptions } from './shared/unhead.
|
|
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.
|
|
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.
|
|
2
|
-
import { d as defineHeadPlugin } from './shared/unhead.
|
|
3
|
-
export { F as FlatMetaPlugin, S as SafeInputPlugin } from './shared/unhead.
|
|
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.
|
|
6
|
+
import './shared/unhead.DQc16pHI.mjs';
|
|
7
7
|
import './shared/unhead.yem5I2v_.mjs';
|
|
8
8
|
|
|
9
9
|
function CanonicalPlugin(options) {
|
package/dist/scripts.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { e as RecordingEntry } from './shared/unhead.
|
|
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.
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
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.
|
|
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.
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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']>;
|