Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.2
@@ -1,24 +0,9 @@ | ||
import { MergeHead, Head, HeadEntryOptions, ActiveHeadEntry, HeadSafe, UseSeoMetaInput } from '@unhead/schema'; | ||
export { c as createHeadCore, t as tryUseUnhead, u as unheadCtx, a as useUnhead } from './shared/unhead.Bkkr-JOb.js'; | ||
export { composableNames } from '@unhead/shared'; | ||
import 'unctx/index'; | ||
import { MergeHead, Head, Unhead, HeadEntryOptions, HeadSafe, ActiveHeadEntry, UseSeoMetaInput } from '@unhead/schema'; | ||
export { c as createHeadCore } from './shared/unhead.D--bHScR.js'; | ||
declare const unheadComposablesImports: { | ||
from: string; | ||
imports: string[]; | ||
}[]; | ||
type UseHeadInput<T extends MergeHead> = Head<T>; | ||
declare function useHead<T extends MergeHead>(input: UseHeadInput<T>, options?: HeadEntryOptions): ActiveHeadEntry<UseHeadInput<T>>; | ||
declare function useHead<T extends Unhead<any>>(unhead: T, input: Parameters<T['push']>[0], options?: HeadEntryOptions): ReturnType<T['push']>; | ||
declare function useHeadSafe<T extends Unhead<any>>(unhead: T, input: HeadSafe, options?: HeadEntryOptions): ActiveHeadEntry<HeadSafe>; | ||
declare function useSeoMeta<T extends Unhead<any>>(unhead: T, input: UseSeoMetaInput, options?: HeadEntryOptions): ActiveHeadEntry<any>; | ||
declare function useHeadSafe(input: HeadSafe, options?: HeadEntryOptions): ActiveHeadEntry<HeadSafe>; | ||
declare function useSeoMeta(input: UseSeoMetaInput, options?: HeadEntryOptions): ActiveHeadEntry<any>; | ||
declare function useServerHead<T extends MergeHead>(input: UseHeadInput<T>, options?: HeadEntryOptions): ActiveHeadEntry<UseHeadInput<T>>; | ||
declare function useServerHeadSafe<T extends HeadSafe>(input: T, options?: HeadEntryOptions): ActiveHeadEntry<T>; | ||
declare function useServerSeoMeta(input: UseSeoMetaInput, options?: HeadEntryOptions): ActiveHeadEntry<any>; | ||
export { type UseHeadInput, unheadComposablesImports, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta }; | ||
export { type UseHeadInput, useHead, useHeadSafe, useSeoMeta }; |
@@ -1,4 +0,4 @@ | ||
import { Script, ActiveHeadEntry, HeadEntryOptions, Head, CreateHeadOptions, Unhead, MergeHead, HeadSafe, UseSeoMetaInput } from '@unhead/schema'; | ||
export { c as createHeadCore, t as tryUseUnhead, u as unheadCtx, a as useUnhead } from './shared/unhead.Bkkr-JOb.js'; | ||
import 'unctx/index'; | ||
import { Script, ActiveHeadEntry, HeadEntryOptions, Unhead, Head, CreateHeadOptions, MergeHead, HeadSafe, UseSeoMetaInput } from '@unhead/schema'; | ||
export { composableNames } from '@unhead/shared'; | ||
export { c as createHeadCore } from './shared/unhead.D--bHScR.js'; | ||
@@ -96,5 +96,13 @@ type UseScriptInput = string | (Omit<Script, 'src'> & { | ||
declare const activeHead: { | ||
value: Unhead<any> | null; | ||
}; | ||
declare function getActiveHead(): Unhead<any> | null; | ||
declare const unheadComposablesImports: { | ||
from: string; | ||
imports: string[]; | ||
}[]; | ||
declare function createServerHead<T extends Record<string, any> = Head>(options?: CreateHeadOptions): Unhead<T>; | ||
declare function createHead<T extends Record<string, any> = Head>(options?: CreateHeadOptions): Unhead<T>; | ||
declare function getActiveHead(): Unhead<Head<MergeHead>> | null; | ||
type UseHeadInput<T extends MergeHead> = Head<T>; | ||
@@ -108,2 +116,2 @@ declare function useHead<T extends MergeHead>(input: UseHeadInput<T>, options?: HeadEntryOptions): ActiveHeadEntry<UseHeadInput<T>> | void; | ||
export { type AsAsyncFunctionValues, type ScriptInstance, type UseFunctionType, type UseHeadInput, type UseScriptContext, type UseScriptInput, type UseScriptOptions, type UseScriptResolvedInput, type UseScriptStatus, createHead, createServerHead, getActiveHead, resolveScriptKey, useHead, useHeadSafe, useScript, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta }; | ||
export { type AsAsyncFunctionValues, type ScriptInstance, type UseFunctionType, type UseHeadInput, type UseScriptContext, type UseScriptInput, type UseScriptOptions, type UseScriptResolvedInput, type UseScriptStatus, activeHead, createHead, createServerHead, getActiveHead, resolveScriptKey, unheadComposablesImports, useHead, useHeadSafe, useScript, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta }; |
{ | ||
"name": "unhead", | ||
"type": "module", | ||
"version": "2.0.0-alpha.1", | ||
"version": "2.0.0-alpha.2", | ||
"description": "Full-stack <head> manager built for any framework.", | ||
@@ -11,2 +11,6 @@ "author": { | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"tag": "next" | ||
}, | ||
"license": "MIT", | ||
@@ -74,5 +78,4 @@ "funding": "https://github.com/sponsors/harlan-zw", | ||
"hookable": "^5.5.3", | ||
"unctx": "^2.4.1", | ||
"@unhead/schema": "2.0.0-alpha.1", | ||
"@unhead/shared": "2.0.0-alpha.1" | ||
"@unhead/schema": "2.0.0-alpha.2", | ||
"@unhead/shared": "2.0.0-alpha.2" | ||
}, | ||
@@ -79,0 +82,0 @@ "scripts": { |
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
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
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
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
3
113569
45
2647
+ Added@unhead/schema@2.0.0-alpha.2(transitive)
+ Added@unhead/shared@2.0.0-alpha.2(transitive)
- Removedunctx@^2.4.1
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@types/estree@1.0.6(transitive)
- Removed@unhead/schema@2.0.0-alpha.1(transitive)
- Removed@unhead/shared@2.0.0-alpha.1(transitive)
- Removedacorn@8.14.0(transitive)
- Removedestree-walker@3.0.3(transitive)
- Removedmagic-string@0.30.17(transitive)
- Removedunctx@2.4.1(transitive)
- Removedunplugin@2.1.2(transitive)
- Removedwebpack-virtual-modules@0.6.2(transitive)
Updated@unhead/schema@2.0.0-alpha.2
Updated@unhead/shared@2.0.0-alpha.2