@unhead/react 2.0.0-alpha.16 → 2.0.0-alpha.17

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 CHANGED
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  import * as unhead_types from 'unhead/types';
4
4
  import { MergeHead, CreateClientHeadOptions } from 'unhead/types';
5
5
  export { renderDOMHead } from 'unhead/client';
6
- import { R as ReactUnhead } from './shared/react.Cz8ob63p.mjs';
6
+ import { R as ReactUnhead } from './shared/react.DwbUwhqf.mjs';
7
7
 
8
8
  declare function createHead<T extends MergeHead>(options?: Omit<CreateClientHeadOptions, 'propResolvers'>): ReactUnhead<T>;
9
9
  declare function UnheadProvider({ children, head }: {
package/dist/client.d.ts CHANGED
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  import * as unhead_types from 'unhead/types';
4
4
  import { MergeHead, CreateClientHeadOptions } from 'unhead/types';
5
5
  export { renderDOMHead } from 'unhead/client';
6
- import { R as ReactUnhead } from './shared/react.Cz8ob63p.js';
6
+ import { R as ReactUnhead } from './shared/react.DwbUwhqf.js';
7
7
 
8
8
  declare function createHead<T extends MergeHead>(options?: Omit<CreateClientHeadOptions, 'propResolvers'>): ReactUnhead<T>;
9
9
  declare function UnheadProvider({ children, head }: {
package/dist/index.d.mts CHANGED
@@ -1,10 +1,10 @@
1
1
  import react__default, { ReactNode } from 'react';
2
2
  import * as unhead_types from 'unhead/types';
3
3
  import { MergeHead, HeadEntryOptions, ActiveHeadEntry, HeadSafe } from 'unhead/types';
4
- import { U as UseHeadInput, a as UseSeoMetaInput } from './shared/react.Cz8ob63p.mjs';
4
+ import { U as UseHeadInput, a as UseSeoMetaInput } from './shared/react.DwbUwhqf.mjs';
5
5
 
6
6
  declare const hookImports: {
7
- '@unhead/vue': string[];
7
+ '@unhead/react': string[];
8
8
  };
9
9
 
10
10
  interface HeadProps {
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import react__default, { ReactNode } from 'react';
2
2
  import * as unhead_types from 'unhead/types';
3
3
  import { MergeHead, HeadEntryOptions, ActiveHeadEntry, HeadSafe } from 'unhead/types';
4
- import { U as UseHeadInput, a as UseSeoMetaInput } from './shared/react.Cz8ob63p.js';
4
+ import { U as UseHeadInput, a as UseSeoMetaInput } from './shared/react.DwbUwhqf.js';
5
5
 
6
6
  declare const hookImports: {
7
- '@unhead/vue': string[];
7
+ '@unhead/react': string[];
8
8
  };
9
9
 
10
10
  interface HeadProps {
package/dist/index.mjs CHANGED
@@ -1,17 +1,15 @@
1
- import React, { useContext, useEffect, useRef } from 'react';
1
+ import React, { useEffect, useContext, useRef } from 'react';
2
2
  import { ValidHeadTags, TagsWithInnerContent, HasElementTags } from 'unhead/utils';
3
3
  import { SafeInputPlugin, FlatMetaPlugin } from 'unhead/plugins';
4
4
  import { U as UnheadContext } from './shared/react.DF9T1fqs.mjs';
5
5
 
6
6
  const hookImports = {
7
- "@unhead/vue": [
7
+ "@unhead/react": [
8
8
  "useUnhead",
9
9
  "useHead",
10
10
  "useSeoMeta",
11
11
  "useHeadSafe",
12
- "useServerHead",
13
- "useServerSeoMeta",
14
- "useServerHeadSafe"
12
+ "useServerHead"
15
13
  ]
16
14
  };
17
15
 
package/dist/server.d.mts CHANGED
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  import * as unhead_types from 'unhead/types';
4
4
  import { MergeHead, CreateServerHeadOptions } from 'unhead/types';
5
5
  export { SSRHeadPayload, extractUnheadInputFromHtml, renderSSRHead, transformHtmlTemplate } from 'unhead/server';
6
- import { R as ReactUnhead } from './shared/react.Cz8ob63p.mjs';
6
+ import { R as ReactUnhead } from './shared/react.DwbUwhqf.mjs';
7
7
 
8
8
  declare function createHead<T extends MergeHead>(options?: Omit<CreateServerHeadOptions, 'propResolvers'>): ReactUnhead<T>;
9
9
  declare function UnheadProvider({ children, value }: {
package/dist/server.d.ts CHANGED
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  import * as unhead_types from 'unhead/types';
4
4
  import { MergeHead, CreateServerHeadOptions } from 'unhead/types';
5
5
  export { SSRHeadPayload, extractUnheadInputFromHtml, renderSSRHead, transformHtmlTemplate } from 'unhead/server';
6
- import { R as ReactUnhead } from './shared/react.Cz8ob63p.js';
6
+ import { R as ReactUnhead } from './shared/react.DwbUwhqf.js';
7
7
 
8
8
  declare function createHead<T extends MergeHead>(options?: Omit<CreateServerHeadOptions, 'propResolvers'>): ReactUnhead<T>;
9
9
  declare function UnheadProvider({ children, value }: {
@@ -1,5 +1,5 @@
1
1
  import { RefObject } from 'react';
2
- import { Falsey, BaseHtmlAttr, MaybeArray, BaseBodyAttr, SchemaAugmentations, TitleTemplate as TitleTemplate$1, EntryAugmentation, Base as Base$1, DefinedValueOrEmptyObject, LinkBase, DataKeys, MaybeEventFnHandlers, HttpEventAttributes, BaseMeta, Style as Style$1, ScriptBase, Noscript as Noscript$1, BodyEvents, MergeHead, MetaFlatInput, HeadEntryOptions, Unhead } from 'unhead/types';
2
+ import { Falsey, MergeHead, SchemaAugmentations, TitleTemplate as TitleTemplate$1, EntryAugmentation, Base as Base$1, DefinedValueOrEmptyObject, LinkBase, DataKeys, MaybeEventFnHandlers, HttpEventAttributes, BaseMeta, Style as Style$1, ScriptBase, Noscript as Noscript$1, BaseHtmlAttr, MaybeArray, BaseBodyAttr, BodyEvents, MetaFlatInput, Unhead, HeadEntryOptions } from 'unhead/types';
3
3
 
4
4
  type MaybeComputedRef<T> = T | (() => T) | RefObject<T>;
5
5
  type ResolvableArray<T> = MaybeComputedRef<MaybeComputedRef<T>[]>;
@@ -1,5 +1,5 @@
1
1
  import { RefObject } from 'react';
2
- import { Falsey, BaseHtmlAttr, MaybeArray, BaseBodyAttr, SchemaAugmentations, TitleTemplate as TitleTemplate$1, EntryAugmentation, Base as Base$1, DefinedValueOrEmptyObject, LinkBase, DataKeys, MaybeEventFnHandlers, HttpEventAttributes, BaseMeta, Style as Style$1, ScriptBase, Noscript as Noscript$1, BodyEvents, MergeHead, MetaFlatInput, HeadEntryOptions, Unhead } from 'unhead/types';
2
+ import { Falsey, MergeHead, SchemaAugmentations, TitleTemplate as TitleTemplate$1, EntryAugmentation, Base as Base$1, DefinedValueOrEmptyObject, LinkBase, DataKeys, MaybeEventFnHandlers, HttpEventAttributes, BaseMeta, Style as Style$1, ScriptBase, Noscript as Noscript$1, BaseHtmlAttr, MaybeArray, BaseBodyAttr, BodyEvents, MetaFlatInput, Unhead, HeadEntryOptions } from 'unhead/types';
3
3
 
4
4
  type MaybeComputedRef<T> = T | (() => T) | RefObject<T>;
5
5
  type ResolvableArray<T> = MaybeComputedRef<MaybeComputedRef<T>[]>;
package/dist/types.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { SafeMeta, SafeLink, SafeNoscript, SafeScript, SafeHtmlAttr, SafeBodyAttr } from 'unhead/types';
2
2
  export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, ResolvedHead, Unhead } from 'unhead/types';
3
- import { b as ReactiveHead, c as ResolvableArray, M as MaybeComputedRef } from './shared/react.Cz8ob63p.mjs';
4
- export { e as Base, B as BodyAttr, i as BodyAttributes, H as HtmlAttr, h as HtmlAttributes, L as Link, f as Meta, N as Noscript, R as ReactUnhead, k as ResolvableProperties, g as Script, S as Style, T as Title, d as TitleTemplate, U as UseHeadInput, j as UseHeadOptions, a as UseSeoMetaInput } from './shared/react.Cz8ob63p.mjs';
3
+ import { b as ReactiveHead, c as ResolvableArray, M as MaybeComputedRef } from './shared/react.DwbUwhqf.mjs';
4
+ export { e as Base, B as BodyAttr, i as BodyAttributes, H as HtmlAttr, h as HtmlAttributes, L as Link, f as Meta, N as Noscript, R as ReactUnhead, k as ResolvableProperties, g as Script, S as Style, T as Title, d as TitleTemplate, U as UseHeadInput, j as UseHeadOptions, a as UseSeoMetaInput } from './shared/react.DwbUwhqf.mjs';
5
5
  import 'react';
6
6
 
7
7
  interface HeadSafe extends Pick<ReactiveHead, 'title' | 'titleTemplate' | 'templateParams'> {
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { SafeMeta, SafeLink, SafeNoscript, SafeScript, SafeHtmlAttr, SafeBodyAttr } from 'unhead/types';
2
2
  export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, ResolvedHead, Unhead } from 'unhead/types';
3
- import { b as ReactiveHead, c as ResolvableArray, M as MaybeComputedRef } from './shared/react.Cz8ob63p.js';
4
- export { e as Base, B as BodyAttr, i as BodyAttributes, H as HtmlAttr, h as HtmlAttributes, L as Link, f as Meta, N as Noscript, R as ReactUnhead, k as ResolvableProperties, g as Script, S as Style, T as Title, d as TitleTemplate, U as UseHeadInput, j as UseHeadOptions, a as UseSeoMetaInput } from './shared/react.Cz8ob63p.js';
3
+ import { b as ReactiveHead, c as ResolvableArray, M as MaybeComputedRef } from './shared/react.DwbUwhqf.js';
4
+ export { e as Base, B as BodyAttr, i as BodyAttributes, H as HtmlAttr, h as HtmlAttributes, L as Link, f as Meta, N as Noscript, R as ReactUnhead, k as ResolvableProperties, g as Script, S as Style, T as Title, d as TitleTemplate, U as UseHeadInput, j as UseHeadOptions, a as UseSeoMetaInput } from './shared/react.DwbUwhqf.js';
5
5
  import 'react';
6
6
 
7
7
  interface HeadSafe extends Pick<ReactiveHead, 'title' | 'titleTemplate' | 'templateParams'> {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/react",
3
3
  "type": "module",
4
- "version": "2.0.0-alpha.16",
4
+ "version": "2.0.0-alpha.17",
5
5
  "author": "Harlan Wilton <harlan@harlanzw.com>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",
@@ -64,7 +64,7 @@
64
64
  ]
65
65
  },
66
66
  "dependencies": {
67
- "unhead": "2.0.0-alpha.16"
67
+ "unhead": "2.0.0-alpha.17"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@testing-library/react": "^16.2.0",