@unhead/schema 0.6.6 → 0.6.8

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +5 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -23,13 +23,14 @@ interface ResolvesDuplicates {
23
23
  */
24
24
  tagDuplicateStrategy?: 'replace' | 'merge';
25
25
  }
26
+ declare type ValidTagPositions = 'head' | 'bodyClose' | 'bodyOpen';
26
27
  interface TagPosition {
27
28
  /**
28
29
  * Specify where to render the tag.
29
30
  *
30
31
  * @default 'head'
31
32
  */
32
- tagPosition?: 'head' | 'bodyClose' | 'bodyOpen';
33
+ tagPosition?: ValidTagPositions;
33
34
  /**
34
35
  * Render the tag before the body close.
35
36
  *
@@ -229,9 +230,10 @@ interface EntryResolveCtx<T> {
229
230
  interface DomRenderTagContext {
230
231
  $el?: Element | null;
231
232
  shouldRender: boolean;
233
+ renderId: string;
232
234
  tag: HeadTag;
233
235
  entry?: HeadEntry<any>;
234
- queuedSideEffects: SideEffectsRecord;
236
+ staleSideEffects: SideEffectsRecord;
235
237
  }
236
238
  interface BeforeRenderContext {
237
239
  shouldRender: boolean;
@@ -350,4 +352,4 @@ interface Unhead<Input extends {} = Head> {
350
352
  _elMap: Record<string, Element>;
351
353
  }
352
354
 
353
- export { ActiveHeadEntry, Base, BaseBodyAttr, BaseHtmlAttr, BeforeRenderContext, BodyAttributes, CreateHeadOptions, DomRenderTagContext, EntryAugmentation, EntryResolveCtx, Head, HeadEntry, HeadEntryOptions, HeadHooks, HeadPlugin, HeadTag, HeadTagKeys, HookResult, HtmlAttributes, InnerContent, Link, MaybeArray, MaybeFunctionEntries, Meta, Never, Noscript, ResolvesDuplicates, RuntimeMode, SSRHeadPayload, SSRRenderContext, SchemaAugmentations, Script, SideEffectsRecord, Style, TagInternalProperties, TagPosition, TagPriority, TagUserProperties, Title, TitleTemplate, Unhead, UserAttributesConfig, UserTagConfigWithoutInnerContent };
355
+ export { ActiveHeadEntry, Base, BaseBodyAttr, BaseHtmlAttr, BeforeRenderContext, BodyAttributes, CreateHeadOptions, DomRenderTagContext, EntryAugmentation, EntryResolveCtx, Head, HeadEntry, HeadEntryOptions, HeadHooks, HeadPlugin, HeadTag, HeadTagKeys, HookResult, HtmlAttributes, InnerContent, Link, MaybeArray, MaybeFunctionEntries, Meta, Never, Noscript, ResolvesDuplicates, RuntimeMode, SSRHeadPayload, SSRRenderContext, SchemaAugmentations, Script, SideEffectsRecord, Style, TagInternalProperties, TagPosition, TagPriority, TagUserProperties, Title, TitleTemplate, Unhead, UserAttributesConfig, UserTagConfigWithoutInnerContent, ValidTagPositions };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/schema",
3
3
  "type": "module",
4
- "version": "0.6.6",
4
+ "version": "0.6.8",
5
5
  "packageManager": "pnpm@7.14.0",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",