@unhead/schema
Advanced tools
Comparing version 1.8.0-beta.2 to 1.8.0-beta.5
@@ -146,3 +146,10 @@ import { MaybePromiseProps, MergeHead, BaseBodyAttributes, HtmlAttributes as HtmlAttributes$1, Meta as Meta$1, Stringable, Merge, Base as Base$1, DefinedValueOrEmptyObject, LinkBase, HttpEventAttributes, DataKeys, Style as Style$1, ScriptBase, Noscript as Noscript$1, BodyEvents, MetaFlatInput } from 'zhead'; | ||
}; | ||
type HeadPlugin = HeadPluginOptions | ((head: Unhead) => HeadPluginOptions); | ||
type HeadPluginInput = (HeadPluginOptions & { | ||
key?: string; | ||
}) | ((head: Unhead) => HeadPluginOptions & { | ||
key?: string; | ||
}); | ||
type HeadPlugin = HeadPluginOptions & { | ||
key?: string; | ||
}; | ||
/** | ||
@@ -168,3 +175,3 @@ * An active head entry provides an API to manipulate it. | ||
document?: Document; | ||
plugins?: HeadPlugin[]; | ||
plugins?: HeadPluginInput[]; | ||
hooks?: NestedHooks<HeadHooks>; | ||
@@ -179,2 +186,6 @@ } | ||
/** | ||
* Registered plugins. | ||
*/ | ||
plugins: HeadPlugin[]; | ||
/** | ||
* The active head entries. | ||
@@ -202,3 +213,3 @@ */ | ||
*/ | ||
use: (plugin: HeadPlugin) => void; | ||
use: (plugin: HeadPluginInput) => void; | ||
/** | ||
@@ -300,3 +311,3 @@ * Is it a server-side render context. | ||
type TemplateParams = { | ||
separator?: string; | ||
separator?: '|' | '-' | 'ยท' | string; | ||
} & Record<string, null | string | Record<string, string>>; | ||
@@ -512,2 +523,2 @@ interface ProcessesTemplateParams { | ||
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, ScriptInstance, ShouldRenderContext, SideEffectsRecord, Style, TagKey, TagPosition, TagPriority, TagUserProperties, TemplateParams, Title, TitleTemplate, Unhead, UseScriptInput, UseScriptOptions, UseScriptStatus, UseSeoMetaInput, UserAttributesConfig, UserTagConfigWithoutInnerContent, ValidTagPositions }; | ||
export type { ActiveHeadEntry, Base, BaseBodyAttr, BaseHtmlAttr, BaseMeta, BodyAttr, BodyAttributes, CreateHeadOptions, DomBeforeRenderCtx, DomRenderTagContext, DomState, EntryAugmentation, EntryResolveCtx, HasTemplateParams, Head, HeadEntry, HeadEntryOptions, HeadHooks, HeadPlugin, HeadPluginInput, 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, ScriptInstance, ShouldRenderContext, SideEffectsRecord, Style, TagKey, TagPosition, TagPriority, TagUserProperties, TemplateParams, Title, TitleTemplate, Unhead, UseScriptInput, UseScriptOptions, UseScriptStatus, UseSeoMetaInput, UserAttributesConfig, UserTagConfigWithoutInnerContent, ValidTagPositions }; |
{ | ||
"name": "@unhead/schema", | ||
"type": "module", | ||
"version": "1.8.0-beta.2", | ||
"version": "1.8.0-beta.5", | ||
"author": "Harlan Wilton <harlan@harlanzw.com>", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61949
523