unhead 3.0.1 → 3.0.2
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 +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/parser.d.mts +1 -1
- package/dist/parser.d.ts +1 -1
- package/dist/plugins.d.mts +2 -2
- package/dist/plugins.d.ts +2 -2
- package/dist/scripts.d.mts +4 -4
- package/dist/scripts.d.ts +4 -4
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/shared/{unhead.5pUZeb0i.d.mts → unhead.BJTN1X0i.d.mts} +21 -13
- package/dist/shared/{unhead.5pUZeb0i.d.ts → unhead.BJTN1X0i.d.ts} +21 -13
- package/dist/shared/{unhead.BEof8Qjb.d.ts → unhead.BRWMyYIW.d.ts} +1 -1
- package/dist/shared/{unhead.BAv4ddL5.d.mts → unhead.BXRLaj2l.d.mts} +1 -1
- package/dist/shared/{unhead.UFdAtJOd.d.ts → unhead.BhElfVXO.d.ts} +1 -1
- package/dist/shared/{unhead.DvMT2vYs.d.mts → unhead.C6alnWbQ.d.mts} +2 -2
- package/dist/shared/{unhead.CUEmFl2d.d.mts → unhead.CZPkBynw.d.mts} +1 -1
- package/dist/shared/{unhead.D_sLwV5L.d.ts → unhead.CpT6Kxc0.d.ts} +2 -2
- package/dist/shared/{unhead.BRPfhzdc.d.ts → unhead.D4KaR-FM.d.ts} +2 -2
- package/dist/shared/{unhead.vQPF0cJs.d.ts → unhead.DH3TZMHc.d.ts} +1 -1
- package/dist/shared/{unhead.BxsOjg-Q.d.mts → unhead.DJ6joC2O.d.mts} +2 -2
- package/dist/shared/{unhead.dhQT0IKI.d.mts → unhead.Dp1MlAYz.d.mts} +1 -1
- package/dist/shared/{unhead.CyKsApKH.d.mts → unhead.DsHmk_XC.d.mts} +1 -1
- package/dist/shared/{unhead.JGBJYEOZ.d.ts → unhead.YGcEMcjf.d.ts} +1 -1
- package/dist/stream/client.d.mts +3 -3
- package/dist/stream/client.d.ts +3 -3
- package/dist/stream/server.d.mts +3 -3
- package/dist/stream/server.d.ts +3 -3
- package/dist/types.d.mts +6 -6
- package/dist/types.d.ts +6 -6
- 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,9 +1,9 @@
|
|
|
1
|
-
export { C as ClientUnhead, c as createHead } from './shared/unhead.
|
|
2
|
-
import { R as RenderDomHeadOptions } from './shared/unhead.
|
|
3
|
-
import { p as HeadRenderer, U as Unhead } from './shared/unhead.
|
|
4
|
-
export { c as CreateClientHeadOptions } from './shared/unhead.
|
|
1
|
+
export { C as ClientUnhead, c as createHead } from './shared/unhead.DJ6joC2O.mjs';
|
|
2
|
+
import { R as RenderDomHeadOptions } from './shared/unhead.BXRLaj2l.mjs';
|
|
3
|
+
import { p as HeadRenderer, U as Unhead } from './shared/unhead.DsHmk_XC.mjs';
|
|
4
|
+
export { c as CreateClientHeadOptions } from './shared/unhead.DsHmk_XC.mjs';
|
|
5
5
|
import 'hookable';
|
|
6
|
-
import './shared/unhead.
|
|
6
|
+
import './shared/unhead.BJTN1X0i.mjs';
|
|
7
7
|
|
|
8
8
|
declare function createDomRenderer(options?: RenderDomHeadOptions): HeadRenderer<boolean>;
|
|
9
9
|
|
package/dist/client.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { C as ClientUnhead, c as createHead } from './shared/unhead.
|
|
2
|
-
import { R as RenderDomHeadOptions } from './shared/unhead.
|
|
3
|
-
import { p as HeadRenderer, U as Unhead } from './shared/unhead.
|
|
4
|
-
export { c as CreateClientHeadOptions } from './shared/unhead.
|
|
1
|
+
export { C as ClientUnhead, c as createHead } from './shared/unhead.CpT6Kxc0.js';
|
|
2
|
+
import { R as RenderDomHeadOptions } from './shared/unhead.YGcEMcjf.js';
|
|
3
|
+
import { p as HeadRenderer, U as Unhead } from './shared/unhead.BRWMyYIW.js';
|
|
4
|
+
export { c as CreateClientHeadOptions } from './shared/unhead.BRWMyYIW.js';
|
|
5
5
|
import 'hookable';
|
|
6
|
-
import './shared/unhead.
|
|
6
|
+
import './shared/unhead.BJTN1X0i.js';
|
|
7
7
|
|
|
8
8
|
declare function createDomRenderer(options?: RenderDomHeadOptions): HeadRenderer<boolean>;
|
|
9
9
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { U as Unhead, k as HeadEntryOptions, A as ActiveHeadEntry, p as HeadRenderer, d as CreateHeadOptions } from './shared/unhead.
|
|
2
|
-
import {
|
|
3
|
-
import { H as HeadSafe } from './shared/unhead.
|
|
4
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
import { U as Unhead, k as HeadEntryOptions, A as ActiveHeadEntry, p as HeadRenderer, d as CreateHeadOptions } from './shared/unhead.DsHmk_XC.mjs';
|
|
2
|
+
import { at as ResolvableHead, b1 as UseSeoMetaInput, J as InferLink, U as Link, K as InferScript, aI as Script } from './shared/unhead.BJTN1X0i.mjs';
|
|
3
|
+
import { H as HeadSafe } from './shared/unhead.CZPkBynw.mjs';
|
|
4
|
+
export { u as useScript } from './shared/unhead.Dp1MlAYz.mjs';
|
|
5
5
|
import 'hookable';
|
|
6
6
|
|
|
7
7
|
declare function useHead<T extends Unhead<any>, I = ResolvableHead>(unhead: T, input?: ResolvableHead, options?: HeadEntryOptions): ActiveHeadEntry<I>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { U as Unhead, k as HeadEntryOptions, A as ActiveHeadEntry, p as HeadRenderer, d as CreateHeadOptions } from './shared/unhead.
|
|
2
|
-
import {
|
|
3
|
-
import { H as HeadSafe } from './shared/unhead.
|
|
4
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
import { U as Unhead, k as HeadEntryOptions, A as ActiveHeadEntry, p as HeadRenderer, d as CreateHeadOptions } from './shared/unhead.BRWMyYIW.js';
|
|
2
|
+
import { at as ResolvableHead, b1 as UseSeoMetaInput, J as InferLink, U as Link, K as InferScript, aI as Script } from './shared/unhead.BJTN1X0i.js';
|
|
3
|
+
import { H as HeadSafe } from './shared/unhead.BhElfVXO.js';
|
|
4
|
+
export { u as useScript } from './shared/unhead.DH3TZMHc.js';
|
|
5
5
|
import 'hookable';
|
|
6
6
|
|
|
7
7
|
declare function useHead<T extends Unhead<any>, I = ResolvableHead>(unhead: T, input?: ResolvableHead, options?: HeadEntryOptions): ActiveHeadEntry<I>;
|
package/dist/parser.d.mts
CHANGED
package/dist/parser.d.ts
CHANGED
package/dist/plugins.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as HeadPluginInput, U as Unhead, o as HeadPluginOptions } from './shared/unhead.
|
|
2
|
-
import {
|
|
1
|
+
import { n as HeadPluginInput, U as Unhead, o as HeadPluginOptions } from './shared/unhead.DsHmk_XC.mjs';
|
|
2
|
+
import { t as HeadTag } from './shared/unhead.BJTN1X0i.mjs';
|
|
3
3
|
import 'hookable';
|
|
4
4
|
|
|
5
5
|
declare const AliasSortingPlugin: HeadPluginInput;
|
package/dist/plugins.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as HeadPluginInput, U as Unhead, o as HeadPluginOptions } from './shared/unhead.
|
|
2
|
-
import {
|
|
1
|
+
import { n as HeadPluginInput, U as Unhead, o as HeadPluginOptions } from './shared/unhead.BRWMyYIW.js';
|
|
2
|
+
import { t as HeadTag } from './shared/unhead.BJTN1X0i.js';
|
|
3
3
|
import 'hookable';
|
|
4
4
|
|
|
5
5
|
declare const AliasSortingPlugin: HeadPluginInput;
|
package/dist/scripts.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as RecordingEntry } from './shared/unhead.
|
|
2
|
-
export { a as AsVoidFunctions, j as EventHandlerOptions, u as ScriptInstance, z as UseFunctionType, B as UseScriptContext, F as UseScriptInput, G as UseScriptOptions, I as UseScriptResolvedInput, J as UseScriptReturn, K as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
import { R as RecordingEntry } from './shared/unhead.DsHmk_XC.mjs';
|
|
2
|
+
export { a as AsVoidFunctions, j as EventHandlerOptions, u as ScriptInstance, z as UseFunctionType, B as UseScriptContext, F as UseScriptInput, G as UseScriptOptions, I as UseScriptResolvedInput, J as UseScriptReturn, K as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.DsHmk_XC.mjs';
|
|
3
|
+
export { u as useScript } from './shared/unhead.Dp1MlAYz.mjs';
|
|
4
4
|
import 'hookable';
|
|
5
|
-
import './shared/unhead.
|
|
5
|
+
import './shared/unhead.BJTN1X0i.mjs';
|
|
6
6
|
|
|
7
7
|
declare function createSpyProxy<T extends Record<string, any> | any[]>(target: T, onApply: (stack: RecordingEntry[][]) => void): T;
|
|
8
8
|
|
package/dist/scripts.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as RecordingEntry } from './shared/unhead.
|
|
2
|
-
export { a as AsVoidFunctions, j as EventHandlerOptions, u as ScriptInstance, z as UseFunctionType, B as UseScriptContext, F as UseScriptInput, G as UseScriptOptions, I as UseScriptResolvedInput, J as UseScriptReturn, K as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
import { R as RecordingEntry } from './shared/unhead.BRWMyYIW.js';
|
|
2
|
+
export { a as AsVoidFunctions, j as EventHandlerOptions, u as ScriptInstance, z as UseFunctionType, B as UseScriptContext, F as UseScriptInput, G as UseScriptOptions, I as UseScriptResolvedInput, J as UseScriptReturn, K as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.BRWMyYIW.js';
|
|
3
|
+
export { u as useScript } from './shared/unhead.DH3TZMHc.js';
|
|
4
4
|
import 'hookable';
|
|
5
|
-
import './shared/unhead.
|
|
5
|
+
import './shared/unhead.BJTN1X0i.js';
|
|
6
6
|
|
|
7
7
|
declare function createSpyProxy<T extends Record<string, any> | any[]>(target: T, onApply: (stack: RecordingEntry[][]) => void): T;
|
|
8
8
|
|
package/dist/server.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { S as ServerUnhead, c as createHead } from './shared/unhead.
|
|
2
|
-
import { r as RenderSSRHeadOptions, p as HeadRenderer, s as SSRHeadPayload, U as Unhead } from './shared/unhead.
|
|
3
|
-
export { e as CreateServerHeadOptions } from './shared/unhead.
|
|
4
|
-
import {
|
|
1
|
+
export { S as ServerUnhead, c as createHead } from './shared/unhead.C6alnWbQ.mjs';
|
|
2
|
+
import { r as RenderSSRHeadOptions, p as HeadRenderer, s as SSRHeadPayload, U as Unhead } from './shared/unhead.DsHmk_XC.mjs';
|
|
3
|
+
export { e as CreateServerHeadOptions } from './shared/unhead.DsHmk_XC.mjs';
|
|
4
|
+
import { t as HeadTag } from './shared/unhead.BJTN1X0i.mjs';
|
|
5
5
|
import 'hookable';
|
|
6
6
|
|
|
7
7
|
declare function createServerRenderer(options?: RenderSSRHeadOptions): HeadRenderer<SSRHeadPayload>;
|
package/dist/server.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { S as ServerUnhead, c as createHead } from './shared/unhead.
|
|
2
|
-
import { r as RenderSSRHeadOptions, p as HeadRenderer, s as SSRHeadPayload, U as Unhead } from './shared/unhead.
|
|
3
|
-
export { e as CreateServerHeadOptions } from './shared/unhead.
|
|
4
|
-
import {
|
|
1
|
+
export { S as ServerUnhead, c as createHead } from './shared/unhead.D4KaR-FM.js';
|
|
2
|
+
import { r as RenderSSRHeadOptions, p as HeadRenderer, s as SSRHeadPayload, U as Unhead } from './shared/unhead.BRWMyYIW.js';
|
|
3
|
+
export { e as CreateServerHeadOptions } from './shared/unhead.BRWMyYIW.js';
|
|
4
|
+
import { t as HeadTag } from './shared/unhead.BJTN1X0i.js';
|
|
5
5
|
import 'hookable';
|
|
6
6
|
|
|
7
7
|
declare function createServerRenderer(options?: RenderSSRHeadOptions): HeadRenderer<SSRHeadPayload>;
|
|
@@ -16,6 +16,14 @@ type _ResolvablePropertiesRaw<T> = {
|
|
|
16
16
|
};
|
|
17
17
|
type ResolvableProperties<T> = Prettify<_ResolvablePropertiesRaw<T>>;
|
|
18
18
|
type ResolvableUnion<T> = T extends string | number | boolean ? ResolvableValue<T> : T extends object ? DeepResolvableProperties<T> : ResolvableValue<T>;
|
|
19
|
+
/**
|
|
20
|
+
* Recursively marks all properties and arrays as readonly.
|
|
21
|
+
* Applied to `InferScript`/`InferLink` return types so that
|
|
22
|
+
* `defineScript`/`defineLink` accept both mutable and `as const` inputs.
|
|
23
|
+
*/
|
|
24
|
+
type DeepReadonly<T> = T extends (...a: any[]) => any ? T : T extends ReadonlyArray<infer U> ? readonly DeepReadonly<U>[] : T extends object ? {
|
|
25
|
+
readonly [K in keyof T]: DeepReadonly<T[K]>;
|
|
26
|
+
} : T;
|
|
19
27
|
type DeepResolvableProperties<T> = {
|
|
20
28
|
[K in keyof T]?: T[K] extends string | object ? T[K] extends string ? ResolvableUnion<T[K]> : T[K] extends object ? DeepResolvableProperties<T[K]> : ResolvableUnion<T[K]> : ResolvableUnion<T[K]>;
|
|
21
29
|
};
|
|
@@ -1019,7 +1027,7 @@ type MatchLinkByRel<R> = Link extends infer M ? M extends {
|
|
|
1019
1027
|
*/
|
|
1020
1028
|
type InferLink<T> = T extends {
|
|
1021
1029
|
rel: infer R;
|
|
1022
|
-
} ? R extends KnownLinkRel ? MatchLinkByRel<R
|
|
1030
|
+
} ? R extends KnownLinkRel ? DeepReadonly<MatchLinkByRel<R>> : R extends string ? DeepReadonly<GenericLink> & {
|
|
1023
1031
|
rel: R;
|
|
1024
1032
|
} : never : never;
|
|
1025
1033
|
|
|
@@ -1134,7 +1142,7 @@ interface MetaFlatArticle {
|
|
|
1134
1142
|
* Writers of the article.
|
|
1135
1143
|
* @example ['https://example.com/some.html', 'https://example.com/one.html']
|
|
1136
1144
|
*/
|
|
1137
|
-
articleAuthor?: string[];
|
|
1145
|
+
articleAuthor?: readonly string[];
|
|
1138
1146
|
/**
|
|
1139
1147
|
* When the article is out of date after.
|
|
1140
1148
|
* @example '1970-01-01T00:00:00.000Z'
|
|
@@ -1159,14 +1167,14 @@ interface MetaFlatArticle {
|
|
|
1159
1167
|
* Tag words associated with this article.
|
|
1160
1168
|
* @example ['Apple', 'Steve Jobs']
|
|
1161
1169
|
*/
|
|
1162
|
-
articleTag?: string[];
|
|
1170
|
+
articleTag?: readonly string[];
|
|
1163
1171
|
}
|
|
1164
1172
|
interface MetaFlatBook {
|
|
1165
1173
|
/**
|
|
1166
1174
|
* Who wrote this book.
|
|
1167
1175
|
* @example ['https://example.com/some.html', 'https://example.com/one.html']
|
|
1168
1176
|
*/
|
|
1169
|
-
bookAuthor?: string[];
|
|
1177
|
+
bookAuthor?: readonly string[];
|
|
1170
1178
|
/**
|
|
1171
1179
|
* The ISBN.
|
|
1172
1180
|
* @example '978-3-16-148410-0'
|
|
@@ -1181,7 +1189,7 @@ interface MetaFlatBook {
|
|
|
1181
1189
|
* Tag words associated with this book.
|
|
1182
1190
|
* @example ['Apple', 'Steve Jobs']
|
|
1183
1191
|
*/
|
|
1184
|
-
bookTag?: string[];
|
|
1192
|
+
bookTag?: readonly string[];
|
|
1185
1193
|
}
|
|
1186
1194
|
interface MetaFlatProfile {
|
|
1187
1195
|
/**
|
|
@@ -2125,8 +2133,8 @@ type NoscriptContent = {
|
|
|
2125
2133
|
type Noscript = Pick<GlobalAttributes, 'id' | 'class' | 'style'> & NoscriptContent;
|
|
2126
2134
|
|
|
2127
2135
|
interface SpeculationRules {
|
|
2128
|
-
prefetch?: (SpeculationRuleList | SpeculationRuleDocument)[];
|
|
2129
|
-
prerender?: (SpeculationRuleList | SpeculationRuleDocument)[];
|
|
2136
|
+
prefetch?: readonly (SpeculationRuleList | SpeculationRuleDocument)[];
|
|
2137
|
+
prerender?: readonly (SpeculationRuleList | SpeculationRuleDocument)[];
|
|
2130
2138
|
}
|
|
2131
2139
|
interface SpeculationRuleBase {
|
|
2132
2140
|
/**
|
|
@@ -2146,7 +2154,7 @@ interface SpeculationRuleBase {
|
|
|
2146
2154
|
*
|
|
2147
2155
|
* @see https://github.com/WICG/nav-speculation/blob/main/triggers.md#requirements
|
|
2148
2156
|
*/
|
|
2149
|
-
requires?: 'anonymous-client-ip-when-cross-origin'[];
|
|
2157
|
+
requires?: readonly 'anonymous-client-ip-when-cross-origin'[];
|
|
2150
2158
|
/**
|
|
2151
2159
|
* Indicating where the page expects the prerendered content to be activated.
|
|
2152
2160
|
*
|
|
@@ -2162,10 +2170,10 @@ interface SpeculationRuleBase {
|
|
|
2162
2170
|
}
|
|
2163
2171
|
interface SpeculationRuleList extends SpeculationRuleBase {
|
|
2164
2172
|
source: 'list';
|
|
2165
|
-
urls: string[];
|
|
2173
|
+
urls: readonly string[];
|
|
2166
2174
|
}
|
|
2167
2175
|
type SpeculationRuleFn = 'and' | 'or' | 'href_matches' | 'selector_matches' | 'not';
|
|
2168
|
-
type SpeculationRuleWhere = Partial<Record<SpeculationRuleFn, Partial<(Record<SpeculationRuleFn, (Partial<Record<SpeculationRuleFn, string>>) | string>)>[]>>;
|
|
2176
|
+
type SpeculationRuleWhere = Partial<Record<SpeculationRuleFn, readonly Partial<(Record<SpeculationRuleFn, (Partial<Record<SpeculationRuleFn, string>>) | string>)>[]>>;
|
|
2169
2177
|
interface SpeculationRuleDocument extends SpeculationRuleBase {
|
|
2170
2178
|
source: 'document';
|
|
2171
2179
|
where: SpeculationRuleWhere;
|
|
@@ -2552,9 +2560,9 @@ type MatchScriptByType<U> = Script extends infer M ? M extends {
|
|
|
2552
2560
|
*/
|
|
2553
2561
|
type InferScript<T> = T extends {
|
|
2554
2562
|
type: infer U;
|
|
2555
|
-
} ? U extends string ? U extends KnownScriptType ? MatchScriptByType<U
|
|
2563
|
+
} ? U extends string ? U extends KnownScriptType ? DeepReadonly<MatchScriptByType<U>> : DeepReadonly<GenericScript> & {
|
|
2556
2564
|
type: U;
|
|
2557
|
-
} : Script : Script
|
|
2565
|
+
} : DeepReadonly<Script> : DeepReadonly<Script>;
|
|
2558
2566
|
|
|
2559
2567
|
interface Style extends Pick<GlobalAttributes, 'nonce' | 'id'>, Blocking {
|
|
2560
2568
|
/**
|
|
@@ -2873,4 +2881,4 @@ interface HeadTag extends TagPriority, TagPosition, ResolvesDuplicates, HasTempl
|
|
|
2873
2881
|
}
|
|
2874
2882
|
type HeadTagKeys = (keyof HeadTag)[];
|
|
2875
2883
|
|
|
2876
|
-
export type {
|
|
2884
|
+
export type { MeLink as $, AlternateFeedLink as A, Booleanable as B, CanonicalLink as C, DataKeys as D, ExpectLink as E, FaviconLink as F, GenericLink as G, HasTemplateParams as H, IconLink as I, InferLink as J, InferScript as K, InlineModuleScript as L, InlineScript as M, InnerContent as N, InnerContentVal as O, InternalTagKey as P, JsonLdScript as Q, KnownLinkRel as R, KnownScriptType as S, LicenseLink as T, Link as U, LinkBase as V, LinkHttpEvents as W, ManifestLink as X, MaskIconLink as Y, MaybeArray as Z, MaybeEventFnHandlers as _, AlternateLanguageLink as a, UnheadMeta as a$, Meta as a0, MetaBase as a1, MetaFlat as a2, MetaGeneric as a3, MetaNames as a4, MetaProperties as a5, ModuleScript as a6, ModulepreloadLink as a7, NameMeta as a8, Never as a9, ResolvableStyle as aA, ResolvableTemplateParams as aB, ResolvableTitle as aC, ResolvableTitleTemplate as aD, ResolvableUnion as aE, ResolvableValue as aF, ResolvesDuplicates as aG, SchemaAugmentations as aH, Script as aI, ScriptBase as aJ, ScriptHttpEvents as aK, SearchLink as aL, SerializableHead as aM, SpeculationRules as aN, SpeculationRulesScript as aO, StringInnerContent as aP, Stringable as aQ, StylesheetLink as aR, TagKey as aS, TagPosition as aT, TagPriority as aU, TagUserProperties as aV, TemplateParams as aW, TemplateParamsAugmentations as aX, TermsOfServiceLink as aY, UnheadBodyAttributesWithoutEvents as aZ, UnheadHtmlAttributes as a_, NextLink as aa, PingbackLink as ab, PreconnectLink as ac, PrefetchLink as ad, PreloadFontLink as ae, PreloadImageLink as af, PreloadLink as ag, PreloadLinkBase as ah, PreloadOtherLink as ai, PreloadScriptLink as aj, PreloadStyleLink as ak, PrerenderLink as al, PrevLink as am, PrivacyPolicyLink as an, ProcessesTemplateParams as ao, PropertyMeta as ap, RawInput as aq, ResolvableBase as ar, ResolvableBodyAttributes as as, ResolvableHead as at, ResolvableHtmlAttributes as au, ResolvableLink as av, ResolvableMeta as aw, ResolvableNoscript as ax, ResolvableProperties as ay, ResolvableScript as az, AlternateLink as b, UseHeadInput as b0, UseSeoMetaInput as b1, ValidTagPositions as b2, WebmentionLink as b3, AlternateMediaLink as c, AlternateStylesheetLink as d, AppleTouchIconLink as e, ApplicationJsonScript as f, Arrayable as g, AuthorLink as h, BareAlternateLink as i, BodyAttributesWithoutEvents as j, BodyEvents as k, CharsetMeta as l, CompressionDictionaryLink as m, DeepReadonly as n, DeepResolvableProperties as o, DnsPrefetchLink as p, ExternalScript as q, GenericScript as r, GlobalAttributes as s, HeadTag as t, HeadTagKeys as u, HelpLink as v, HttpEquivMeta as w, HttpEventAttributes as x, ImportMapConfig as y, ImportMapScript as z };
|
|
@@ -16,6 +16,14 @@ type _ResolvablePropertiesRaw<T> = {
|
|
|
16
16
|
};
|
|
17
17
|
type ResolvableProperties<T> = Prettify<_ResolvablePropertiesRaw<T>>;
|
|
18
18
|
type ResolvableUnion<T> = T extends string | number | boolean ? ResolvableValue<T> : T extends object ? DeepResolvableProperties<T> : ResolvableValue<T>;
|
|
19
|
+
/**
|
|
20
|
+
* Recursively marks all properties and arrays as readonly.
|
|
21
|
+
* Applied to `InferScript`/`InferLink` return types so that
|
|
22
|
+
* `defineScript`/`defineLink` accept both mutable and `as const` inputs.
|
|
23
|
+
*/
|
|
24
|
+
type DeepReadonly<T> = T extends (...a: any[]) => any ? T : T extends ReadonlyArray<infer U> ? readonly DeepReadonly<U>[] : T extends object ? {
|
|
25
|
+
readonly [K in keyof T]: DeepReadonly<T[K]>;
|
|
26
|
+
} : T;
|
|
19
27
|
type DeepResolvableProperties<T> = {
|
|
20
28
|
[K in keyof T]?: T[K] extends string | object ? T[K] extends string ? ResolvableUnion<T[K]> : T[K] extends object ? DeepResolvableProperties<T[K]> : ResolvableUnion<T[K]> : ResolvableUnion<T[K]>;
|
|
21
29
|
};
|
|
@@ -1019,7 +1027,7 @@ type MatchLinkByRel<R> = Link extends infer M ? M extends {
|
|
|
1019
1027
|
*/
|
|
1020
1028
|
type InferLink<T> = T extends {
|
|
1021
1029
|
rel: infer R;
|
|
1022
|
-
} ? R extends KnownLinkRel ? MatchLinkByRel<R
|
|
1030
|
+
} ? R extends KnownLinkRel ? DeepReadonly<MatchLinkByRel<R>> : R extends string ? DeepReadonly<GenericLink> & {
|
|
1023
1031
|
rel: R;
|
|
1024
1032
|
} : never : never;
|
|
1025
1033
|
|
|
@@ -1134,7 +1142,7 @@ interface MetaFlatArticle {
|
|
|
1134
1142
|
* Writers of the article.
|
|
1135
1143
|
* @example ['https://example.com/some.html', 'https://example.com/one.html']
|
|
1136
1144
|
*/
|
|
1137
|
-
articleAuthor?: string[];
|
|
1145
|
+
articleAuthor?: readonly string[];
|
|
1138
1146
|
/**
|
|
1139
1147
|
* When the article is out of date after.
|
|
1140
1148
|
* @example '1970-01-01T00:00:00.000Z'
|
|
@@ -1159,14 +1167,14 @@ interface MetaFlatArticle {
|
|
|
1159
1167
|
* Tag words associated with this article.
|
|
1160
1168
|
* @example ['Apple', 'Steve Jobs']
|
|
1161
1169
|
*/
|
|
1162
|
-
articleTag?: string[];
|
|
1170
|
+
articleTag?: readonly string[];
|
|
1163
1171
|
}
|
|
1164
1172
|
interface MetaFlatBook {
|
|
1165
1173
|
/**
|
|
1166
1174
|
* Who wrote this book.
|
|
1167
1175
|
* @example ['https://example.com/some.html', 'https://example.com/one.html']
|
|
1168
1176
|
*/
|
|
1169
|
-
bookAuthor?: string[];
|
|
1177
|
+
bookAuthor?: readonly string[];
|
|
1170
1178
|
/**
|
|
1171
1179
|
* The ISBN.
|
|
1172
1180
|
* @example '978-3-16-148410-0'
|
|
@@ -1181,7 +1189,7 @@ interface MetaFlatBook {
|
|
|
1181
1189
|
* Tag words associated with this book.
|
|
1182
1190
|
* @example ['Apple', 'Steve Jobs']
|
|
1183
1191
|
*/
|
|
1184
|
-
bookTag?: string[];
|
|
1192
|
+
bookTag?: readonly string[];
|
|
1185
1193
|
}
|
|
1186
1194
|
interface MetaFlatProfile {
|
|
1187
1195
|
/**
|
|
@@ -2125,8 +2133,8 @@ type NoscriptContent = {
|
|
|
2125
2133
|
type Noscript = Pick<GlobalAttributes, 'id' | 'class' | 'style'> & NoscriptContent;
|
|
2126
2134
|
|
|
2127
2135
|
interface SpeculationRules {
|
|
2128
|
-
prefetch?: (SpeculationRuleList | SpeculationRuleDocument)[];
|
|
2129
|
-
prerender?: (SpeculationRuleList | SpeculationRuleDocument)[];
|
|
2136
|
+
prefetch?: readonly (SpeculationRuleList | SpeculationRuleDocument)[];
|
|
2137
|
+
prerender?: readonly (SpeculationRuleList | SpeculationRuleDocument)[];
|
|
2130
2138
|
}
|
|
2131
2139
|
interface SpeculationRuleBase {
|
|
2132
2140
|
/**
|
|
@@ -2146,7 +2154,7 @@ interface SpeculationRuleBase {
|
|
|
2146
2154
|
*
|
|
2147
2155
|
* @see https://github.com/WICG/nav-speculation/blob/main/triggers.md#requirements
|
|
2148
2156
|
*/
|
|
2149
|
-
requires?: 'anonymous-client-ip-when-cross-origin'[];
|
|
2157
|
+
requires?: readonly 'anonymous-client-ip-when-cross-origin'[];
|
|
2150
2158
|
/**
|
|
2151
2159
|
* Indicating where the page expects the prerendered content to be activated.
|
|
2152
2160
|
*
|
|
@@ -2162,10 +2170,10 @@ interface SpeculationRuleBase {
|
|
|
2162
2170
|
}
|
|
2163
2171
|
interface SpeculationRuleList extends SpeculationRuleBase {
|
|
2164
2172
|
source: 'list';
|
|
2165
|
-
urls: string[];
|
|
2173
|
+
urls: readonly string[];
|
|
2166
2174
|
}
|
|
2167
2175
|
type SpeculationRuleFn = 'and' | 'or' | 'href_matches' | 'selector_matches' | 'not';
|
|
2168
|
-
type SpeculationRuleWhere = Partial<Record<SpeculationRuleFn, Partial<(Record<SpeculationRuleFn, (Partial<Record<SpeculationRuleFn, string>>) | string>)>[]>>;
|
|
2176
|
+
type SpeculationRuleWhere = Partial<Record<SpeculationRuleFn, readonly Partial<(Record<SpeculationRuleFn, (Partial<Record<SpeculationRuleFn, string>>) | string>)>[]>>;
|
|
2169
2177
|
interface SpeculationRuleDocument extends SpeculationRuleBase {
|
|
2170
2178
|
source: 'document';
|
|
2171
2179
|
where: SpeculationRuleWhere;
|
|
@@ -2552,9 +2560,9 @@ type MatchScriptByType<U> = Script extends infer M ? M extends {
|
|
|
2552
2560
|
*/
|
|
2553
2561
|
type InferScript<T> = T extends {
|
|
2554
2562
|
type: infer U;
|
|
2555
|
-
} ? U extends string ? U extends KnownScriptType ? MatchScriptByType<U
|
|
2563
|
+
} ? U extends string ? U extends KnownScriptType ? DeepReadonly<MatchScriptByType<U>> : DeepReadonly<GenericScript> & {
|
|
2556
2564
|
type: U;
|
|
2557
|
-
} : Script : Script
|
|
2565
|
+
} : DeepReadonly<Script> : DeepReadonly<Script>;
|
|
2558
2566
|
|
|
2559
2567
|
interface Style extends Pick<GlobalAttributes, 'nonce' | 'id'>, Blocking {
|
|
2560
2568
|
/**
|
|
@@ -2873,4 +2881,4 @@ interface HeadTag extends TagPriority, TagPosition, ResolvesDuplicates, HasTempl
|
|
|
2873
2881
|
}
|
|
2874
2882
|
type HeadTagKeys = (keyof HeadTag)[];
|
|
2875
2883
|
|
|
2876
|
-
export type {
|
|
2884
|
+
export type { MeLink as $, AlternateFeedLink as A, Booleanable as B, CanonicalLink as C, DataKeys as D, ExpectLink as E, FaviconLink as F, GenericLink as G, HasTemplateParams as H, IconLink as I, InferLink as J, InferScript as K, InlineModuleScript as L, InlineScript as M, InnerContent as N, InnerContentVal as O, InternalTagKey as P, JsonLdScript as Q, KnownLinkRel as R, KnownScriptType as S, LicenseLink as T, Link as U, LinkBase as V, LinkHttpEvents as W, ManifestLink as X, MaskIconLink as Y, MaybeArray as Z, MaybeEventFnHandlers as _, AlternateLanguageLink as a, UnheadMeta as a$, Meta as a0, MetaBase as a1, MetaFlat as a2, MetaGeneric as a3, MetaNames as a4, MetaProperties as a5, ModuleScript as a6, ModulepreloadLink as a7, NameMeta as a8, Never as a9, ResolvableStyle as aA, ResolvableTemplateParams as aB, ResolvableTitle as aC, ResolvableTitleTemplate as aD, ResolvableUnion as aE, ResolvableValue as aF, ResolvesDuplicates as aG, SchemaAugmentations as aH, Script as aI, ScriptBase as aJ, ScriptHttpEvents as aK, SearchLink as aL, SerializableHead as aM, SpeculationRules as aN, SpeculationRulesScript as aO, StringInnerContent as aP, Stringable as aQ, StylesheetLink as aR, TagKey as aS, TagPosition as aT, TagPriority as aU, TagUserProperties as aV, TemplateParams as aW, TemplateParamsAugmentations as aX, TermsOfServiceLink as aY, UnheadBodyAttributesWithoutEvents as aZ, UnheadHtmlAttributes as a_, NextLink as aa, PingbackLink as ab, PreconnectLink as ac, PrefetchLink as ad, PreloadFontLink as ae, PreloadImageLink as af, PreloadLink as ag, PreloadLinkBase as ah, PreloadOtherLink as ai, PreloadScriptLink as aj, PreloadStyleLink as ak, PrerenderLink as al, PrevLink as am, PrivacyPolicyLink as an, ProcessesTemplateParams as ao, PropertyMeta as ap, RawInput as aq, ResolvableBase as ar, ResolvableBodyAttributes as as, ResolvableHead as at, ResolvableHtmlAttributes as au, ResolvableLink as av, ResolvableMeta as aw, ResolvableNoscript as ax, ResolvableProperties as ay, ResolvableScript as az, AlternateLink as b, UseHeadInput as b0, UseSeoMetaInput as b1, ValidTagPositions as b2, WebmentionLink as b3, AlternateMediaLink as c, AlternateStylesheetLink as d, AppleTouchIconLink as e, ApplicationJsonScript as f, Arrayable as g, AuthorLink as h, BareAlternateLink as i, BodyAttributesWithoutEvents as j, BodyEvents as k, CharsetMeta as l, CompressionDictionaryLink as m, DeepReadonly as n, DeepResolvableProperties as o, DnsPrefetchLink as p, ExternalScript as q, GenericScript as r, GlobalAttributes as s, HeadTag as t, HeadTagKeys as u, HelpLink as v, HttpEquivMeta as w, HttpEventAttributes as x, ImportMapConfig as y, ImportMapScript as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HookableCore } from 'hookable';
|
|
2
|
-
import {
|
|
2
|
+
import { r as GenericScript, aK as ScriptHttpEvents, D as DataKeys, _ as MaybeEventFnHandlers, x as HttpEventAttributes, aH as SchemaAugmentations, t as HeadTag, at as ResolvableHead, aT as TagPosition, aU as TagPriority, ao as ProcessesTemplateParams, aG as ResolvesDuplicates, aW as TemplateParams } from './unhead.BJTN1X0i.js';
|
|
3
3
|
|
|
4
4
|
type UseScriptStatus = 'awaitingLoad' | 'loading' | 'loaded' | 'error' | 'removed';
|
|
5
5
|
type UseScriptContext<T extends Record<symbol | string, any>> = ScriptInstance<T>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aq as RawInput, at as ResolvableHead, aF as ResolvableValue, ay as ResolvableProperties, G as GenericLink, D as DataKeys, aH as SchemaAugmentations, a3 as MetaGeneric, r as GenericScript, a_ as UnheadHtmlAttributes, aZ as UnheadBodyAttributesWithoutEvents } from './unhead.BJTN1X0i.js';
|
|
2
2
|
|
|
3
3
|
type Base = RawInput<'base'>;
|
|
4
4
|
type HtmlAttributes = RawInput<'htmlAttrs'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HookableCore } from 'hookable';
|
|
2
|
-
import { U as Unhead, s as SSRHeadPayload, v as ServerHeadHooks, e as CreateServerHeadOptions } from './unhead.
|
|
3
|
-
import {
|
|
2
|
+
import { U as Unhead, s as SSRHeadPayload, v as ServerHeadHooks, e as CreateServerHeadOptions } from './unhead.DsHmk_XC.mjs';
|
|
3
|
+
import { at as ResolvableHead } from './unhead.BJTN1X0i.mjs';
|
|
4
4
|
|
|
5
5
|
interface ServerUnhead<T = ResolvableHead> extends Unhead<T, SSRHeadPayload> {
|
|
6
6
|
hooks: HookableCore<ServerHeadHooks>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aq as RawInput, at as ResolvableHead, aF as ResolvableValue, ay as ResolvableProperties, G as GenericLink, D as DataKeys, aH as SchemaAugmentations, a3 as MetaGeneric, r as GenericScript, a_ as UnheadHtmlAttributes, aZ as UnheadBodyAttributesWithoutEvents } from './unhead.BJTN1X0i.mjs';
|
|
2
2
|
|
|
3
3
|
type Base = RawInput<'base'>;
|
|
4
4
|
type HtmlAttributes = RawInput<'htmlAttrs'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HookableCore } from 'hookable';
|
|
2
|
-
import { U as Unhead, C as ClientHeadHooks, c as CreateClientHeadOptions } from './unhead.
|
|
3
|
-
import {
|
|
2
|
+
import { U as Unhead, C as ClientHeadHooks, c as CreateClientHeadOptions } from './unhead.BRWMyYIW.js';
|
|
3
|
+
import { at as ResolvableHead } from './unhead.BJTN1X0i.js';
|
|
4
4
|
|
|
5
5
|
interface ClientUnhead<T = ResolvableHead> extends Unhead<T, boolean> {
|
|
6
6
|
hooks: HookableCore<ClientHeadHooks>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HookableCore } from 'hookable';
|
|
2
|
-
import { U as Unhead, s as SSRHeadPayload, v as ServerHeadHooks, e as CreateServerHeadOptions } from './unhead.
|
|
3
|
-
import {
|
|
2
|
+
import { U as Unhead, s as SSRHeadPayload, v as ServerHeadHooks, e as CreateServerHeadOptions } from './unhead.BRWMyYIW.js';
|
|
3
|
+
import { at as ResolvableHead } from './unhead.BJTN1X0i.js';
|
|
4
4
|
|
|
5
5
|
interface ServerUnhead<T = ResolvableHead> extends Unhead<T, SSRHeadPayload> {
|
|
6
6
|
hooks: HookableCore<ServerHeadHooks>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as Unhead, F as UseScriptInput, G as UseScriptOptions, J as UseScriptReturn } from './unhead.
|
|
1
|
+
import { U as Unhead, F as UseScriptInput, G as UseScriptOptions, J as UseScriptReturn } from './unhead.BRWMyYIW.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Load third-party scripts with SSR support and a proxied API.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HookableCore } from 'hookable';
|
|
2
|
-
import { U as Unhead, C as ClientHeadHooks, c as CreateClientHeadOptions } from './unhead.
|
|
3
|
-
import {
|
|
2
|
+
import { U as Unhead, C as ClientHeadHooks, c as CreateClientHeadOptions } from './unhead.DsHmk_XC.mjs';
|
|
3
|
+
import { at as ResolvableHead } from './unhead.BJTN1X0i.mjs';
|
|
4
4
|
|
|
5
5
|
interface ClientUnhead<T = ResolvableHead> extends Unhead<T, boolean> {
|
|
6
6
|
hooks: HookableCore<ClientHeadHooks>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as Unhead, F as UseScriptInput, G as UseScriptOptions, J as UseScriptReturn } from './unhead.
|
|
1
|
+
import { U as Unhead, F as UseScriptInput, G as UseScriptOptions, J as UseScriptReturn } from './unhead.DsHmk_XC.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Load third-party scripts with SSR support and a proxied API.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HookableCore } from 'hookable';
|
|
2
|
-
import {
|
|
2
|
+
import { r as GenericScript, aK as ScriptHttpEvents, D as DataKeys, _ as MaybeEventFnHandlers, x as HttpEventAttributes, aH as SchemaAugmentations, t as HeadTag, at as ResolvableHead, aT as TagPosition, aU as TagPriority, ao as ProcessesTemplateParams, aG as ResolvesDuplicates, aW as TemplateParams } from './unhead.BJTN1X0i.mjs';
|
|
3
3
|
|
|
4
4
|
type UseScriptStatus = 'awaitingLoad' | 'loading' | 'loaded' | 'error' | 'removed';
|
|
5
5
|
type UseScriptContext<T extends Record<symbol | string, any>> = ScriptInstance<T>;
|
package/dist/stream/client.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as ClientUnhead } from '../shared/unhead.
|
|
2
|
-
import { c as CreateClientHeadOptions, U as Unhead } from '../shared/unhead.
|
|
3
|
-
import {
|
|
1
|
+
import { C as ClientUnhead } from '../shared/unhead.DJ6joC2O.mjs';
|
|
2
|
+
import { c as CreateClientHeadOptions, U as Unhead } from '../shared/unhead.DsHmk_XC.mjs';
|
|
3
|
+
import { aM as SerializableHead, at as ResolvableHead } from '../shared/unhead.BJTN1X0i.mjs';
|
|
4
4
|
import 'hookable';
|
|
5
5
|
|
|
6
6
|
interface UnheadStreamQueue {
|
package/dist/stream/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as ClientUnhead } from '../shared/unhead.
|
|
2
|
-
import { c as CreateClientHeadOptions, U as Unhead } from '../shared/unhead.
|
|
3
|
-
import {
|
|
1
|
+
import { C as ClientUnhead } from '../shared/unhead.CpT6Kxc0.js';
|
|
2
|
+
import { c as CreateClientHeadOptions, U as Unhead } from '../shared/unhead.BRWMyYIW.js';
|
|
3
|
+
import { aM as SerializableHead, at as ResolvableHead } from '../shared/unhead.BJTN1X0i.js';
|
|
4
4
|
import 'hookable';
|
|
5
5
|
|
|
6
6
|
interface UnheadStreamQueue {
|
package/dist/stream/server.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as ServerUnhead } from '../shared/unhead.
|
|
2
|
-
import { f as CreateStreamableServerHeadOptions, U as Unhead, s as SSRHeadPayload } from '../shared/unhead.
|
|
3
|
-
import {
|
|
1
|
+
import { S as ServerUnhead } from '../shared/unhead.C6alnWbQ.mjs';
|
|
2
|
+
import { f as CreateStreamableServerHeadOptions, U as Unhead, s as SSRHeadPayload } from '../shared/unhead.DsHmk_XC.mjs';
|
|
3
|
+
import { at as ResolvableHead } from '../shared/unhead.BJTN1X0i.mjs';
|
|
4
4
|
import 'hookable';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/stream/server.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as ServerUnhead } from '../shared/unhead.
|
|
2
|
-
import { f as CreateStreamableServerHeadOptions, U as Unhead, s as SSRHeadPayload } from '../shared/unhead.
|
|
3
|
-
import {
|
|
1
|
+
import { S as ServerUnhead } from '../shared/unhead.D4KaR-FM.js';
|
|
2
|
+
import { f as CreateStreamableServerHeadOptions, U as Unhead, s as SSRHeadPayload } from '../shared/unhead.BRWMyYIW.js';
|
|
3
|
+
import { at as ResolvableHead } from '../shared/unhead.BJTN1X0i.js';
|
|
4
4
|
import 'hookable';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/types.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { A as ActiveHeadEntry, a as AsVoidFunctions, C as ClientHeadHooks, b as CoreHeadHooks, c as CreateClientHeadOptions, d as CreateHeadOptions, e as CreateServerHeadOptions, f as CreateStreamableServerHeadOptions, D as DOMHeadHooks, g as DomBeforeRenderCtx, h as DomRenderTagContext, i as DomState, E as EntryResolveCtx, j as EventHandlerOptions, H as HeadEntry, k as HeadEntryOptions, l as HeadHooks, m as HeadPlugin, n as HeadPluginInput, o as HeadPluginOptions, p as HeadRenderer, q as HookResult, P as PropResolver, R as RecordingEntry, r as RenderSSRHeadOptions, S as SSRHeadHooks, s as SSRHeadPayload, t as SSRRenderContext, u as ScriptInstance, v as ServerHeadHooks, w as ShouldRenderContext, x as SideEffectsRecord, y as SyncHookResult, U as Unhead, z as UseFunctionType, B as UseScriptContext, F as UseScriptInput, G as UseScriptOptions, I as UseScriptResolvedInput, J as UseScriptReturn, K as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.
|
|
2
|
-
export { R as RenderDomHeadOptions } from './shared/unhead.
|
|
3
|
-
export { B as Base, a as BodyAttributes, H as HeadSafe, b as HtmlAttributes, N as Noscript, S as SafeBodyAttr, c as SafeHtmlAttr, d as SafeLink, e as SafeMeta, f as SafeNoscript, g as SafeScript, h as SafeStyle, i as Style } from './shared/unhead.
|
|
4
|
-
import { B as Booleanable } from './shared/unhead.
|
|
5
|
-
export { A as AlternateFeedLink, a as AlternateLanguageLink, b as AlternateLink, c as AlternateMediaLink, d as AlternateStylesheetLink, e as AppleTouchIconLink, f as ApplicationJsonScript, g as Arrayable, h as AuthorLink, i as BareAlternateLink, j as BodyAttributesWithoutEvents, k as BodyEvents, C as CanonicalLink, l as CharsetMeta, m as CompressionDictionaryLink, D as DataKeys, n as
|
|
1
|
+
export { A as ActiveHeadEntry, a as AsVoidFunctions, C as ClientHeadHooks, b as CoreHeadHooks, c as CreateClientHeadOptions, d as CreateHeadOptions, e as CreateServerHeadOptions, f as CreateStreamableServerHeadOptions, D as DOMHeadHooks, g as DomBeforeRenderCtx, h as DomRenderTagContext, i as DomState, E as EntryResolveCtx, j as EventHandlerOptions, H as HeadEntry, k as HeadEntryOptions, l as HeadHooks, m as HeadPlugin, n as HeadPluginInput, o as HeadPluginOptions, p as HeadRenderer, q as HookResult, P as PropResolver, R as RecordingEntry, r as RenderSSRHeadOptions, S as SSRHeadHooks, s as SSRHeadPayload, t as SSRRenderContext, u as ScriptInstance, v as ServerHeadHooks, w as ShouldRenderContext, x as SideEffectsRecord, y as SyncHookResult, U as Unhead, z as UseFunctionType, B as UseScriptContext, F as UseScriptInput, G as UseScriptOptions, I as UseScriptResolvedInput, J as UseScriptReturn, K as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.DsHmk_XC.mjs';
|
|
2
|
+
export { R as RenderDomHeadOptions } from './shared/unhead.BXRLaj2l.mjs';
|
|
3
|
+
export { B as Base, a as BodyAttributes, H as HeadSafe, b as HtmlAttributes, N as Noscript, S as SafeBodyAttr, c as SafeHtmlAttr, d as SafeLink, e as SafeMeta, f as SafeNoscript, g as SafeScript, h as SafeStyle, i as Style } from './shared/unhead.CZPkBynw.mjs';
|
|
4
|
+
import { B as Booleanable } from './shared/unhead.BJTN1X0i.mjs';
|
|
5
|
+
export { A as AlternateFeedLink, a as AlternateLanguageLink, b as AlternateLink, c as AlternateMediaLink, d as AlternateStylesheetLink, e as AppleTouchIconLink, f as ApplicationJsonScript, g as Arrayable, h as AuthorLink, i as BareAlternateLink, j as BodyAttributesWithoutEvents, k as BodyEvents, C as CanonicalLink, l as CharsetMeta, m as CompressionDictionaryLink, D as DataKeys, n as DeepReadonly, o as DeepResolvableProperties, p as DnsPrefetchLink, E as ExpectLink, q as ExternalScript, F as FaviconLink, G as GenericLink, r as GenericScript, s as GlobalAttributes, H as HasTemplateParams, t as HeadTag, u as HeadTagKeys, v as HelpLink, w as HttpEquivMeta, x as HttpEventAttributes, I as IconLink, y as ImportMapConfig, z as ImportMapScript, J as InferLink, K as InferScript, L as InlineModuleScript, M as InlineScript, N as InnerContent, O as InnerContentVal, P as InternalTagKey, Q as JsonLdScript, R as KnownLinkRel, S as KnownScriptType, T as LicenseLink, U as Link, V as LinkBase, W as LinkHttpEvents, X as ManifestLink, Y as MaskIconLink, Z as MaybeArray, _ as MaybeEventFnHandlers, $ as MeLink, a0 as Meta, a1 as MetaBase, a2 as MetaFlat, a3 as MetaGeneric, a4 as MetaNames, a5 as MetaProperties, a6 as ModuleScript, a7 as ModulepreloadLink, a8 as NameMeta, a9 as Never, aa as NextLink, ab as PingbackLink, ac as PreconnectLink, ad as PrefetchLink, ae as PreloadFontLink, af as PreloadImageLink, ag as PreloadLink, ah as PreloadLinkBase, ai as PreloadOtherLink, aj as PreloadScriptLink, ak as PreloadStyleLink, al as PrerenderLink, am as PrevLink, an as PrivacyPolicyLink, ao as ProcessesTemplateParams, ap as PropertyMeta, aq as RawInput, ar as ResolvableBase, as as ResolvableBodyAttributes, at as ResolvableHead, au as ResolvableHtmlAttributes, av as ResolvableLink, aw as ResolvableMeta, ax as ResolvableNoscript, ay as ResolvableProperties, az as ResolvableScript, aA as ResolvableStyle, aB as ResolvableTemplateParams, aC as ResolvableTitle, aD as ResolvableTitleTemplate, aE as ResolvableUnion, aF as ResolvableValue, aG as ResolvesDuplicates, aH as SchemaAugmentations, aI as Script, aJ as ScriptBase, aK as ScriptHttpEvents, aL as SearchLink, aM as SerializableHead, aN as SpeculationRules, aO as SpeculationRulesScript, aP as StringInnerContent, aQ as Stringable, aR as StylesheetLink, aS as TagKey, aT as TagPosition, aU as TagPriority, aV as TagUserProperties, aW as TemplateParams, aX as TemplateParamsAugmentations, aY as TermsOfServiceLink, aZ as UnheadBodyAttributesWithoutEvents, a_ as UnheadHtmlAttributes, a$ as UnheadMeta, b0 as UseHeadInput, b1 as UseSeoMetaInput, b2 as ValidTagPositions, b3 as WebmentionLink } from './shared/unhead.BJTN1X0i.mjs';
|
|
6
6
|
export { createSpyProxy } from './scripts.mjs';
|
|
7
|
-
export { u as useScript } from './shared/unhead.
|
|
7
|
+
export { u as useScript } from './shared/unhead.Dp1MlAYz.mjs';
|
|
8
8
|
import 'hookable';
|
|
9
9
|
|
|
10
10
|
interface AriaAttributes {
|
package/dist/types.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { A as ActiveHeadEntry, a as AsVoidFunctions, C as ClientHeadHooks, b as CoreHeadHooks, c as CreateClientHeadOptions, d as CreateHeadOptions, e as CreateServerHeadOptions, f as CreateStreamableServerHeadOptions, D as DOMHeadHooks, g as DomBeforeRenderCtx, h as DomRenderTagContext, i as DomState, E as EntryResolveCtx, j as EventHandlerOptions, H as HeadEntry, k as HeadEntryOptions, l as HeadHooks, m as HeadPlugin, n as HeadPluginInput, o as HeadPluginOptions, p as HeadRenderer, q as HookResult, P as PropResolver, R as RecordingEntry, r as RenderSSRHeadOptions, S as SSRHeadHooks, s as SSRHeadPayload, t as SSRRenderContext, u as ScriptInstance, v as ServerHeadHooks, w as ShouldRenderContext, x as SideEffectsRecord, y as SyncHookResult, U as Unhead, z as UseFunctionType, B as UseScriptContext, F as UseScriptInput, G as UseScriptOptions, I as UseScriptResolvedInput, J as UseScriptReturn, K as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.
|
|
2
|
-
export { R as RenderDomHeadOptions } from './shared/unhead.
|
|
3
|
-
export { B as Base, a as BodyAttributes, H as HeadSafe, b as HtmlAttributes, N as Noscript, S as SafeBodyAttr, c as SafeHtmlAttr, d as SafeLink, e as SafeMeta, f as SafeNoscript, g as SafeScript, h as SafeStyle, i as Style } from './shared/unhead.
|
|
4
|
-
import { B as Booleanable } from './shared/unhead.
|
|
5
|
-
export { A as AlternateFeedLink, a as AlternateLanguageLink, b as AlternateLink, c as AlternateMediaLink, d as AlternateStylesheetLink, e as AppleTouchIconLink, f as ApplicationJsonScript, g as Arrayable, h as AuthorLink, i as BareAlternateLink, j as BodyAttributesWithoutEvents, k as BodyEvents, C as CanonicalLink, l as CharsetMeta, m as CompressionDictionaryLink, D as DataKeys, n as
|
|
1
|
+
export { A as ActiveHeadEntry, a as AsVoidFunctions, C as ClientHeadHooks, b as CoreHeadHooks, c as CreateClientHeadOptions, d as CreateHeadOptions, e as CreateServerHeadOptions, f as CreateStreamableServerHeadOptions, D as DOMHeadHooks, g as DomBeforeRenderCtx, h as DomRenderTagContext, i as DomState, E as EntryResolveCtx, j as EventHandlerOptions, H as HeadEntry, k as HeadEntryOptions, l as HeadHooks, m as HeadPlugin, n as HeadPluginInput, o as HeadPluginOptions, p as HeadRenderer, q as HookResult, P as PropResolver, R as RecordingEntry, r as RenderSSRHeadOptions, S as SSRHeadHooks, s as SSRHeadPayload, t as SSRRenderContext, u as ScriptInstance, v as ServerHeadHooks, w as ShouldRenderContext, x as SideEffectsRecord, y as SyncHookResult, U as Unhead, z as UseFunctionType, B as UseScriptContext, F as UseScriptInput, G as UseScriptOptions, I as UseScriptResolvedInput, J as UseScriptReturn, K as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.BRWMyYIW.js';
|
|
2
|
+
export { R as RenderDomHeadOptions } from './shared/unhead.YGcEMcjf.js';
|
|
3
|
+
export { B as Base, a as BodyAttributes, H as HeadSafe, b as HtmlAttributes, N as Noscript, S as SafeBodyAttr, c as SafeHtmlAttr, d as SafeLink, e as SafeMeta, f as SafeNoscript, g as SafeScript, h as SafeStyle, i as Style } from './shared/unhead.BhElfVXO.js';
|
|
4
|
+
import { B as Booleanable } from './shared/unhead.BJTN1X0i.js';
|
|
5
|
+
export { A as AlternateFeedLink, a as AlternateLanguageLink, b as AlternateLink, c as AlternateMediaLink, d as AlternateStylesheetLink, e as AppleTouchIconLink, f as ApplicationJsonScript, g as Arrayable, h as AuthorLink, i as BareAlternateLink, j as BodyAttributesWithoutEvents, k as BodyEvents, C as CanonicalLink, l as CharsetMeta, m as CompressionDictionaryLink, D as DataKeys, n as DeepReadonly, o as DeepResolvableProperties, p as DnsPrefetchLink, E as ExpectLink, q as ExternalScript, F as FaviconLink, G as GenericLink, r as GenericScript, s as GlobalAttributes, H as HasTemplateParams, t as HeadTag, u as HeadTagKeys, v as HelpLink, w as HttpEquivMeta, x as HttpEventAttributes, I as IconLink, y as ImportMapConfig, z as ImportMapScript, J as InferLink, K as InferScript, L as InlineModuleScript, M as InlineScript, N as InnerContent, O as InnerContentVal, P as InternalTagKey, Q as JsonLdScript, R as KnownLinkRel, S as KnownScriptType, T as LicenseLink, U as Link, V as LinkBase, W as LinkHttpEvents, X as ManifestLink, Y as MaskIconLink, Z as MaybeArray, _ as MaybeEventFnHandlers, $ as MeLink, a0 as Meta, a1 as MetaBase, a2 as MetaFlat, a3 as MetaGeneric, a4 as MetaNames, a5 as MetaProperties, a6 as ModuleScript, a7 as ModulepreloadLink, a8 as NameMeta, a9 as Never, aa as NextLink, ab as PingbackLink, ac as PreconnectLink, ad as PrefetchLink, ae as PreloadFontLink, af as PreloadImageLink, ag as PreloadLink, ah as PreloadLinkBase, ai as PreloadOtherLink, aj as PreloadScriptLink, ak as PreloadStyleLink, al as PrerenderLink, am as PrevLink, an as PrivacyPolicyLink, ao as ProcessesTemplateParams, ap as PropertyMeta, aq as RawInput, ar as ResolvableBase, as as ResolvableBodyAttributes, at as ResolvableHead, au as ResolvableHtmlAttributes, av as ResolvableLink, aw as ResolvableMeta, ax as ResolvableNoscript, ay as ResolvableProperties, az as ResolvableScript, aA as ResolvableStyle, aB as ResolvableTemplateParams, aC as ResolvableTitle, aD as ResolvableTitleTemplate, aE as ResolvableUnion, aF as ResolvableValue, aG as ResolvesDuplicates, aH as SchemaAugmentations, aI as Script, aJ as ScriptBase, aK as ScriptHttpEvents, aL as SearchLink, aM as SerializableHead, aN as SpeculationRules, aO as SpeculationRulesScript, aP as StringInnerContent, aQ as Stringable, aR as StylesheetLink, aS as TagKey, aT as TagPosition, aU as TagPriority, aV as TagUserProperties, aW as TemplateParams, aX as TemplateParamsAugmentations, aY as TermsOfServiceLink, aZ as UnheadBodyAttributesWithoutEvents, a_ as UnheadHtmlAttributes, a$ as UnheadMeta, b0 as UseHeadInput, b1 as UseSeoMetaInput, b2 as ValidTagPositions, b3 as WebmentionLink } from './shared/unhead.BJTN1X0i.js';
|
|
6
6
|
export { createSpyProxy } from './scripts.js';
|
|
7
|
-
export { u as useScript } from './shared/unhead.
|
|
7
|
+
export { u as useScript } from './shared/unhead.DH3TZMHc.js';
|
|
8
8
|
import 'hookable';
|
|
9
9
|
|
|
10
10
|
interface AriaAttributes {
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { P as PropResolver, U as Unhead } from './shared/unhead.
|
|
1
|
+
import { t as HeadTag, a2 as MetaFlat, at as ResolvableHead, aW as TemplateParams } from './shared/unhead.BJTN1X0i.mjs';
|
|
2
|
+
import { P as PropResolver, U as Unhead } from './shared/unhead.DsHmk_XC.mjs';
|
|
3
3
|
import 'hookable';
|
|
4
4
|
|
|
5
5
|
declare const SelfClosingTags: Set<string>;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { P as PropResolver, U as Unhead } from './shared/unhead.
|
|
1
|
+
import { t as HeadTag, a2 as MetaFlat, at as ResolvableHead, aW as TemplateParams } from './shared/unhead.BJTN1X0i.js';
|
|
2
|
+
import { P as PropResolver, U as Unhead } from './shared/unhead.BRWMyYIW.js';
|
|
3
3
|
import 'hookable';
|
|
4
4
|
|
|
5
5
|
declare const SelfClosingTags: Set<string>;
|