@unhead/vue 1.8.0-beta.8 → 1.8.0
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/components.cjs +0 -1
- package/dist/components.mjs +0 -1
- package/dist/index.cjs +13 -8
- package/dist/index.d.cts +6 -4
- package/dist/index.d.mts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.mjs +16 -11
- package/dist/polyfill.d.cts +1 -1
- package/dist/polyfill.d.mts +1 -1
- package/dist/polyfill.d.ts +1 -1
- package/dist/shared/{vue.44f175ba.d.cts → vue.a001678c.d.cts} +4 -1
- package/dist/shared/{vue.44f175ba.d.mts → vue.a001678c.d.mts} +4 -1
- package/dist/shared/{vue.44f175ba.d.ts → vue.a001678c.d.ts} +4 -1
- package/package.json +5 -5
package/dist/components.cjs
CHANGED
package/dist/components.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -94,20 +94,16 @@ function useServerSeoMeta(input, options) {
|
|
|
94
94
|
return useSeoMeta(input, { ...options || {}, mode: "server" });
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
function useScript(
|
|
97
|
+
function useScript(input, _options) {
|
|
98
98
|
const head = injectHead.injectHead();
|
|
99
99
|
const ctx = vue.getCurrentInstance();
|
|
100
|
-
const input = injectHead.resolveUnrefHeadInput(_input) || {};
|
|
101
100
|
const options = _options || {};
|
|
102
101
|
options.head = head;
|
|
103
102
|
const status = vue.ref("awaitingLoad");
|
|
104
103
|
shared.NetworkEvents.forEach((fn) => {
|
|
105
104
|
const _fn = typeof input[fn] === "function" ? input[fn].bind(ctx) : null;
|
|
106
|
-
if (_fn
|
|
107
|
-
input[fn] = (e) =>
|
|
108
|
-
status.value = fn === "onload" ? "loaded" : fn === "onerror" ? "error" : "loading";
|
|
109
|
-
_fn && _fn(e);
|
|
110
|
-
};
|
|
105
|
+
if (_fn) {
|
|
106
|
+
input[fn] = (e) => _fn(e);
|
|
111
107
|
}
|
|
112
108
|
});
|
|
113
109
|
options.stub = ({ script, fn }) => {
|
|
@@ -119,7 +115,16 @@ function useScript(_input, _options) {
|
|
|
119
115
|
};
|
|
120
116
|
}
|
|
121
117
|
};
|
|
122
|
-
|
|
118
|
+
const instance = unhead.useScript(input, options);
|
|
119
|
+
function syncStatus({ script }) {
|
|
120
|
+
if (script.id === instance.$script.id) {
|
|
121
|
+
status.value = script.status;
|
|
122
|
+
if (script.status === "removed")
|
|
123
|
+
head.hooks.removeHook(`script:updated`, syncStatus);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
head.hooks.hook(`script:updated`, syncStatus);
|
|
127
|
+
return instance;
|
|
123
128
|
}
|
|
124
129
|
|
|
125
130
|
exports.CapoPlugin = unhead.CapoPlugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -2,8 +2,8 @@ export { CapoPlugin, HashHydrationPlugin, createHeadCore } from 'unhead';
|
|
|
2
2
|
import * as _unhead_schema from '@unhead/schema';
|
|
3
3
|
import { SafeMeta, SafeLink, SafeNoscript, SafeScript, SafeHtmlAttr, SafeBodyAttr, MergeHead, CreateHeadOptions, ActiveHeadEntry, ScriptInstance, UseScriptStatus, UseScriptInput, UseScriptOptions } from '@unhead/schema';
|
|
4
4
|
export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, Unhead } from '@unhead/schema';
|
|
5
|
-
import { R as ReactiveHead, M as MaybeComputedRefEntries, a as MaybeComputedRef, V as VueHeadClient, U as UseHeadInput, b as UseHeadOptions, c as UseSeoMetaInput } from './shared/vue.
|
|
6
|
-
export {
|
|
5
|
+
import { R as ReactiveHead, M as MaybeComputedRefEntries, a as MaybeComputedRef, V as VueHeadClient, U as UseHeadInput, b as UseHeadOptions, c as UseSeoMetaInput, d as MaybeComputedRefEntriesOnly } from './shared/vue.a001678c.cjs';
|
|
6
|
+
export { f as Base, B as BodyAttr, j as BodyAttributes, H as HtmlAttr, i as HtmlAttributes, L as Link, l as MaybeComputedRefOrPromise, k as MaybeReadonlyRef, g as Meta, N as Noscript, h as Script, S as Style, T as Title, e as TitleTemplate } from './shared/vue.a001678c.cjs';
|
|
7
7
|
import { Plugin, ComputedRef, Ref } from 'vue';
|
|
8
8
|
|
|
9
9
|
interface HeadSafe extends Pick<ReactiveHead, 'title' | 'titleTemplate' | 'templateParams'> {
|
|
@@ -56,8 +56,10 @@ interface VueScriptInstance<T> extends Omit<ScriptInstance<T>, 'loaded' | 'statu
|
|
|
56
56
|
loaded: ComputedRef<boolean>;
|
|
57
57
|
status: Ref<UseScriptStatus>;
|
|
58
58
|
}
|
|
59
|
-
declare function useScript<T>(
|
|
59
|
+
declare function useScript<T>(input: MaybeComputedRefEntriesOnly<Omit<UseScriptInput, 'src'>> & {
|
|
60
|
+
src: string;
|
|
61
|
+
}, _options?: UseScriptOptions<T>): T & {
|
|
60
62
|
$script: VueScriptInstance<T>;
|
|
61
63
|
};
|
|
62
64
|
|
|
63
|
-
export { type HeadSafe, MaybeComputedRef, MaybeComputedRefEntries, ReactiveHead, UseHeadInput, UseHeadOptions, type UseHeadSafeInput, UseSeoMetaInput, Vue2ProvideUnheadPlugin, VueHeadClient, VueHeadMixin, type VueScriptInstance, createHead, createServerHead, injectHead, resolveUnrefHeadInput, setHeadInjectionHandler, unheadVueComposablesImports, useHead, useHeadSafe, useScript, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
|
|
65
|
+
export { type HeadSafe, MaybeComputedRef, MaybeComputedRefEntries, MaybeComputedRefEntriesOnly, ReactiveHead, UseHeadInput, UseHeadOptions, type UseHeadSafeInput, UseSeoMetaInput, Vue2ProvideUnheadPlugin, VueHeadClient, VueHeadMixin, type VueScriptInstance, createHead, createServerHead, injectHead, resolveUnrefHeadInput, setHeadInjectionHandler, unheadVueComposablesImports, useHead, useHeadSafe, useScript, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
|
package/dist/index.d.mts
CHANGED
|
@@ -2,8 +2,8 @@ export { CapoPlugin, HashHydrationPlugin, createHeadCore } from 'unhead';
|
|
|
2
2
|
import * as _unhead_schema from '@unhead/schema';
|
|
3
3
|
import { SafeMeta, SafeLink, SafeNoscript, SafeScript, SafeHtmlAttr, SafeBodyAttr, MergeHead, CreateHeadOptions, ActiveHeadEntry, ScriptInstance, UseScriptStatus, UseScriptInput, UseScriptOptions } from '@unhead/schema';
|
|
4
4
|
export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, Unhead } from '@unhead/schema';
|
|
5
|
-
import { R as ReactiveHead, M as MaybeComputedRefEntries, a as MaybeComputedRef, V as VueHeadClient, U as UseHeadInput, b as UseHeadOptions, c as UseSeoMetaInput } from './shared/vue.
|
|
6
|
-
export {
|
|
5
|
+
import { R as ReactiveHead, M as MaybeComputedRefEntries, a as MaybeComputedRef, V as VueHeadClient, U as UseHeadInput, b as UseHeadOptions, c as UseSeoMetaInput, d as MaybeComputedRefEntriesOnly } from './shared/vue.a001678c.mjs';
|
|
6
|
+
export { f as Base, B as BodyAttr, j as BodyAttributes, H as HtmlAttr, i as HtmlAttributes, L as Link, l as MaybeComputedRefOrPromise, k as MaybeReadonlyRef, g as Meta, N as Noscript, h as Script, S as Style, T as Title, e as TitleTemplate } from './shared/vue.a001678c.mjs';
|
|
7
7
|
import { Plugin, ComputedRef, Ref } from 'vue';
|
|
8
8
|
|
|
9
9
|
interface HeadSafe extends Pick<ReactiveHead, 'title' | 'titleTemplate' | 'templateParams'> {
|
|
@@ -56,8 +56,10 @@ interface VueScriptInstance<T> extends Omit<ScriptInstance<T>, 'loaded' | 'statu
|
|
|
56
56
|
loaded: ComputedRef<boolean>;
|
|
57
57
|
status: Ref<UseScriptStatus>;
|
|
58
58
|
}
|
|
59
|
-
declare function useScript<T>(
|
|
59
|
+
declare function useScript<T>(input: MaybeComputedRefEntriesOnly<Omit<UseScriptInput, 'src'>> & {
|
|
60
|
+
src: string;
|
|
61
|
+
}, _options?: UseScriptOptions<T>): T & {
|
|
60
62
|
$script: VueScriptInstance<T>;
|
|
61
63
|
};
|
|
62
64
|
|
|
63
|
-
export { type HeadSafe, MaybeComputedRef, MaybeComputedRefEntries, ReactiveHead, UseHeadInput, UseHeadOptions, type UseHeadSafeInput, UseSeoMetaInput, Vue2ProvideUnheadPlugin, VueHeadClient, VueHeadMixin, type VueScriptInstance, createHead, createServerHead, injectHead, resolveUnrefHeadInput, setHeadInjectionHandler, unheadVueComposablesImports, useHead, useHeadSafe, useScript, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
|
|
65
|
+
export { type HeadSafe, MaybeComputedRef, MaybeComputedRefEntries, MaybeComputedRefEntriesOnly, ReactiveHead, UseHeadInput, UseHeadOptions, type UseHeadSafeInput, UseSeoMetaInput, Vue2ProvideUnheadPlugin, VueHeadClient, VueHeadMixin, type VueScriptInstance, createHead, createServerHead, injectHead, resolveUnrefHeadInput, setHeadInjectionHandler, unheadVueComposablesImports, useHead, useHeadSafe, useScript, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ export { CapoPlugin, HashHydrationPlugin, createHeadCore } from 'unhead';
|
|
|
2
2
|
import * as _unhead_schema from '@unhead/schema';
|
|
3
3
|
import { SafeMeta, SafeLink, SafeNoscript, SafeScript, SafeHtmlAttr, SafeBodyAttr, MergeHead, CreateHeadOptions, ActiveHeadEntry, ScriptInstance, UseScriptStatus, UseScriptInput, UseScriptOptions } from '@unhead/schema';
|
|
4
4
|
export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, Unhead } from '@unhead/schema';
|
|
5
|
-
import { R as ReactiveHead, M as MaybeComputedRefEntries, a as MaybeComputedRef, V as VueHeadClient, U as UseHeadInput, b as UseHeadOptions, c as UseSeoMetaInput } from './shared/vue.
|
|
6
|
-
export {
|
|
5
|
+
import { R as ReactiveHead, M as MaybeComputedRefEntries, a as MaybeComputedRef, V as VueHeadClient, U as UseHeadInput, b as UseHeadOptions, c as UseSeoMetaInput, d as MaybeComputedRefEntriesOnly } from './shared/vue.a001678c.js';
|
|
6
|
+
export { f as Base, B as BodyAttr, j as BodyAttributes, H as HtmlAttr, i as HtmlAttributes, L as Link, l as MaybeComputedRefOrPromise, k as MaybeReadonlyRef, g as Meta, N as Noscript, h as Script, S as Style, T as Title, e as TitleTemplate } from './shared/vue.a001678c.js';
|
|
7
7
|
import { Plugin, ComputedRef, Ref } from 'vue';
|
|
8
8
|
|
|
9
9
|
interface HeadSafe extends Pick<ReactiveHead, 'title' | 'titleTemplate' | 'templateParams'> {
|
|
@@ -56,8 +56,10 @@ interface VueScriptInstance<T> extends Omit<ScriptInstance<T>, 'loaded' | 'statu
|
|
|
56
56
|
loaded: ComputedRef<boolean>;
|
|
57
57
|
status: Ref<UseScriptStatus>;
|
|
58
58
|
}
|
|
59
|
-
declare function useScript<T>(
|
|
59
|
+
declare function useScript<T>(input: MaybeComputedRefEntriesOnly<Omit<UseScriptInput, 'src'>> & {
|
|
60
|
+
src: string;
|
|
61
|
+
}, _options?: UseScriptOptions<T>): T & {
|
|
60
62
|
$script: VueScriptInstance<T>;
|
|
61
63
|
};
|
|
62
64
|
|
|
63
|
-
export { type HeadSafe, MaybeComputedRef, MaybeComputedRefEntries, ReactiveHead, UseHeadInput, UseHeadOptions, type UseHeadSafeInput, UseSeoMetaInput, Vue2ProvideUnheadPlugin, VueHeadClient, VueHeadMixin, type VueScriptInstance, createHead, createServerHead, injectHead, resolveUnrefHeadInput, setHeadInjectionHandler, unheadVueComposablesImports, useHead, useHeadSafe, useScript, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
|
|
65
|
+
export { type HeadSafe, MaybeComputedRef, MaybeComputedRefEntries, MaybeComputedRefEntriesOnly, ReactiveHead, UseHeadInput, UseHeadOptions, type UseHeadSafeInput, UseSeoMetaInput, Vue2ProvideUnheadPlugin, VueHeadClient, VueHeadMixin, type VueScriptInstance, createHead, createServerHead, injectHead, resolveUnrefHeadInput, setHeadInjectionHandler, unheadVueComposablesImports, useHead, useHeadSafe, useScript, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useScript as useScript$1 } from 'unhead';
|
|
2
2
|
export { CapoPlugin, HashHydrationPlugin, createHeadCore } from 'unhead';
|
|
3
|
-
import { V as Vue3, h as headSymbol, i as injectHead
|
|
4
|
-
export { c as createHead, a as createServerHead, s as setHeadInjectionHandler } from './shared/vue.cf295fb1.mjs';
|
|
3
|
+
import { V as Vue3, h as headSymbol, i as injectHead } from './shared/vue.cf295fb1.mjs';
|
|
4
|
+
export { c as createHead, a as createServerHead, r as resolveUnrefHeadInput, s as setHeadInjectionHandler } from './shared/vue.cf295fb1.mjs';
|
|
5
5
|
import { getCurrentInstance, ref, computed } from 'vue';
|
|
6
6
|
import { u as useHead } from './shared/vue.f36acd1f.mjs';
|
|
7
7
|
import { composableNames, whitelistSafeInput, unpackMeta, NetworkEvents } from '@unhead/shared';
|
|
@@ -94,20 +94,16 @@ function useServerSeoMeta(input, options) {
|
|
|
94
94
|
return useSeoMeta(input, { ...options || {}, mode: "server" });
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
function useScript(
|
|
97
|
+
function useScript(input, _options) {
|
|
98
98
|
const head = injectHead();
|
|
99
99
|
const ctx = getCurrentInstance();
|
|
100
|
-
const input = resolveUnrefHeadInput(_input) || {};
|
|
101
100
|
const options = _options || {};
|
|
102
101
|
options.head = head;
|
|
103
102
|
const status = ref("awaitingLoad");
|
|
104
103
|
NetworkEvents.forEach((fn) => {
|
|
105
104
|
const _fn = typeof input[fn] === "function" ? input[fn].bind(ctx) : null;
|
|
106
|
-
if (_fn
|
|
107
|
-
input[fn] = (e) =>
|
|
108
|
-
status.value = fn === "onload" ? "loaded" : fn === "onerror" ? "error" : "loading";
|
|
109
|
-
_fn && _fn(e);
|
|
110
|
-
};
|
|
105
|
+
if (_fn) {
|
|
106
|
+
input[fn] = (e) => _fn(e);
|
|
111
107
|
}
|
|
112
108
|
});
|
|
113
109
|
options.stub = ({ script, fn }) => {
|
|
@@ -119,7 +115,16 @@ function useScript(_input, _options) {
|
|
|
119
115
|
};
|
|
120
116
|
}
|
|
121
117
|
};
|
|
122
|
-
|
|
118
|
+
const instance = useScript$1(input, options);
|
|
119
|
+
function syncStatus({ script }) {
|
|
120
|
+
if (script.id === instance.$script.id) {
|
|
121
|
+
status.value = script.status;
|
|
122
|
+
if (script.status === "removed")
|
|
123
|
+
head.hooks.removeHook(`script:updated`, syncStatus);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
head.hooks.hook(`script:updated`, syncStatus);
|
|
127
|
+
return instance;
|
|
123
128
|
}
|
|
124
129
|
|
|
125
|
-
export { Vue2ProvideUnheadPlugin, VueHeadMixin, injectHead,
|
|
130
|
+
export { Vue2ProvideUnheadPlugin, VueHeadMixin, injectHead, unheadVueComposablesImports, useHead, useHeadSafe, useScript, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
|
package/dist/polyfill.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MergeHead } from '@unhead/schema';
|
|
2
|
-
import { V as VueHeadClient, U as UseHeadInput, b as UseHeadOptions } from './shared/vue.
|
|
2
|
+
import { V as VueHeadClient, U as UseHeadInput, b as UseHeadOptions } from './shared/vue.a001678c.cjs';
|
|
3
3
|
import 'vue';
|
|
4
4
|
|
|
5
5
|
type VueHeadClientPollyFill<T extends MergeHead> = VueHeadClient<T> & {
|
package/dist/polyfill.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MergeHead } from '@unhead/schema';
|
|
2
|
-
import { V as VueHeadClient, U as UseHeadInput, b as UseHeadOptions } from './shared/vue.
|
|
2
|
+
import { V as VueHeadClient, U as UseHeadInput, b as UseHeadOptions } from './shared/vue.a001678c.mjs';
|
|
3
3
|
import 'vue';
|
|
4
4
|
|
|
5
5
|
type VueHeadClientPollyFill<T extends MergeHead> = VueHeadClient<T> & {
|
package/dist/polyfill.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MergeHead } from '@unhead/schema';
|
|
2
|
-
import { V as VueHeadClient, U as UseHeadInput, b as UseHeadOptions } from './shared/vue.
|
|
2
|
+
import { V as VueHeadClient, U as UseHeadInput, b as UseHeadOptions } from './shared/vue.a001678c.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
|
|
5
5
|
type VueHeadClientPollyFill<T extends MergeHead> = VueHeadClient<T> & {
|
|
@@ -7,6 +7,9 @@ type MaybeComputedRefOrPromise<T> = T | MaybeReadonlyRef<T> | Ref<T> | Promise<T
|
|
|
7
7
|
type MaybeComputedRefEntries<T> = MaybeComputedRef<T> | {
|
|
8
8
|
[key in keyof T]?: MaybeComputedRefOrPromise<T[key]>;
|
|
9
9
|
};
|
|
10
|
+
type MaybeComputedRefEntriesOnly<T> = {
|
|
11
|
+
[key in keyof T]?: MaybeComputedRefOrPromise<T[key]>;
|
|
12
|
+
};
|
|
10
13
|
|
|
11
14
|
interface HtmlAttr extends Omit<BaseHtmlAttr, 'class'> {
|
|
12
15
|
/**
|
|
@@ -116,4 +119,4 @@ type UseSeoMetaInput = MaybeComputedRefEntries<MetaFlatInput> & {
|
|
|
116
119
|
};
|
|
117
120
|
type VueHeadClient<T extends MergeHead> = Unhead<MaybeComputedRef<ReactiveHead<T>>> & Plugin;
|
|
118
121
|
|
|
119
|
-
export type { BodyAttr as B, HtmlAttr as H, Link as L, MaybeComputedRefEntries as M, Noscript as N, ReactiveHead as R, Style as S, Title as T, UseHeadInput as U, VueHeadClient as V, MaybeComputedRef as a, UseHeadOptions as b, UseSeoMetaInput as c,
|
|
122
|
+
export type { BodyAttr as B, HtmlAttr as H, Link as L, MaybeComputedRefEntries as M, Noscript as N, ReactiveHead as R, Style as S, Title as T, UseHeadInput as U, VueHeadClient as V, MaybeComputedRef as a, UseHeadOptions as b, UseSeoMetaInput as c, MaybeComputedRefEntriesOnly as d, TitleTemplate as e, Base as f, Meta as g, Script as h, HtmlAttributes as i, BodyAttributes as j, MaybeReadonlyRef as k, MaybeComputedRefOrPromise as l };
|
|
@@ -7,6 +7,9 @@ type MaybeComputedRefOrPromise<T> = T | MaybeReadonlyRef<T> | Ref<T> | Promise<T
|
|
|
7
7
|
type MaybeComputedRefEntries<T> = MaybeComputedRef<T> | {
|
|
8
8
|
[key in keyof T]?: MaybeComputedRefOrPromise<T[key]>;
|
|
9
9
|
};
|
|
10
|
+
type MaybeComputedRefEntriesOnly<T> = {
|
|
11
|
+
[key in keyof T]?: MaybeComputedRefOrPromise<T[key]>;
|
|
12
|
+
};
|
|
10
13
|
|
|
11
14
|
interface HtmlAttr extends Omit<BaseHtmlAttr, 'class'> {
|
|
12
15
|
/**
|
|
@@ -116,4 +119,4 @@ type UseSeoMetaInput = MaybeComputedRefEntries<MetaFlatInput> & {
|
|
|
116
119
|
};
|
|
117
120
|
type VueHeadClient<T extends MergeHead> = Unhead<MaybeComputedRef<ReactiveHead<T>>> & Plugin;
|
|
118
121
|
|
|
119
|
-
export type { BodyAttr as B, HtmlAttr as H, Link as L, MaybeComputedRefEntries as M, Noscript as N, ReactiveHead as R, Style as S, Title as T, UseHeadInput as U, VueHeadClient as V, MaybeComputedRef as a, UseHeadOptions as b, UseSeoMetaInput as c,
|
|
122
|
+
export type { BodyAttr as B, HtmlAttr as H, Link as L, MaybeComputedRefEntries as M, Noscript as N, ReactiveHead as R, Style as S, Title as T, UseHeadInput as U, VueHeadClient as V, MaybeComputedRef as a, UseHeadOptions as b, UseSeoMetaInput as c, MaybeComputedRefEntriesOnly as d, TitleTemplate as e, Base as f, Meta as g, Script as h, HtmlAttributes as i, BodyAttributes as j, MaybeReadonlyRef as k, MaybeComputedRefOrPromise as l };
|
|
@@ -7,6 +7,9 @@ type MaybeComputedRefOrPromise<T> = T | MaybeReadonlyRef<T> | Ref<T> | Promise<T
|
|
|
7
7
|
type MaybeComputedRefEntries<T> = MaybeComputedRef<T> | {
|
|
8
8
|
[key in keyof T]?: MaybeComputedRefOrPromise<T[key]>;
|
|
9
9
|
};
|
|
10
|
+
type MaybeComputedRefEntriesOnly<T> = {
|
|
11
|
+
[key in keyof T]?: MaybeComputedRefOrPromise<T[key]>;
|
|
12
|
+
};
|
|
10
13
|
|
|
11
14
|
interface HtmlAttr extends Omit<BaseHtmlAttr, 'class'> {
|
|
12
15
|
/**
|
|
@@ -116,4 +119,4 @@ type UseSeoMetaInput = MaybeComputedRefEntries<MetaFlatInput> & {
|
|
|
116
119
|
};
|
|
117
120
|
type VueHeadClient<T extends MergeHead> = Unhead<MaybeComputedRef<ReactiveHead<T>>> & Plugin;
|
|
118
121
|
|
|
119
|
-
export type { BodyAttr as B, HtmlAttr as H, Link as L, MaybeComputedRefEntries as M, Noscript as N, ReactiveHead as R, Style as S, Title as T, UseHeadInput as U, VueHeadClient as V, MaybeComputedRef as a, UseHeadOptions as b, UseSeoMetaInput as c,
|
|
122
|
+
export type { BodyAttr as B, HtmlAttr as H, Link as L, MaybeComputedRefEntries as M, Noscript as N, ReactiveHead as R, Style as S, Title as T, UseHeadInput as U, VueHeadClient as V, MaybeComputedRef as a, UseHeadOptions as b, UseSeoMetaInput as c, MaybeComputedRefEntriesOnly as d, TitleTemplate as e, Base as f, Meta as g, Script as h, HtmlAttributes as i, BodyAttributes as j, MaybeReadonlyRef as k, MaybeComputedRefOrPromise as l };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.8.0
|
|
4
|
+
"version": "1.8.0",
|
|
5
5
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/harlan-zw",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"hookable": "^5.5.3",
|
|
51
|
-
"@unhead/schema": "1.8.0
|
|
52
|
-
"@unhead/shared": "1.8.0
|
|
53
|
-
"unhead": "1.8.0
|
|
51
|
+
"@unhead/schema": "1.8.0",
|
|
52
|
+
"@unhead/shared": "1.8.0",
|
|
53
|
+
"unhead": "1.8.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"vue": "^3.3.
|
|
56
|
+
"vue": "^3.3.7"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "unbuild .",
|