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 +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/legacy.d.mts +3 -3
- package/dist/legacy.d.ts +3 -3
- package/dist/plugins.d.mts +1 -1
- package/dist/plugins.d.ts +1 -1
- 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.Boa77p0p.d.mts → unhead.BCRd_6gC.d.mts} +11 -2
- package/dist/shared/{unhead.B9T4uIcB.d.mts → unhead.BlCDUtBx.d.mts} +6 -5
- package/dist/shared/{unhead.B9T4uIcB.d.ts → unhead.BlCDUtBx.d.ts} +6 -5
- package/dist/shared/{unhead.CTfhWwBZ.d.mts → unhead.CGomMdtP.d.mts} +1 -1
- package/dist/shared/{unhead.Bf6MJ2XT.d.ts → unhead.QmkIVPAq.d.ts} +1 -1
- package/dist/shared/{unhead.BwfxNHko.d.ts → unhead.dVLMTonB.d.ts} +11 -2
- package/dist/types.d.mts +4 -4
- package/dist/types.d.ts +4 -4
- package/dist/utils.d.mts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +1 -1
package/dist/client.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as ResolvableHead,
|
|
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,
|
|
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.
|
|
2
|
-
import { U as Unhead, R as ResolvableHead,
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
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.
|
|
2
|
-
import { U as Unhead, R as ResolvableHead,
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
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.
|
|
4
|
-
export { u as useScript } from './shared/unhead.
|
|
5
|
-
import './shared/unhead.
|
|
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.
|
|
4
|
-
export { u as useScript } from './shared/unhead.
|
|
5
|
-
import './shared/unhead.
|
|
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: {
|
package/dist/plugins.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
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;
|
package/dist/scripts.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AsVoidFunctions, E as EventHandlerOptions,
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
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 {
|
|
2
|
-
export { A as AsVoidFunctions, E as EventHandlerOptions,
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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,
|
|
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
|
|
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 =
|
|
1886
|
+
type Head = SerializableHead;
|
|
1886
1887
|
/**
|
|
1887
1888
|
* @deprecated Use SerializableResolvedHead
|
|
1888
1889
|
*/
|
|
1889
|
-
type ResolvedHead =
|
|
1890
|
+
type ResolvedHead = SerializableHead;
|
|
1890
1891
|
type UseSeoMetaInput = DeepResolvableProperties<MetaFlat> & {
|
|
1891
1892
|
title?: ResolvableTitle;
|
|
1892
1893
|
titleTemplate?: ResolvableTitleTemplate;
|
|
1893
1894
|
};
|
|
1894
|
-
type UseHeadInput = ResolvableHead |
|
|
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 {
|
|
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
|
|
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 =
|
|
1886
|
+
type Head = SerializableHead;
|
|
1886
1887
|
/**
|
|
1887
1888
|
* @deprecated Use SerializableResolvedHead
|
|
1888
1889
|
*/
|
|
1889
|
-
type ResolvedHead =
|
|
1890
|
+
type ResolvedHead = SerializableHead;
|
|
1890
1891
|
type UseSeoMetaInput = DeepResolvableProperties<MetaFlat> & {
|
|
1891
1892
|
title?: ResolvableTitle;
|
|
1892
1893
|
titleTemplate?: ResolvableTitleTemplate;
|
|
1893
1894
|
};
|
|
1894
|
-
type UseHeadInput = ResolvableHead |
|
|
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 {
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
2
|
-
export {
|
|
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.
|
|
4
|
-
export { u as useScript } from './shared/unhead.
|
|
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,
|
|
2
|
-
export {
|
|
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.
|
|
4
|
-
export { u as useScript } from './shared/unhead.
|
|
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 {
|
|
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 {
|
|
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>;
|