Comparing version 0.0.1 to 0.0.2
@@ -1,2 +0,2 @@ | ||
import { a as HeadClient } from './types-e30878c0.js'; | ||
import { a as HeadClient } from './types-011e5fbf.js'; | ||
import 'hookable'; | ||
@@ -6,7 +6,20 @@ import '@unhead/schema'; | ||
interface RenderDomHeadOptions { | ||
/** | ||
* Document to use for rendering. Allows stubbing for testing. | ||
*/ | ||
document?: Document; | ||
} | ||
declare const renderDOMHead: <T extends HeadClient<any>>(head: T, options?: RenderDomHeadOptions) => Promise<void>; | ||
declare const debouncedUpdateDom: <T extends HeadClient<any>>(delayedFn: (fn: () => void) => void, head: T, options?: RenderDomHeadOptions) => Promise<void>; | ||
/** | ||
* Render the head tags to the DOM. | ||
*/ | ||
declare function renderDOMHead<T extends HeadClient<any>>(head: T, options?: RenderDomHeadOptions): Promise<void>; | ||
/** | ||
* Global instance of the dom update promise. Used for debounding head updates. | ||
*/ | ||
declare let domUpdatePromise: Promise<void> | null; | ||
/** | ||
* Queue a debounced update of the DOM head. | ||
*/ | ||
declare function debouncedRenderDOMHead<T extends HeadClient<any>>(delayedFn: (fn: () => void) => void, head: T, options?: RenderDomHeadOptions): Promise<void>; | ||
export { RenderDomHeadOptions, debouncedUpdateDom, renderDOMHead }; | ||
export { RenderDomHeadOptions, debouncedRenderDOMHead, domUpdatePromise, renderDOMHead }; |
import * as _unhead_schema from '@unhead/schema'; | ||
import { Head, Meta, Link, Script, Style, Base, HtmlAttributes, BodyAttributes, Noscript } from '@unhead/schema'; | ||
import { H as HeadPlugin, C as CreateHeadOptions, a as HeadClient, b as HeadEntryOptions } from './types-e30878c0.js'; | ||
export { A as ActiveHeadEntry, C as CreateHeadOptions, D as DomRenderTagContext, a as HeadClient, c as HeadEntry, b as HeadEntryOptions, e as HeadHooks, H as HeadPlugin, R as RuntimeMode, S as SideEffectsRecord, d as defineHeadPlugin } from './types-e30878c0.js'; | ||
import { H as HeadPlugin, C as CreateHeadOptions, a as HeadClient, b as HeadEntryOptions } from './types-011e5fbf.js'; | ||
export { A as ActiveHeadEntry, C as CreateHeadOptions, D as DomRenderTagContext, E as EntryResolveCtx, a as HeadClient, c as HeadEntry, b as HeadEntryOptions, f as HeadHooks, H as HeadPlugin, e as HookResult, R as RuntimeMode, S as SideEffectsRecord, d as defineHeadPlugin } from './types-011e5fbf.js'; | ||
import 'hookable'; | ||
declare const dedupePlugin: HeadPlugin<_unhead_schema.Head<_unhead_schema.SchemaAugmentations>>; | ||
declare const DedupesTagsPlugin: HeadPlugin<_unhead_schema.Head<_unhead_schema.SchemaAugmentations>>; | ||
declare const sortPlugin: HeadPlugin<_unhead_schema.Head<_unhead_schema.SchemaAugmentations>>; | ||
declare const SortTagsPlugin: HeadPlugin<_unhead_schema.Head<_unhead_schema.SchemaAugmentations>>; | ||
declare const titleTemplatePlugin: HeadPlugin<_unhead_schema.Head<_unhead_schema.SchemaAugmentations>>; | ||
declare const TitleTemplatePlugin: HeadPlugin<_unhead_schema.Head<_unhead_schema.SchemaAugmentations>>; | ||
declare const hydratesStatePlugin: HeadPlugin<_unhead_schema.Head<_unhead_schema.SchemaAugmentations>>; | ||
declare const HydratesStatePlugin: HeadPlugin<_unhead_schema.Head<_unhead_schema.SchemaAugmentations>>; | ||
@@ -35,4 +35,5 @@ declare function createHead<T extends {} = Head>(options?: CreateHeadOptions<T>): HeadClient<T>; | ||
declare function asArray<T>(value: Arrayable<T>): T[]; | ||
declare const TagConfigKeys: string[]; | ||
declare function hashCode(s: string): string; | ||
export { Arrayable, activeHead, asArray, createHead, dedupePlugin, getActiveHead, hashCode, hydratesStatePlugin, setActiveHead, sortPlugin, titleTemplatePlugin, useBase, useBodyAttrs, useHead, useHtmlAttrs, useLink, useMeta, useNoscript, useScript, useStyle, useTitle, useTitleTemplate }; | ||
export { Arrayable, DedupesTagsPlugin, HydratesStatePlugin, SortTagsPlugin, TagConfigKeys, TitleTemplatePlugin, activeHead, asArray, createHead, getActiveHead, hashCode, setActiveHead, useBase, useBodyAttrs, useHead, useHtmlAttrs, useLink, useMeta, useNoscript, useScript, useStyle, useTitle, useTitleTemplate }; |
@@ -1,3 +0,3 @@ | ||
export { f as SSRHeadPayload, r as renderSSRHead } from './types-e30878c0.js'; | ||
export { g as SSRHeadPayload, r as renderSSRHead } from './types-011e5fbf.js'; | ||
import 'hookable'; | ||
import '@unhead/schema'; |
{ | ||
"name": "unhead", | ||
"type": "module", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"packageManager": "pnpm@7.14.0", | ||
@@ -39,5 +39,4 @@ "author": "Harlan Wilton <harlan@harlanzw.com>", | ||
"dependencies": { | ||
"@unhead/schema": "0.0.1", | ||
"@unhead/schema": "0.0.2", | ||
"hookable": "^5.4.1", | ||
"unctx": "^2.0.2", | ||
"zhead": "1.0.0-beta.4" | ||
@@ -44,0 +43,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
19069
3
519
+ Added@unhead/schema@0.0.2(transitive)
- Removedunctx@^2.0.2
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@types/estree@1.0.6(transitive)
- Removed@unhead/schema@0.0.1(transitive)
- Removedacorn@8.13.0(transitive)
- Removedestree-walker@3.0.3(transitive)
- Removedmagic-string@0.30.12(transitive)
- Removedunctx@2.3.1(transitive)
- Removedunplugin@1.14.1(transitive)
- Removedwebpack-virtual-modules@0.6.2(transitive)
Updated@unhead/schema@0.0.2