@unhead/schema 1.6.1 → 1.6.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/index.d.cts +10 -4
- package/dist/index.d.mts +10 -4
- package/dist/index.d.ts +10 -4
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -136,7 +136,7 @@ interface CreateHeadOptions {
|
|
|
136
136
|
plugins?: HeadPlugin[];
|
|
137
137
|
hooks?: NestedHooks<HeadHooks>;
|
|
138
138
|
}
|
|
139
|
-
interface HeadEntryOptions extends TagPosition, TagPriority {
|
|
139
|
+
interface HeadEntryOptions extends TagPosition, TagPriority, ProcessesTemplateParams {
|
|
140
140
|
mode?: RuntimeMode;
|
|
141
141
|
transform?: (input: unknown) => unknown;
|
|
142
142
|
head?: Unhead;
|
|
@@ -252,17 +252,21 @@ interface TagPriority {
|
|
|
252
252
|
*/
|
|
253
253
|
tagPriority?: number | 'critical' | 'high' | 'low' | `before:${string}` | `after:${string}`;
|
|
254
254
|
}
|
|
255
|
-
type TagUserProperties = TagPriority & TagPosition & MaybePromiseProps<InnerContent> & ResolvesDuplicates;
|
|
255
|
+
type TagUserProperties = TagPriority & TagPosition & MaybePromiseProps<InnerContent> & ResolvesDuplicates & ProcessesTemplateParams;
|
|
256
256
|
type TagKey = keyof Head;
|
|
257
257
|
type TemplateParams = {
|
|
258
258
|
separator?: string;
|
|
259
259
|
} & Record<string, null | string | Record<string, string>>;
|
|
260
|
+
interface ProcessesTemplateParams {
|
|
261
|
+
processTemplateParams?: boolean;
|
|
262
|
+
}
|
|
260
263
|
interface HasTemplateParams {
|
|
261
264
|
templateParams?: TemplateParams;
|
|
262
265
|
}
|
|
263
266
|
interface HeadTag extends TagPriority, TagPosition, ResolvesDuplicates, HasTemplateParams {
|
|
264
267
|
tag: TagKey;
|
|
265
268
|
props: Record<string, string>;
|
|
269
|
+
processTemplateParams?: boolean;
|
|
266
270
|
innerHTML?: string;
|
|
267
271
|
textContent?: string;
|
|
268
272
|
/**
|
|
@@ -295,7 +299,9 @@ type HeadTagKeys = (keyof HeadTag)[];
|
|
|
295
299
|
type Never<T> = {
|
|
296
300
|
[P in keyof T]?: never;
|
|
297
301
|
};
|
|
298
|
-
type UserTagConfigWithoutInnerContent = TagPriority & TagPosition & ResolvesDuplicates & Never<InnerContent
|
|
302
|
+
type UserTagConfigWithoutInnerContent = TagPriority & TagPosition & ResolvesDuplicates & Never<InnerContent> & {
|
|
303
|
+
processTemplateParams?: false;
|
|
304
|
+
};
|
|
299
305
|
type UserAttributesConfig = ResolvesDuplicates & TagPriority & Never<InnerContent & TagPosition>;
|
|
300
306
|
interface SchemaAugmentations extends MergeHead {
|
|
301
307
|
title: TagPriority;
|
|
@@ -456,4 +462,4 @@ interface HeadSafe extends Pick<Head, 'title' | 'titleTemplate' | 'templateParam
|
|
|
456
462
|
bodyAttrs?: SafeBodyAttr;
|
|
457
463
|
}
|
|
458
464
|
|
|
459
|
-
export type { ActiveHeadEntry, Base, BaseBodyAttr, BaseHtmlAttr, BaseMeta, BodyAttr, BodyAttributes, CreateHeadOptions, DomBeforeRenderCtx, DomRenderTagContext, DomState, EntryAugmentation, EntryResolveCtx, HasTemplateParams, Head, HeadEntry, HeadEntryOptions, HeadHooks, HeadPlugin, HeadPluginOptions, HeadSafe, HeadTag, HeadTagKeys, HeadUtils, HookResult, HtmlAttr, HtmlAttributes, InnerContent, InnerContentVal, Link, MaybeArray, MaybeFunctionEntries, Meta, Never, Noscript, ResolvesDuplicates, RuntimeMode, SSRHeadPayload, SSRRenderContext, SafeBodyAttr, SafeHtmlAttr, SafeLink, SafeMeta, SafeNoscript, SafeScript, SchemaAugmentations, Script, ShouldRenderContext, SideEffectsRecord, Style, TagKey, TagPosition, TagPriority, TagUserProperties, TemplateParams, Title, TitleTemplate, Unhead, UseSeoMetaInput, UserAttributesConfig, UserTagConfigWithoutInnerContent, ValidTagPositions };
|
|
465
|
+
export type { ActiveHeadEntry, Base, BaseBodyAttr, BaseHtmlAttr, BaseMeta, BodyAttr, BodyAttributes, CreateHeadOptions, DomBeforeRenderCtx, DomRenderTagContext, DomState, EntryAugmentation, EntryResolveCtx, HasTemplateParams, Head, HeadEntry, HeadEntryOptions, HeadHooks, HeadPlugin, HeadPluginOptions, HeadSafe, HeadTag, HeadTagKeys, HeadUtils, HookResult, HtmlAttr, HtmlAttributes, InnerContent, InnerContentVal, Link, MaybeArray, MaybeFunctionEntries, Meta, Never, Noscript, ProcessesTemplateParams, ResolvesDuplicates, RuntimeMode, SSRHeadPayload, SSRRenderContext, SafeBodyAttr, SafeHtmlAttr, SafeLink, SafeMeta, SafeNoscript, SafeScript, SchemaAugmentations, Script, ShouldRenderContext, SideEffectsRecord, Style, TagKey, TagPosition, TagPriority, TagUserProperties, TemplateParams, Title, TitleTemplate, Unhead, UseSeoMetaInput, UserAttributesConfig, UserTagConfigWithoutInnerContent, ValidTagPositions };
|
package/dist/index.d.mts
CHANGED
|
@@ -136,7 +136,7 @@ interface CreateHeadOptions {
|
|
|
136
136
|
plugins?: HeadPlugin[];
|
|
137
137
|
hooks?: NestedHooks<HeadHooks>;
|
|
138
138
|
}
|
|
139
|
-
interface HeadEntryOptions extends TagPosition, TagPriority {
|
|
139
|
+
interface HeadEntryOptions extends TagPosition, TagPriority, ProcessesTemplateParams {
|
|
140
140
|
mode?: RuntimeMode;
|
|
141
141
|
transform?: (input: unknown) => unknown;
|
|
142
142
|
head?: Unhead;
|
|
@@ -252,17 +252,21 @@ interface TagPriority {
|
|
|
252
252
|
*/
|
|
253
253
|
tagPriority?: number | 'critical' | 'high' | 'low' | `before:${string}` | `after:${string}`;
|
|
254
254
|
}
|
|
255
|
-
type TagUserProperties = TagPriority & TagPosition & MaybePromiseProps<InnerContent> & ResolvesDuplicates;
|
|
255
|
+
type TagUserProperties = TagPriority & TagPosition & MaybePromiseProps<InnerContent> & ResolvesDuplicates & ProcessesTemplateParams;
|
|
256
256
|
type TagKey = keyof Head;
|
|
257
257
|
type TemplateParams = {
|
|
258
258
|
separator?: string;
|
|
259
259
|
} & Record<string, null | string | Record<string, string>>;
|
|
260
|
+
interface ProcessesTemplateParams {
|
|
261
|
+
processTemplateParams?: boolean;
|
|
262
|
+
}
|
|
260
263
|
interface HasTemplateParams {
|
|
261
264
|
templateParams?: TemplateParams;
|
|
262
265
|
}
|
|
263
266
|
interface HeadTag extends TagPriority, TagPosition, ResolvesDuplicates, HasTemplateParams {
|
|
264
267
|
tag: TagKey;
|
|
265
268
|
props: Record<string, string>;
|
|
269
|
+
processTemplateParams?: boolean;
|
|
266
270
|
innerHTML?: string;
|
|
267
271
|
textContent?: string;
|
|
268
272
|
/**
|
|
@@ -295,7 +299,9 @@ type HeadTagKeys = (keyof HeadTag)[];
|
|
|
295
299
|
type Never<T> = {
|
|
296
300
|
[P in keyof T]?: never;
|
|
297
301
|
};
|
|
298
|
-
type UserTagConfigWithoutInnerContent = TagPriority & TagPosition & ResolvesDuplicates & Never<InnerContent
|
|
302
|
+
type UserTagConfigWithoutInnerContent = TagPriority & TagPosition & ResolvesDuplicates & Never<InnerContent> & {
|
|
303
|
+
processTemplateParams?: false;
|
|
304
|
+
};
|
|
299
305
|
type UserAttributesConfig = ResolvesDuplicates & TagPriority & Never<InnerContent & TagPosition>;
|
|
300
306
|
interface SchemaAugmentations extends MergeHead {
|
|
301
307
|
title: TagPriority;
|
|
@@ -456,4 +462,4 @@ interface HeadSafe extends Pick<Head, 'title' | 'titleTemplate' | 'templateParam
|
|
|
456
462
|
bodyAttrs?: SafeBodyAttr;
|
|
457
463
|
}
|
|
458
464
|
|
|
459
|
-
export type { ActiveHeadEntry, Base, BaseBodyAttr, BaseHtmlAttr, BaseMeta, BodyAttr, BodyAttributes, CreateHeadOptions, DomBeforeRenderCtx, DomRenderTagContext, DomState, EntryAugmentation, EntryResolveCtx, HasTemplateParams, Head, HeadEntry, HeadEntryOptions, HeadHooks, HeadPlugin, HeadPluginOptions, HeadSafe, HeadTag, HeadTagKeys, HeadUtils, HookResult, HtmlAttr, HtmlAttributes, InnerContent, InnerContentVal, Link, MaybeArray, MaybeFunctionEntries, Meta, Never, Noscript, ResolvesDuplicates, RuntimeMode, SSRHeadPayload, SSRRenderContext, SafeBodyAttr, SafeHtmlAttr, SafeLink, SafeMeta, SafeNoscript, SafeScript, SchemaAugmentations, Script, ShouldRenderContext, SideEffectsRecord, Style, TagKey, TagPosition, TagPriority, TagUserProperties, TemplateParams, Title, TitleTemplate, Unhead, UseSeoMetaInput, UserAttributesConfig, UserTagConfigWithoutInnerContent, ValidTagPositions };
|
|
465
|
+
export type { ActiveHeadEntry, Base, BaseBodyAttr, BaseHtmlAttr, BaseMeta, BodyAttr, BodyAttributes, CreateHeadOptions, DomBeforeRenderCtx, DomRenderTagContext, DomState, EntryAugmentation, EntryResolveCtx, HasTemplateParams, Head, HeadEntry, HeadEntryOptions, HeadHooks, HeadPlugin, HeadPluginOptions, HeadSafe, HeadTag, HeadTagKeys, HeadUtils, HookResult, HtmlAttr, HtmlAttributes, InnerContent, InnerContentVal, Link, MaybeArray, MaybeFunctionEntries, Meta, Never, Noscript, ProcessesTemplateParams, ResolvesDuplicates, RuntimeMode, SSRHeadPayload, SSRRenderContext, SafeBodyAttr, SafeHtmlAttr, SafeLink, SafeMeta, SafeNoscript, SafeScript, SchemaAugmentations, Script, ShouldRenderContext, SideEffectsRecord, Style, TagKey, TagPosition, TagPriority, TagUserProperties, TemplateParams, Title, TitleTemplate, Unhead, UseSeoMetaInput, UserAttributesConfig, UserTagConfigWithoutInnerContent, ValidTagPositions };
|
package/dist/index.d.ts
CHANGED
|
@@ -136,7 +136,7 @@ interface CreateHeadOptions {
|
|
|
136
136
|
plugins?: HeadPlugin[];
|
|
137
137
|
hooks?: NestedHooks<HeadHooks>;
|
|
138
138
|
}
|
|
139
|
-
interface HeadEntryOptions extends TagPosition, TagPriority {
|
|
139
|
+
interface HeadEntryOptions extends TagPosition, TagPriority, ProcessesTemplateParams {
|
|
140
140
|
mode?: RuntimeMode;
|
|
141
141
|
transform?: (input: unknown) => unknown;
|
|
142
142
|
head?: Unhead;
|
|
@@ -252,17 +252,21 @@ interface TagPriority {
|
|
|
252
252
|
*/
|
|
253
253
|
tagPriority?: number | 'critical' | 'high' | 'low' | `before:${string}` | `after:${string}`;
|
|
254
254
|
}
|
|
255
|
-
type TagUserProperties = TagPriority & TagPosition & MaybePromiseProps<InnerContent> & ResolvesDuplicates;
|
|
255
|
+
type TagUserProperties = TagPriority & TagPosition & MaybePromiseProps<InnerContent> & ResolvesDuplicates & ProcessesTemplateParams;
|
|
256
256
|
type TagKey = keyof Head;
|
|
257
257
|
type TemplateParams = {
|
|
258
258
|
separator?: string;
|
|
259
259
|
} & Record<string, null | string | Record<string, string>>;
|
|
260
|
+
interface ProcessesTemplateParams {
|
|
261
|
+
processTemplateParams?: boolean;
|
|
262
|
+
}
|
|
260
263
|
interface HasTemplateParams {
|
|
261
264
|
templateParams?: TemplateParams;
|
|
262
265
|
}
|
|
263
266
|
interface HeadTag extends TagPriority, TagPosition, ResolvesDuplicates, HasTemplateParams {
|
|
264
267
|
tag: TagKey;
|
|
265
268
|
props: Record<string, string>;
|
|
269
|
+
processTemplateParams?: boolean;
|
|
266
270
|
innerHTML?: string;
|
|
267
271
|
textContent?: string;
|
|
268
272
|
/**
|
|
@@ -295,7 +299,9 @@ type HeadTagKeys = (keyof HeadTag)[];
|
|
|
295
299
|
type Never<T> = {
|
|
296
300
|
[P in keyof T]?: never;
|
|
297
301
|
};
|
|
298
|
-
type UserTagConfigWithoutInnerContent = TagPriority & TagPosition & ResolvesDuplicates & Never<InnerContent
|
|
302
|
+
type UserTagConfigWithoutInnerContent = TagPriority & TagPosition & ResolvesDuplicates & Never<InnerContent> & {
|
|
303
|
+
processTemplateParams?: false;
|
|
304
|
+
};
|
|
299
305
|
type UserAttributesConfig = ResolvesDuplicates & TagPriority & Never<InnerContent & TagPosition>;
|
|
300
306
|
interface SchemaAugmentations extends MergeHead {
|
|
301
307
|
title: TagPriority;
|
|
@@ -456,4 +462,4 @@ interface HeadSafe extends Pick<Head, 'title' | 'titleTemplate' | 'templateParam
|
|
|
456
462
|
bodyAttrs?: SafeBodyAttr;
|
|
457
463
|
}
|
|
458
464
|
|
|
459
|
-
export type { ActiveHeadEntry, Base, BaseBodyAttr, BaseHtmlAttr, BaseMeta, BodyAttr, BodyAttributes, CreateHeadOptions, DomBeforeRenderCtx, DomRenderTagContext, DomState, EntryAugmentation, EntryResolveCtx, HasTemplateParams, Head, HeadEntry, HeadEntryOptions, HeadHooks, HeadPlugin, HeadPluginOptions, HeadSafe, HeadTag, HeadTagKeys, HeadUtils, HookResult, HtmlAttr, HtmlAttributes, InnerContent, InnerContentVal, Link, MaybeArray, MaybeFunctionEntries, Meta, Never, Noscript, ResolvesDuplicates, RuntimeMode, SSRHeadPayload, SSRRenderContext, SafeBodyAttr, SafeHtmlAttr, SafeLink, SafeMeta, SafeNoscript, SafeScript, SchemaAugmentations, Script, ShouldRenderContext, SideEffectsRecord, Style, TagKey, TagPosition, TagPriority, TagUserProperties, TemplateParams, Title, TitleTemplate, Unhead, UseSeoMetaInput, UserAttributesConfig, UserTagConfigWithoutInnerContent, ValidTagPositions };
|
|
465
|
+
export type { ActiveHeadEntry, Base, BaseBodyAttr, BaseHtmlAttr, BaseMeta, BodyAttr, BodyAttributes, CreateHeadOptions, DomBeforeRenderCtx, DomRenderTagContext, DomState, EntryAugmentation, EntryResolveCtx, HasTemplateParams, Head, HeadEntry, HeadEntryOptions, HeadHooks, HeadPlugin, HeadPluginOptions, HeadSafe, HeadTag, HeadTagKeys, HeadUtils, HookResult, HtmlAttr, HtmlAttributes, InnerContent, InnerContentVal, Link, MaybeArray, MaybeFunctionEntries, Meta, Never, Noscript, ProcessesTemplateParams, ResolvesDuplicates, RuntimeMode, SSRHeadPayload, SSRRenderContext, SafeBodyAttr, SafeHtmlAttr, SafeLink, SafeMeta, SafeNoscript, SafeScript, SchemaAugmentations, Script, ShouldRenderContext, SideEffectsRecord, Style, TagKey, TagPosition, TagPriority, TagUserProperties, TemplateParams, Title, TitleTemplate, Unhead, UseSeoMetaInput, UserAttributesConfig, UserTagConfigWithoutInnerContent, ValidTagPositions };
|