unhead 2.0.0-alpha.23 → 2.0.0-alpha.24
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/legacy.d.mts +5 -5
- package/dist/legacy.d.ts +5 -5
- package/dist/legacy.mjs +1 -1
- package/dist/plugins.d.mts +1 -1
- package/dist/plugins.d.ts +1 -1
- package/dist/plugins.mjs +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.Bg64fTJV.d.mts → unhead.CMEjo4Tf.d.mts} +1 -1
- package/dist/shared/{unhead.DtJaJIsF.d.ts → unhead.CYOiVxYm.d.ts} +2 -2
- package/dist/shared/{unhead.C1nwjySB.d.mts → unhead.D5hDM0h5.d.mts} +2 -2
- package/dist/shared/{unhead.9Qw6eOEM.mjs → unhead.Dl6vXegp.mjs} +25 -14
- package/dist/shared/{unhead.DwYyZgT5.d.mts → unhead.H9K4hNc3.d.mts} +11 -6
- package/dist/shared/{unhead.DwYyZgT5.d.ts → unhead.H9K4hNc3.d.ts} +11 -6
- package/dist/shared/{unhead.C6vvMYCS.d.ts → unhead.f-vxWgdH.d.ts} +1 -1
- package/dist/types.d.mts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/utils.d.mts +2 -2
- package/dist/utils.d.ts +2 -2
- package/package.json +1 -1
package/dist/client.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { am as
|
|
1
|
+
import { am as ResolvableHead, n as CreateClientHeadOptions, p as Unhead, z as RenderDomHeadOptions } from './shared/unhead.H9K4hNc3.mjs';
|
|
2
2
|
import 'hookable';
|
|
3
3
|
|
|
4
|
-
declare function createHead<T =
|
|
4
|
+
declare function createHead<T = ResolvableHead>(options?: CreateClientHeadOptions): Unhead<T>;
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Render the head tags to the DOM.
|
package/dist/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { am as
|
|
1
|
+
import { am as ResolvableHead, n as CreateClientHeadOptions, p as Unhead, z as RenderDomHeadOptions } from './shared/unhead.H9K4hNc3.js';
|
|
2
2
|
import 'hookable';
|
|
3
3
|
|
|
4
|
-
declare function createHead<T =
|
|
4
|
+
declare function createHead<T = ResolvableHead>(options?: CreateClientHeadOptions): Unhead<T>;
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Render the head tags to the DOM.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { H as HeadSafe } from './shared/unhead.
|
|
2
|
-
import { p as Unhead, o as HeadEntryOptions, l as ActiveHeadEntry,
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
import { H as HeadSafe } from './shared/unhead.D5hDM0h5.mjs';
|
|
2
|
+
import { p as Unhead, o as HeadEntryOptions, l as ActiveHeadEntry, ap as UseSeoMetaInput, am as ResolvableHead, C as CreateHeadOptions } from './shared/unhead.H9K4hNc3.mjs';
|
|
3
|
+
export { u as useScript } from './shared/unhead.CMEjo4Tf.mjs';
|
|
4
4
|
import 'hookable';
|
|
5
5
|
|
|
6
6
|
declare function useHead<T extends Unhead<any>>(unhead: T, input?: Parameters<T['push']>[0], options?: HeadEntryOptions): ReturnType<T['push']>;
|
|
@@ -23,6 +23,6 @@ declare function useServerSeoMeta<T extends Unhead<any>>(unhead: T, input?: UseS
|
|
|
23
23
|
* Creates a core instance of unhead. Does not provide a global ctx for composables to work
|
|
24
24
|
* and does not register DOM plugins.
|
|
25
25
|
*/
|
|
26
|
-
declare function createHeadCore<T =
|
|
26
|
+
declare function createHeadCore<T = ResolvableHead>(resolvedOptions?: CreateHeadOptions): Unhead<T>;
|
|
27
27
|
|
|
28
28
|
export { createHeadCore, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { H as HeadSafe } from './shared/unhead.
|
|
2
|
-
import { p as Unhead, o as HeadEntryOptions, l as ActiveHeadEntry,
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
import { H as HeadSafe } from './shared/unhead.CYOiVxYm.js';
|
|
2
|
+
import { p as Unhead, o as HeadEntryOptions, l as ActiveHeadEntry, ap as UseSeoMetaInput, am as ResolvableHead, C as CreateHeadOptions } from './shared/unhead.H9K4hNc3.js';
|
|
3
|
+
export { u as useScript } from './shared/unhead.f-vxWgdH.js';
|
|
4
4
|
import 'hookable';
|
|
5
5
|
|
|
6
6
|
declare function useHead<T extends Unhead<any>>(unhead: T, input?: Parameters<T['push']>[0], options?: HeadEntryOptions): ReturnType<T['push']>;
|
|
@@ -23,6 +23,6 @@ declare function useServerSeoMeta<T extends Unhead<any>>(unhead: T, input?: UseS
|
|
|
23
23
|
* Creates a core instance of unhead. Does not provide a global ctx for composables to work
|
|
24
24
|
* and does not register DOM plugins.
|
|
25
25
|
*/
|
|
26
|
-
declare function createHeadCore<T =
|
|
26
|
+
declare function createHeadCore<T = ResolvableHead>(resolvedOptions?: CreateHeadOptions): Unhead<T>;
|
|
27
27
|
|
|
28
28
|
export { createHeadCore, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
|
package/dist/legacy.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export { createHeadCore, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta } from './index.mjs';
|
|
2
|
-
import { p as Unhead, am as
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
4
|
-
import './shared/unhead.
|
|
2
|
+
import { p as Unhead, am as ResolvableHead, C as CreateHeadOptions } from './shared/unhead.H9K4hNc3.mjs';
|
|
3
|
+
export { u as useScript } from './shared/unhead.CMEjo4Tf.mjs';
|
|
4
|
+
import './shared/unhead.D5hDM0h5.mjs';
|
|
5
5
|
import 'hookable';
|
|
6
6
|
|
|
7
7
|
declare const activeHead: {
|
|
8
8
|
value: Unhead<any> | null;
|
|
9
9
|
};
|
|
10
10
|
declare function getActiveHead(): Unhead<any> | null;
|
|
11
|
-
declare function createServerHead<T extends Record<string, any> =
|
|
12
|
-
declare function createHead<T extends Record<string, any> =
|
|
11
|
+
declare function createServerHead<T extends Record<string, any> = ResolvableHead>(options?: CreateHeadOptions): Unhead<T>;
|
|
12
|
+
declare function createHead<T extends Record<string, any> = ResolvableHead>(options?: CreateHeadOptions): Unhead<T>;
|
|
13
13
|
|
|
14
14
|
export { activeHead, createHead, createServerHead, getActiveHead };
|
package/dist/legacy.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export { createHeadCore, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta } from './index.js';
|
|
2
|
-
import { p as Unhead, am as
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
4
|
-
import './shared/unhead.
|
|
2
|
+
import { p as Unhead, am as ResolvableHead, C as CreateHeadOptions } from './shared/unhead.H9K4hNc3.js';
|
|
3
|
+
export { u as useScript } from './shared/unhead.f-vxWgdH.js';
|
|
4
|
+
import './shared/unhead.CYOiVxYm.js';
|
|
5
5
|
import 'hookable';
|
|
6
6
|
|
|
7
7
|
declare const activeHead: {
|
|
8
8
|
value: Unhead<any> | null;
|
|
9
9
|
};
|
|
10
10
|
declare function getActiveHead(): Unhead<any> | null;
|
|
11
|
-
declare function createServerHead<T extends Record<string, any> =
|
|
12
|
-
declare function createHead<T extends Record<string, any> =
|
|
11
|
+
declare function createServerHead<T extends Record<string, any> = ResolvableHead>(options?: CreateHeadOptions): Unhead<T>;
|
|
12
|
+
declare function createHead<T extends Record<string, any> = ResolvableHead>(options?: CreateHeadOptions): Unhead<T>;
|
|
13
13
|
|
|
14
14
|
export { activeHead, createHead, createServerHead, getActiveHead };
|
package/dist/legacy.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as createHeadCore } from './shared/unhead.kC9yNSGl.mjs';
|
|
2
|
-
import { D as DeprecationsPlugin, P as PromisesPlugin, T as TemplateParamsPlugin, A as AliasSortingPlugin } from './shared/unhead.
|
|
2
|
+
import { D as DeprecationsPlugin, P as PromisesPlugin, T as TemplateParamsPlugin, A as AliasSortingPlugin } from './shared/unhead.Dl6vXegp.mjs';
|
|
3
3
|
export { u as useHead, a as useHeadSafe, b as useSeoMeta, c as useServerHead, d as useServerHeadSafe, e as useServerSeoMeta } from './shared/unhead.PEkM8z0l.mjs';
|
|
4
4
|
export { u as useScript } from './shared/unhead.CG0hxuzW.mjs';
|
|
5
5
|
import 'hookable';
|
package/dist/plugins.d.mts
CHANGED
package/dist/plugins.d.ts
CHANGED
package/dist/plugins.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AliasSortingPlugin, D as DeprecationsPlugin, P as PromisesPlugin, T as TemplateParamsPlugin } from './shared/unhead.
|
|
1
|
+
export { A as AliasSortingPlugin, D as DeprecationsPlugin, P as PromisesPlugin, T as TemplateParamsPlugin } from './shared/unhead.Dl6vXegp.mjs';
|
|
2
2
|
import { d as defineHeadPlugin } from './shared/unhead.z5bPaiJg.mjs';
|
|
3
3
|
export { F as FlatMetaPlugin, S as SafeInputPlugin } from './shared/unhead.z5bPaiJg.mjs';
|
|
4
4
|
import './shared/unhead.DZbvapt-.mjs';
|
package/dist/scripts.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R 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, e as UseScriptOptions, b as UseScriptResolvedInput, f as UseScriptReturn, U as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
import { R as RecordingEntry } from './shared/unhead.H9K4hNc3.mjs';
|
|
2
|
+
export { A as AsVoidFunctions, E as EventHandlerOptions, S as ScriptInstance, d as UseFunctionType, a as UseScriptContext, c as UseScriptInput, e as UseScriptOptions, b as UseScriptResolvedInput, f as UseScriptReturn, U as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.H9K4hNc3.mjs';
|
|
3
|
+
export { u as useScript } from './shared/unhead.CMEjo4Tf.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 { R 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, e as UseScriptOptions, b as UseScriptResolvedInput, f as UseScriptReturn, U as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
import { R as RecordingEntry } from './shared/unhead.H9K4hNc3.js';
|
|
2
|
+
export { A as AsVoidFunctions, E as EventHandlerOptions, S as ScriptInstance, d as UseFunctionType, a as UseScriptContext, c as UseScriptInput, e as UseScriptOptions, b as UseScriptResolvedInput, f as UseScriptReturn, U as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.H9K4hNc3.js';
|
|
3
|
+
export { u as useScript } from './shared/unhead.f-vxWgdH.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,7 +1,7 @@
|
|
|
1
|
-
import { am as
|
|
1
|
+
import { am as ResolvableHead, m as CreateServerHeadOptions, p as Unhead, s as RenderSSRHeadOptions, r as SSRHeadPayload, an as ResolvedHead, aC as HeadTag } from './shared/unhead.H9K4hNc3.mjs';
|
|
2
2
|
import 'hookable';
|
|
3
3
|
|
|
4
|
-
declare function createHead<T =
|
|
4
|
+
declare function createHead<T = ResolvableHead>(options?: CreateServerHeadOptions): Unhead<T>;
|
|
5
5
|
|
|
6
6
|
declare function renderSSRHead(head: Unhead<any>, options?: RenderSSRHeadOptions): Promise<SSRHeadPayload>;
|
|
7
7
|
|
package/dist/server.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { am as
|
|
1
|
+
import { am as ResolvableHead, m as CreateServerHeadOptions, p as Unhead, s as RenderSSRHeadOptions, r as SSRHeadPayload, an as ResolvedHead, aC as HeadTag } from './shared/unhead.H9K4hNc3.js';
|
|
2
2
|
import 'hookable';
|
|
3
3
|
|
|
4
|
-
declare function createHead<T =
|
|
4
|
+
declare function createHead<T = ResolvableHead>(options?: CreateServerHeadOptions): Unhead<T>;
|
|
5
5
|
|
|
6
6
|
declare function renderSSRHead(head: Unhead<any>, options?: RenderSSRHeadOptions): Promise<SSRHeadPayload>;
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as Unhead, c as UseScriptInput, e as UseScriptOptions, f as UseScriptReturn } from './unhead.
|
|
1
|
+
import { p as Unhead, c as UseScriptInput, e as UseScriptOptions, f as UseScriptReturn } from './unhead.H9K4hNc3.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Load third-party scripts with SSR support and a proxied API.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { am as
|
|
1
|
+
import { am as ResolvableHead, aM as ResolvableValue, aN as ResolvableProperties, L as LinkBase, G as DataKeys, O as SchemaAugmentations, _ as BaseMeta, a6 as Style, J as ScriptBase, a8 as Noscript, a9 as HtmlAttributes, aa as BodyAttributes } from './unhead.H9K4hNc3.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']>;
|
|
@@ -7,7 +7,7 @@ type SafeLink = ResolvableProperties<Pick<LinkBase, 'id' | 'color' | 'crossorigi
|
|
|
7
7
|
type SafeScript = ResolvableProperties<Pick<ScriptBase, 'id' | 'type' | 'nonce' | 'blocking'> & DataKeys & SchemaAugmentations['script']>;
|
|
8
8
|
type SafeNoscript = ResolvableProperties<Pick<Noscript, 'id' | 'textContent'> & DataKeys & SchemaAugmentations['noscript']>;
|
|
9
9
|
type SafeStyle = ResolvableProperties<Pick<Style, 'id' | 'media' | 'textContent' | 'nonce' | 'title' | 'blocking'> & DataKeys & SchemaAugmentations['style']>;
|
|
10
|
-
interface HeadSafe extends Pick<
|
|
10
|
+
interface HeadSafe extends Pick<ResolvableHead, 'title' | 'titleTemplate' | 'templateParams'> {
|
|
11
11
|
/**
|
|
12
12
|
* The `<link>` HTML element specifies relationships between the current document and an external resource.
|
|
13
13
|
* This element is most commonly used to link to stylesheets, but is also used to establish site icons
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { am as
|
|
1
|
+
import { am as ResolvableHead, aM as ResolvableValue, aN as ResolvableProperties, L as LinkBase, G as DataKeys, O as SchemaAugmentations, _ as BaseMeta, a6 as Style, J as ScriptBase, a8 as Noscript, a9 as HtmlAttributes, aa as BodyAttributes } from './unhead.H9K4hNc3.mjs';
|
|
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']>;
|
|
@@ -7,7 +7,7 @@ type SafeLink = ResolvableProperties<Pick<LinkBase, 'id' | 'color' | 'crossorigi
|
|
|
7
7
|
type SafeScript = ResolvableProperties<Pick<ScriptBase, 'id' | 'type' | 'nonce' | 'blocking'> & DataKeys & SchemaAugmentations['script']>;
|
|
8
8
|
type SafeNoscript = ResolvableProperties<Pick<Noscript, 'id' | 'textContent'> & DataKeys & SchemaAugmentations['noscript']>;
|
|
9
9
|
type SafeStyle = ResolvableProperties<Pick<Style, 'id' | 'media' | 'textContent' | 'nonce' | 'title' | 'blocking'> & DataKeys & SchemaAugmentations['style']>;
|
|
10
|
-
interface HeadSafe extends Pick<
|
|
10
|
+
interface HeadSafe extends Pick<ResolvableHead, 'title' | 'titleTemplate' | 'templateParams'> {
|
|
11
11
|
/**
|
|
12
12
|
* The `<link>` HTML element specifies relationships between the current document and an external resource.
|
|
13
13
|
* This element is most commonly used to link to stylesheets, but is also used to establish site icons
|
|
@@ -65,31 +65,42 @@ const DeprecationsPlugin = /* @__PURE__ */ defineHeadPlugin({
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
|
|
68
|
-
async function
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
async function walkPromises(v) {
|
|
69
|
+
const type = typeof v;
|
|
70
|
+
if (type === "function") {
|
|
71
|
+
return v;
|
|
71
72
|
}
|
|
72
|
-
if (
|
|
73
|
-
return
|
|
73
|
+
if (v instanceof Promise) {
|
|
74
|
+
return await v;
|
|
74
75
|
}
|
|
75
|
-
if (
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
if (Array.isArray(v)) {
|
|
77
|
+
return await Promise.all(v.map((r) => walkPromises(r)));
|
|
78
|
+
}
|
|
79
|
+
if (v?.constructor === Object) {
|
|
80
|
+
const next = {};
|
|
81
|
+
for (const key of Object.keys(v)) {
|
|
82
|
+
next[key] = await walkPromises(v[key]);
|
|
81
83
|
}
|
|
82
|
-
return
|
|
84
|
+
return next;
|
|
83
85
|
}
|
|
84
|
-
return
|
|
86
|
+
return v;
|
|
85
87
|
}
|
|
86
88
|
const PromisesPlugin = /* @__PURE__ */ defineHeadPlugin({
|
|
87
89
|
key: "promises",
|
|
88
90
|
hooks: {
|
|
89
91
|
"entries:resolve": async (ctx) => {
|
|
92
|
+
const promises = [];
|
|
90
93
|
for (const k in ctx.entries) {
|
|
91
|
-
|
|
94
|
+
if (!ctx.entries[k]._promisesProcessed) {
|
|
95
|
+
promises.push(
|
|
96
|
+
walkPromises(ctx.entries[k].input).then((val) => {
|
|
97
|
+
ctx.entries[k].input = val;
|
|
98
|
+
ctx.entries[k]._promisesProcessed = true;
|
|
99
|
+
})
|
|
100
|
+
);
|
|
101
|
+
}
|
|
92
102
|
}
|
|
103
|
+
await Promise.all(promises);
|
|
93
104
|
}
|
|
94
105
|
}
|
|
95
106
|
});
|
|
@@ -1849,7 +1849,7 @@ interface HeadUtils {
|
|
|
1849
1849
|
*/
|
|
1850
1850
|
templateParams?: TemplateParams;
|
|
1851
1851
|
}
|
|
1852
|
-
interface
|
|
1852
|
+
interface ResolvableHead<E extends MergeHead = SchemaAugmentations> extends HeadUtils {
|
|
1853
1853
|
/**
|
|
1854
1854
|
* The `<title>` HTML element defines the document's title that is shown in a browser's title bar or a page's tab.
|
|
1855
1855
|
* It only contains text; tags within the element are ignored.
|
|
@@ -1922,11 +1922,12 @@ interface ResolvedHead<E extends MergeHead = ResolvedSchemaAugmentations> extend
|
|
|
1922
1922
|
htmlAttrs?: ResolvedHtmlAttributes<E['htmlAttrs']>;
|
|
1923
1923
|
bodyAttrs?: ResolvedBodyAttributes<E['bodyAttrs']>;
|
|
1924
1924
|
}
|
|
1925
|
+
type Head = ResolvableHead & ResolvedHead;
|
|
1925
1926
|
type UseSeoMetaInput = MetaFlatInput & {
|
|
1926
1927
|
title?: Title;
|
|
1927
1928
|
titleTemplate?: TitleTemplate;
|
|
1928
1929
|
};
|
|
1929
|
-
type UseHeadInput<T extends MergeHead = MergeHead> =
|
|
1930
|
+
type UseHeadInput<T extends MergeHead = MergeHead> = ResolvableHead<T>;
|
|
1930
1931
|
|
|
1931
1932
|
interface ResolvesDuplicates {
|
|
1932
1933
|
/**
|
|
@@ -1981,7 +1982,7 @@ interface TagPriority {
|
|
|
1981
1982
|
tagPriority?: number | 'critical' | 'high' | 'low' | `before:${string}` | `after:${string}`;
|
|
1982
1983
|
}
|
|
1983
1984
|
type TagUserProperties = ResolvableProperties<TagPriority & TagPosition & InnerContent & ResolvesDuplicates & ProcessesTemplateParams>;
|
|
1984
|
-
type TagKey = keyof
|
|
1985
|
+
type TagKey = keyof ResolvableHead;
|
|
1985
1986
|
type TemplateParams = {
|
|
1986
1987
|
separator?: '|' | '-' | '·' | string;
|
|
1987
1988
|
} & Record<string, null | string | Record<string, string>>;
|
|
@@ -2162,6 +2163,10 @@ interface HeadEntry<Input> {
|
|
|
2162
2163
|
* @internal
|
|
2163
2164
|
*/
|
|
2164
2165
|
_tags?: HeadTag[];
|
|
2166
|
+
/**
|
|
2167
|
+
* @internal
|
|
2168
|
+
*/
|
|
2169
|
+
_promisesProcessed?: boolean;
|
|
2165
2170
|
}
|
|
2166
2171
|
type HeadPluginOptions = Omit<CreateHeadOptions, 'plugins'>;
|
|
2167
2172
|
type HeadPluginInput = (HeadPluginOptions & {
|
|
@@ -2203,7 +2208,7 @@ interface CreateHeadOptions {
|
|
|
2203
2208
|
*
|
|
2204
2209
|
* Any tags here are added with low priority.
|
|
2205
2210
|
*/
|
|
2206
|
-
init?: (
|
|
2211
|
+
init?: (ResolvableHead<any> | undefined)[];
|
|
2207
2212
|
/**
|
|
2208
2213
|
* Disable the Capo.js tag sorting algorithm.
|
|
2209
2214
|
*
|
|
@@ -2247,7 +2252,7 @@ interface HeadEntryOptions extends TagPosition, TagPriority, ProcessesTemplatePa
|
|
|
2247
2252
|
*/
|
|
2248
2253
|
_index?: number;
|
|
2249
2254
|
}
|
|
2250
|
-
interface Unhead<Input =
|
|
2255
|
+
interface Unhead<Input = ResolvableHead> {
|
|
2251
2256
|
/**
|
|
2252
2257
|
* Registered plugins.
|
|
2253
2258
|
*/
|
|
@@ -2329,4 +2334,4 @@ interface DomState {
|
|
|
2329
2334
|
elMap: Map<string, Element | Element[]>;
|
|
2330
2335
|
}
|
|
2331
2336
|
|
|
2332
|
-
export type { EntryAugmentation as $, AsVoidFunctions as A, DomPluginOptions as B, CreateHeadOptions as C, DomState as D, EventHandlerOptions as E, BodyEvents as F, DataKeys as G, HeadEntry as H, HttpEventAttributes as I, ScriptBase as J, UserTagConfigWithoutInnerContent as K, LinkBase as L, MetaFlatInput as M, UserAttributesConfig as N, SchemaAugmentations as O, PropResolver as P, ResolvedSchemaAugmentations as Q, RecordingEntry as R, ScriptInstance as S, MaybeArray as T, UseScriptStatus as U, BaseBodyAttr as V, WarmupStrategy as W, BaseHtmlAttr as X, BodyAttr as Y, HtmlAttr as Z, BaseMeta as _, UseScriptContext as a, MaybeEventFnHandlers as a0, Title as a1, TitleTemplate as a2, Base as a3, Link as a4, Meta as a5, Style as a6, Script as a7, Noscript as a8, HtmlAttributes as a9,
|
|
2337
|
+
export type { EntryAugmentation as $, AsVoidFunctions as A, DomPluginOptions as B, CreateHeadOptions as C, DomState as D, EventHandlerOptions as E, BodyEvents as F, DataKeys as G, HeadEntry as H, HttpEventAttributes as I, ScriptBase as J, UserTagConfigWithoutInnerContent as K, LinkBase as L, MetaFlatInput as M, UserAttributesConfig as N, SchemaAugmentations as O, PropResolver as P, ResolvedSchemaAugmentations as Q, RecordingEntry as R, ScriptInstance as S, MaybeArray as T, UseScriptStatus as U, BaseBodyAttr as V, WarmupStrategy as W, BaseHtmlAttr as X, BodyAttr as Y, HtmlAttr as Z, BaseMeta as _, UseScriptContext as a, MaybeEventFnHandlers as a0, Title as a1, TitleTemplate as a2, Base as a3, Link as a4, Meta as a5, Style as a6, Script as a7, Noscript as a8, HtmlAttributes as a9, ProcessesTemplateParams as aA, HasTemplateParams as aB, HeadTag as aC, HeadTagKeys as aD, Booleanable as aE, Stringable as aF, Arrayable as aG, DefinedValueOrEmptyObject as aH, Merge as aI, MergeHead as aJ, Never as aK, Falsey as aL, ResolvableValue as aM, ResolvableProperties as aN, ResolvableUnion as aO, DeepResolvableProperties as aP, ResolvedMetaFlat as aQ, BodyAttributes as aa, ResolvedTitle as ab, ResolvedTitleTemplate as ac, ResolvedBase as ad, ResolvedLink as ae, ResolvedMeta as af, ResolvedStyle as ag, ResolvedScript as ah, ResolvedNoscript as ai, ResolvedHtmlAttributes as aj, ResolvedBodyAttributes as ak, HeadUtils as al, ResolvableHead as am, ResolvedHead as an, Head as ao, UseSeoMetaInput as ap, UseHeadInput as aq, ResolvesDuplicates as ar, ValidTagPositions as as, TagPosition as at, InnerContentVal as au, InnerContent as av, TagPriority as aw, TagUserProperties as ax, TagKey as ay, TemplateParams as az, UseScriptResolvedInput as b, UseScriptInput as c, UseFunctionType as d, UseScriptOptions as e, UseScriptReturn as f, SideEffectsRecord as g, RuntimeMode as h, HeadPluginOptions as i, HeadPluginInput as j, HeadPlugin as k, ActiveHeadEntry as l, CreateServerHeadOptions as m, CreateClientHeadOptions as n, HeadEntryOptions as o, Unhead as p, HookResult as q, SSRHeadPayload as r, RenderSSRHeadOptions as s, EntryResolveCtx as t, DomRenderTagContext as u, DomBeforeRenderCtx as v, ShouldRenderContext as w, SSRRenderContext as x, HeadHooks as y, RenderDomHeadOptions as z };
|
|
@@ -1849,7 +1849,7 @@ interface HeadUtils {
|
|
|
1849
1849
|
*/
|
|
1850
1850
|
templateParams?: TemplateParams;
|
|
1851
1851
|
}
|
|
1852
|
-
interface
|
|
1852
|
+
interface ResolvableHead<E extends MergeHead = SchemaAugmentations> extends HeadUtils {
|
|
1853
1853
|
/**
|
|
1854
1854
|
* The `<title>` HTML element defines the document's title that is shown in a browser's title bar or a page's tab.
|
|
1855
1855
|
* It only contains text; tags within the element are ignored.
|
|
@@ -1922,11 +1922,12 @@ interface ResolvedHead<E extends MergeHead = ResolvedSchemaAugmentations> extend
|
|
|
1922
1922
|
htmlAttrs?: ResolvedHtmlAttributes<E['htmlAttrs']>;
|
|
1923
1923
|
bodyAttrs?: ResolvedBodyAttributes<E['bodyAttrs']>;
|
|
1924
1924
|
}
|
|
1925
|
+
type Head = ResolvableHead & ResolvedHead;
|
|
1925
1926
|
type UseSeoMetaInput = MetaFlatInput & {
|
|
1926
1927
|
title?: Title;
|
|
1927
1928
|
titleTemplate?: TitleTemplate;
|
|
1928
1929
|
};
|
|
1929
|
-
type UseHeadInput<T extends MergeHead = MergeHead> =
|
|
1930
|
+
type UseHeadInput<T extends MergeHead = MergeHead> = ResolvableHead<T>;
|
|
1930
1931
|
|
|
1931
1932
|
interface ResolvesDuplicates {
|
|
1932
1933
|
/**
|
|
@@ -1981,7 +1982,7 @@ interface TagPriority {
|
|
|
1981
1982
|
tagPriority?: number | 'critical' | 'high' | 'low' | `before:${string}` | `after:${string}`;
|
|
1982
1983
|
}
|
|
1983
1984
|
type TagUserProperties = ResolvableProperties<TagPriority & TagPosition & InnerContent & ResolvesDuplicates & ProcessesTemplateParams>;
|
|
1984
|
-
type TagKey = keyof
|
|
1985
|
+
type TagKey = keyof ResolvableHead;
|
|
1985
1986
|
type TemplateParams = {
|
|
1986
1987
|
separator?: '|' | '-' | '·' | string;
|
|
1987
1988
|
} & Record<string, null | string | Record<string, string>>;
|
|
@@ -2162,6 +2163,10 @@ interface HeadEntry<Input> {
|
|
|
2162
2163
|
* @internal
|
|
2163
2164
|
*/
|
|
2164
2165
|
_tags?: HeadTag[];
|
|
2166
|
+
/**
|
|
2167
|
+
* @internal
|
|
2168
|
+
*/
|
|
2169
|
+
_promisesProcessed?: boolean;
|
|
2165
2170
|
}
|
|
2166
2171
|
type HeadPluginOptions = Omit<CreateHeadOptions, 'plugins'>;
|
|
2167
2172
|
type HeadPluginInput = (HeadPluginOptions & {
|
|
@@ -2203,7 +2208,7 @@ interface CreateHeadOptions {
|
|
|
2203
2208
|
*
|
|
2204
2209
|
* Any tags here are added with low priority.
|
|
2205
2210
|
*/
|
|
2206
|
-
init?: (
|
|
2211
|
+
init?: (ResolvableHead<any> | undefined)[];
|
|
2207
2212
|
/**
|
|
2208
2213
|
* Disable the Capo.js tag sorting algorithm.
|
|
2209
2214
|
*
|
|
@@ -2247,7 +2252,7 @@ interface HeadEntryOptions extends TagPosition, TagPriority, ProcessesTemplatePa
|
|
|
2247
2252
|
*/
|
|
2248
2253
|
_index?: number;
|
|
2249
2254
|
}
|
|
2250
|
-
interface Unhead<Input =
|
|
2255
|
+
interface Unhead<Input = ResolvableHead> {
|
|
2251
2256
|
/**
|
|
2252
2257
|
* Registered plugins.
|
|
2253
2258
|
*/
|
|
@@ -2329,4 +2334,4 @@ interface DomState {
|
|
|
2329
2334
|
elMap: Map<string, Element | Element[]>;
|
|
2330
2335
|
}
|
|
2331
2336
|
|
|
2332
|
-
export type { EntryAugmentation as $, AsVoidFunctions as A, DomPluginOptions as B, CreateHeadOptions as C, DomState as D, EventHandlerOptions as E, BodyEvents as F, DataKeys as G, HeadEntry as H, HttpEventAttributes as I, ScriptBase as J, UserTagConfigWithoutInnerContent as K, LinkBase as L, MetaFlatInput as M, UserAttributesConfig as N, SchemaAugmentations as O, PropResolver as P, ResolvedSchemaAugmentations as Q, RecordingEntry as R, ScriptInstance as S, MaybeArray as T, UseScriptStatus as U, BaseBodyAttr as V, WarmupStrategy as W, BaseHtmlAttr as X, BodyAttr as Y, HtmlAttr as Z, BaseMeta as _, UseScriptContext as a, MaybeEventFnHandlers as a0, Title as a1, TitleTemplate as a2, Base as a3, Link as a4, Meta as a5, Style as a6, Script as a7, Noscript as a8, HtmlAttributes as a9,
|
|
2337
|
+
export type { EntryAugmentation as $, AsVoidFunctions as A, DomPluginOptions as B, CreateHeadOptions as C, DomState as D, EventHandlerOptions as E, BodyEvents as F, DataKeys as G, HeadEntry as H, HttpEventAttributes as I, ScriptBase as J, UserTagConfigWithoutInnerContent as K, LinkBase as L, MetaFlatInput as M, UserAttributesConfig as N, SchemaAugmentations as O, PropResolver as P, ResolvedSchemaAugmentations as Q, RecordingEntry as R, ScriptInstance as S, MaybeArray as T, UseScriptStatus as U, BaseBodyAttr as V, WarmupStrategy as W, BaseHtmlAttr as X, BodyAttr as Y, HtmlAttr as Z, BaseMeta as _, UseScriptContext as a, MaybeEventFnHandlers as a0, Title as a1, TitleTemplate as a2, Base as a3, Link as a4, Meta as a5, Style as a6, Script as a7, Noscript as a8, HtmlAttributes as a9, ProcessesTemplateParams as aA, HasTemplateParams as aB, HeadTag as aC, HeadTagKeys as aD, Booleanable as aE, Stringable as aF, Arrayable as aG, DefinedValueOrEmptyObject as aH, Merge as aI, MergeHead as aJ, Never as aK, Falsey as aL, ResolvableValue as aM, ResolvableProperties as aN, ResolvableUnion as aO, DeepResolvableProperties as aP, ResolvedMetaFlat as aQ, BodyAttributes as aa, ResolvedTitle as ab, ResolvedTitleTemplate as ac, ResolvedBase as ad, ResolvedLink as ae, ResolvedMeta as af, ResolvedStyle as ag, ResolvedScript as ah, ResolvedNoscript as ai, ResolvedHtmlAttributes as aj, ResolvedBodyAttributes as ak, HeadUtils as al, ResolvableHead as am, ResolvedHead as an, Head as ao, UseSeoMetaInput as ap, UseHeadInput as aq, ResolvesDuplicates as ar, ValidTagPositions as as, TagPosition as at, InnerContentVal as au, InnerContent as av, TagPriority as aw, TagUserProperties as ax, TagKey as ay, TemplateParams as az, UseScriptResolvedInput as b, UseScriptInput as c, UseFunctionType as d, UseScriptOptions as e, UseScriptReturn as f, SideEffectsRecord as g, RuntimeMode as h, HeadPluginOptions as i, HeadPluginInput as j, HeadPlugin as k, ActiveHeadEntry as l, CreateServerHeadOptions as m, CreateClientHeadOptions as n, HeadEntryOptions as o, Unhead as p, HookResult as q, SSRHeadPayload as r, RenderSSRHeadOptions as s, EntryResolveCtx as t, DomRenderTagContext as u, DomBeforeRenderCtx as v, ShouldRenderContext as w, SSRRenderContext as x, HeadHooks as y, RenderDomHeadOptions as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as Unhead, c as UseScriptInput, e as UseScriptOptions, f as UseScriptReturn } from './unhead.
|
|
1
|
+
import { p as Unhead, c as UseScriptInput, e as UseScriptOptions, f as UseScriptReturn } from './unhead.H9K4hNc3.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Load third-party scripts with SSR support and a proxied API.
|
package/dist/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { l as ActiveHeadEntry,
|
|
2
|
-
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.
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
export { l as ActiveHeadEntry, aG as Arrayable, A as AsVoidFunctions, a3 as Base, V as BaseBodyAttr, X as BaseHtmlAttr, _ as BaseMeta, Y as BodyAttr, aa as BodyAttributes, F as BodyEvents, aE as Booleanable, n as CreateClientHeadOptions, C as CreateHeadOptions, m as CreateServerHeadOptions, G as DataKeys, aP as DeepResolvableProperties, aH as DefinedValueOrEmptyObject, v as DomBeforeRenderCtx, B as DomPluginOptions, u as DomRenderTagContext, D as DomState, $ as EntryAugmentation, t as EntryResolveCtx, E as EventHandlerOptions, aL as Falsey, aB as HasTemplateParams, ao as Head, H as HeadEntry, o as HeadEntryOptions, y as HeadHooks, k as HeadPlugin, j as HeadPluginInput, i as HeadPluginOptions, aC as HeadTag, aD as HeadTagKeys, al as HeadUtils, q as HookResult, Z as HtmlAttr, a9 as HtmlAttributes, I as HttpEventAttributes, av as InnerContent, au as InnerContentVal, a4 as Link, L as LinkBase, T as MaybeArray, a0 as MaybeEventFnHandlers, aI as Merge, aJ as MergeHead, a5 as Meta, M as MetaFlatInput, aK as Never, a8 as Noscript, aA as ProcessesTemplateParams, P as PropResolver, R as RecordingEntry, z as RenderDomHeadOptions, s as RenderSSRHeadOptions, am as ResolvableHead, aN as ResolvableProperties, aO as ResolvableUnion, aM as ResolvableValue, ad as ResolvedBase, ak as ResolvedBodyAttributes, an as ResolvedHead, aj as ResolvedHtmlAttributes, ae as ResolvedLink, af as ResolvedMeta, ai as ResolvedNoscript, Q as ResolvedSchemaAugmentations, ah as ResolvedScript, ag as ResolvedStyle, ab as ResolvedTitle, ac as ResolvedTitleTemplate, ar as ResolvesDuplicates, h as RuntimeMode, r as SSRHeadPayload, x as SSRRenderContext, O as SchemaAugmentations, a7 as Script, J as ScriptBase, S as ScriptInstance, w as ShouldRenderContext, g as SideEffectsRecord, aF as Stringable, a6 as Style, ay as TagKey, at as TagPosition, aw as TagPriority, ax as TagUserProperties, az as TemplateParams, a1 as Title, a2 as TitleTemplate, p as Unhead, d as UseFunctionType, aq as UseHeadInput, a as UseScriptContext, c as UseScriptInput, e as UseScriptOptions, b as UseScriptResolvedInput, f as UseScriptReturn, U as UseScriptStatus, ap as UseSeoMetaInput, N as UserAttributesConfig, K as UserTagConfigWithoutInnerContent, as as ValidTagPositions, W as WarmupStrategy } from './shared/unhead.H9K4hNc3.mjs';
|
|
2
|
+
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.D5hDM0h5.mjs';
|
|
3
|
+
export { u as useScript } from './shared/unhead.CMEjo4Tf.mjs';
|
|
4
4
|
export { createSpyProxy } from './scripts.mjs';
|
|
5
5
|
import 'hookable';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { l as ActiveHeadEntry,
|
|
2
|
-
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.
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
export { l as ActiveHeadEntry, aG as Arrayable, A as AsVoidFunctions, a3 as Base, V as BaseBodyAttr, X as BaseHtmlAttr, _ as BaseMeta, Y as BodyAttr, aa as BodyAttributes, F as BodyEvents, aE as Booleanable, n as CreateClientHeadOptions, C as CreateHeadOptions, m as CreateServerHeadOptions, G as DataKeys, aP as DeepResolvableProperties, aH as DefinedValueOrEmptyObject, v as DomBeforeRenderCtx, B as DomPluginOptions, u as DomRenderTagContext, D as DomState, $ as EntryAugmentation, t as EntryResolveCtx, E as EventHandlerOptions, aL as Falsey, aB as HasTemplateParams, ao as Head, H as HeadEntry, o as HeadEntryOptions, y as HeadHooks, k as HeadPlugin, j as HeadPluginInput, i as HeadPluginOptions, aC as HeadTag, aD as HeadTagKeys, al as HeadUtils, q as HookResult, Z as HtmlAttr, a9 as HtmlAttributes, I as HttpEventAttributes, av as InnerContent, au as InnerContentVal, a4 as Link, L as LinkBase, T as MaybeArray, a0 as MaybeEventFnHandlers, aI as Merge, aJ as MergeHead, a5 as Meta, M as MetaFlatInput, aK as Never, a8 as Noscript, aA as ProcessesTemplateParams, P as PropResolver, R as RecordingEntry, z as RenderDomHeadOptions, s as RenderSSRHeadOptions, am as ResolvableHead, aN as ResolvableProperties, aO as ResolvableUnion, aM as ResolvableValue, ad as ResolvedBase, ak as ResolvedBodyAttributes, an as ResolvedHead, aj as ResolvedHtmlAttributes, ae as ResolvedLink, af as ResolvedMeta, ai as ResolvedNoscript, Q as ResolvedSchemaAugmentations, ah as ResolvedScript, ag as ResolvedStyle, ab as ResolvedTitle, ac as ResolvedTitleTemplate, ar as ResolvesDuplicates, h as RuntimeMode, r as SSRHeadPayload, x as SSRRenderContext, O as SchemaAugmentations, a7 as Script, J as ScriptBase, S as ScriptInstance, w as ShouldRenderContext, g as SideEffectsRecord, aF as Stringable, a6 as Style, ay as TagKey, at as TagPosition, aw as TagPriority, ax as TagUserProperties, az as TemplateParams, a1 as Title, a2 as TitleTemplate, p as Unhead, d as UseFunctionType, aq as UseHeadInput, a as UseScriptContext, c as UseScriptInput, e as UseScriptOptions, b as UseScriptResolvedInput, f as UseScriptReturn, U as UseScriptStatus, ap as UseSeoMetaInput, N as UserAttributesConfig, K as UserTagConfigWithoutInnerContent, as as ValidTagPositions, W as WarmupStrategy } from './shared/unhead.H9K4hNc3.js';
|
|
2
|
+
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.CYOiVxYm.js';
|
|
3
|
+
export { u as useScript } from './shared/unhead.f-vxWgdH.js';
|
|
4
4
|
export { createSpyProxy } from './scripts.js';
|
|
5
5
|
import 'hookable';
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aC as HeadTag, _ as BaseMeta, aQ as ResolvedMetaFlat, am as ResolvableHead, P as PropResolver, p as Unhead, az as TemplateParams } from './shared/unhead.H9K4hNc3.mjs';
|
|
2
2
|
import 'hookable';
|
|
3
3
|
|
|
4
4
|
declare const SelfClosingTags: Set<string>;
|
|
@@ -19,7 +19,7 @@ declare function hashTag(tag: HeadTag): string;
|
|
|
19
19
|
declare function resolveMetaKeyType(key: string): keyof BaseMeta;
|
|
20
20
|
declare function resolveMetaKeyValue(key: string): string;
|
|
21
21
|
declare function resolvePackedMetaObjectValue(value: string, key: string): string;
|
|
22
|
-
declare function unpackMeta<T extends ResolvedMetaFlat>(input: T): Required<
|
|
22
|
+
declare function unpackMeta<T extends ResolvedMetaFlat>(input: T): Required<ResolvableHead>['meta'];
|
|
23
23
|
|
|
24
24
|
declare function normalizeProps(tag: HeadTag, input: Record<string, any>): HeadTag;
|
|
25
25
|
declare function normalizeEntryToTags(input: any, propResolvers: PropResolver[]): HeadTag[];
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aC as HeadTag, _ as BaseMeta, aQ as ResolvedMetaFlat, am as ResolvableHead, P as PropResolver, p as Unhead, az as TemplateParams } from './shared/unhead.H9K4hNc3.js';
|
|
2
2
|
import 'hookable';
|
|
3
3
|
|
|
4
4
|
declare const SelfClosingTags: Set<string>;
|
|
@@ -19,7 +19,7 @@ declare function hashTag(tag: HeadTag): string;
|
|
|
19
19
|
declare function resolveMetaKeyType(key: string): keyof BaseMeta;
|
|
20
20
|
declare function resolveMetaKeyValue(key: string): string;
|
|
21
21
|
declare function resolvePackedMetaObjectValue(value: string, key: string): string;
|
|
22
|
-
declare function unpackMeta<T extends ResolvedMetaFlat>(input: T): Required<
|
|
22
|
+
declare function unpackMeta<T extends ResolvedMetaFlat>(input: T): Required<ResolvableHead>['meta'];
|
|
23
23
|
|
|
24
24
|
declare function normalizeProps(tag: HeadTag, input: Record<string, any>): HeadTag;
|
|
25
25
|
declare function normalizeEntryToTags(input: any, propResolvers: PropResolver[]): HeadTag[];
|