@unhead/vue 3.1.3 → 3.1.5
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 +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.mjs +2 -2
- package/dist/components.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/legacy.d.mts +1 -1
- package/dist/legacy.d.ts +1 -1
- package/dist/legacy.mjs +2 -2
- package/dist/scripts.d.mts +1 -1
- package/dist/scripts.d.ts +1 -1
- package/dist/scripts.mjs +2 -2
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.mjs +2 -2
- package/dist/shared/{vue.utlLo3Bi.d.ts → vue.B8YcFbNO.d.mts} +2 -2
- package/dist/shared/{vue.utlLo3Bi.d.mts → vue.B8YcFbNO.d.ts} +2 -2
- package/dist/shared/{vue.Cn5tnr29.mjs → vue.D3XLBQWM.mjs} +10 -7
- package/dist/shared/{vue.BIIm5xba.mjs → vue.UWfETPCA.mjs} +1 -1
- package/dist/shared/{vue.D__tEKct.mjs → vue.v2XTfP3K.mjs} +1 -1
- package/dist/stream/client.d.mts +1 -1
- package/dist/stream/client.d.ts +1 -1
- package/dist/stream/client.mjs +2 -2
- package/dist/stream/server.d.mts +1 -1
- package/dist/stream/server.d.ts +1 -1
- package/dist/types.d.mts +2 -2
- package/dist/types.d.ts +2 -2
- package/package.json +5 -5
package/dist/client.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { CreateClientHeadOptions } from 'unhead/types';
|
|
|
2
2
|
export { CreateClientHeadOptions } from 'unhead/types';
|
|
3
3
|
export { V as VueHeadMixin } from './shared/vue.DnywREVF.mjs';
|
|
4
4
|
export { renderDOMHead } from 'unhead/client';
|
|
5
|
-
import { V as VueHeadClient, U as UseHeadInput } from './shared/vue.
|
|
5
|
+
import { V as VueHeadClient, U as UseHeadInput } from './shared/vue.B8YcFbNO.mjs';
|
|
6
6
|
import 'vue';
|
|
7
7
|
|
|
8
8
|
declare function createHead(options?: CreateClientHeadOptions): VueHeadClient<UseHeadInput, boolean>;
|
package/dist/client.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { CreateClientHeadOptions } from 'unhead/types';
|
|
|
2
2
|
export { CreateClientHeadOptions } from 'unhead/types';
|
|
3
3
|
export { V as VueHeadMixin } from './shared/vue.DnywREVF.js';
|
|
4
4
|
export { renderDOMHead } from 'unhead/client';
|
|
5
|
-
import { V as VueHeadClient, U as UseHeadInput } from './shared/vue.
|
|
5
|
+
import { V as VueHeadClient, U as UseHeadInput } from './shared/vue.B8YcFbNO.js';
|
|
6
6
|
import 'vue';
|
|
7
7
|
|
|
8
8
|
declare function createHead(options?: CreateClientHeadOptions): VueHeadClient<UseHeadInput, boolean>;
|
package/dist/client.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createDomRenderer, createDebouncedFn, createHead as createHead$1 } from 'unhead/client';
|
|
2
2
|
export { renderDOMHead } from 'unhead/client';
|
|
3
3
|
import { v as vueInstall } from './shared/vue.Kp0sxz0n.mjs';
|
|
4
|
-
export { V as VueHeadMixin } from './shared/vue.
|
|
4
|
+
export { V as VueHeadMixin } from './shared/vue.UWfETPCA.mjs';
|
|
5
5
|
import 'vue';
|
|
6
|
-
import './shared/vue.
|
|
6
|
+
import './shared/vue.D3XLBQWM.mjs';
|
|
7
7
|
import 'unhead/plugins';
|
|
8
8
|
import 'unhead/utils';
|
|
9
9
|
import './shared/vue.CkLIG7eN.mjs';
|
package/dist/components.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, onBeforeUnmount, watchEffect } from 'vue';
|
|
2
|
-
import { u as useHead } from './shared/vue.
|
|
2
|
+
import { u as useHead } from './shared/vue.D3XLBQWM.mjs';
|
|
3
3
|
import 'unhead/plugins';
|
|
4
4
|
import 'unhead/utils';
|
|
5
5
|
import './shared/vue.Kp0sxz0n.mjs';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActiveHeadEntry } from 'unhead/types';
|
|
2
2
|
export { ActiveHeadEntry, AriaAttributes, BodyAttributesWithoutEvents, BodyEvents, DataKeys, GenericLink, GenericScript, GlobalAttributes, HeadEntryOptions, HeadTag, HttpEventAttributes, MetaFlat, MetaFlat as MetaFlatInput, RawInput, RenderSSRHeadOptions, ResolvableHead, SerializableHead, SpeculationRules, Unhead } from 'unhead/types';
|
|
3
|
-
import { V as VueHeadClient, U as UseHeadInput, o as UseHeadOptions, p as UseSeoMetaInput } from './shared/vue.
|
|
4
|
-
export { B as BodyAttr, D as DeepResolvableProperties,
|
|
3
|
+
import { V as VueHeadClient, U as UseHeadInput, o as UseHeadOptions, p as UseSeoMetaInput } from './shared/vue.B8YcFbNO.mjs';
|
|
4
|
+
export { B as BodyAttr, D as DeepResolvableProperties, b as Head, H as HtmlAttr, M as MaybeFalsy, b as ReactiveHead, c as ResolvableArray, d as ResolvableBase, e as ResolvableBodyAttributes, f as ResolvableHtmlAttributes, g as ResolvableLink, h as ResolvableMeta, i as ResolvableNoscript, a as ResolvableProperties, j as ResolvableScript, k as ResolvableStyle, l as ResolvableTitle, m as ResolvableTitleTemplate, n as ResolvableUnion, R as ResolvableValue } from './shared/vue.B8YcFbNO.mjs';
|
|
5
5
|
import { UseHeadSafeInput } from './types.mjs';
|
|
6
6
|
export { Base, BodyAttributes, HeadSafe, HtmlAttributes, Link, MergeHead, Meta, Noscript, SafeBodyAttr, SafeHtmlAttr, SafeLink, SafeMeta, SafeNoscript, SafeScript, SafeStyle, Script, Style } from './types.mjs';
|
|
7
7
|
export { AsVoidFunctions, EventHandlerOptions, RecordingEntry, ScriptInstance, UseFunctionType, UseScriptResolvedInput, UseScriptStatus, WarmupStrategy, createSpyProxy } from 'unhead/scripts';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActiveHeadEntry } from 'unhead/types';
|
|
2
2
|
export { ActiveHeadEntry, AriaAttributes, BodyAttributesWithoutEvents, BodyEvents, DataKeys, GenericLink, GenericScript, GlobalAttributes, HeadEntryOptions, HeadTag, HttpEventAttributes, MetaFlat, MetaFlat as MetaFlatInput, RawInput, RenderSSRHeadOptions, ResolvableHead, SerializableHead, SpeculationRules, Unhead } from 'unhead/types';
|
|
3
|
-
import { V as VueHeadClient, U as UseHeadInput, o as UseHeadOptions, p as UseSeoMetaInput } from './shared/vue.
|
|
4
|
-
export { B as BodyAttr, D as DeepResolvableProperties,
|
|
3
|
+
import { V as VueHeadClient, U as UseHeadInput, o as UseHeadOptions, p as UseSeoMetaInput } from './shared/vue.B8YcFbNO.js';
|
|
4
|
+
export { B as BodyAttr, D as DeepResolvableProperties, b as Head, H as HtmlAttr, M as MaybeFalsy, b as ReactiveHead, c as ResolvableArray, d as ResolvableBase, e as ResolvableBodyAttributes, f as ResolvableHtmlAttributes, g as ResolvableLink, h as ResolvableMeta, i as ResolvableNoscript, a as ResolvableProperties, j as ResolvableScript, k as ResolvableStyle, l as ResolvableTitle, m as ResolvableTitleTemplate, n as ResolvableUnion, R as ResolvableValue } from './shared/vue.B8YcFbNO.js';
|
|
5
5
|
import { UseHeadSafeInput } from './types.js';
|
|
6
6
|
export { Base, BodyAttributes, HeadSafe, HtmlAttributes, Link, MergeHead, Meta, Noscript, SafeBodyAttr, SafeHtmlAttr, SafeLink, SafeMeta, SafeNoscript, SafeScript, SafeStyle, Script, Style } from './types.js';
|
|
7
7
|
export { AsVoidFunctions, EventHandlerOptions, RecordingEntry, ScriptInstance, UseFunctionType, UseScriptResolvedInput, UseScriptStatus, WarmupStrategy, createSpyProxy } from 'unhead/scripts';
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { i as injectHead, u as useHead, a as useHeadSafe, b as useSeoMeta, c as useServerHead, d as useServerHeadSafe, e as useServerSeoMeta } from './shared/vue.
|
|
1
|
+
export { i as injectHead, u as useHead, a as useHeadSafe, b as useSeoMeta, c as useServerHead, d as useServerHeadSafe, e as useServerSeoMeta } from './shared/vue.D3XLBQWM.mjs';
|
|
2
2
|
export { h as headSymbol } from './shared/vue.Kp0sxz0n.mjs';
|
|
3
3
|
export { resolveUnrefHeadInput } from './utils.mjs';
|
|
4
|
-
export { V as VueHeadMixin } from './shared/vue.
|
|
4
|
+
export { V as VueHeadMixin } from './shared/vue.UWfETPCA.mjs';
|
|
5
5
|
export { createUnhead, defineLink, defineScript } from 'unhead';
|
|
6
|
-
export { u as useScript } from './shared/vue.
|
|
6
|
+
export { u as useScript } from './shared/vue.v2XTfP3K.mjs';
|
|
7
7
|
import 'unhead/plugins';
|
|
8
8
|
import 'unhead/utils';
|
|
9
9
|
import 'vue';
|
package/dist/legacy.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CreateClientHeadOptions, CreateServerHeadOptions, SSRHeadPayload, HeadPluginInput } from 'unhead/types';
|
|
2
2
|
export { CreateClientHeadOptions } from 'unhead/types';
|
|
3
3
|
export { createHead as createClientHead } from './client.mjs';
|
|
4
|
-
import { V as VueHeadClient, U as UseHeadInput } from './shared/vue.
|
|
4
|
+
import { V as VueHeadClient, U as UseHeadInput } from './shared/vue.B8YcFbNO.mjs';
|
|
5
5
|
export { V as VueHeadMixin } from './shared/vue.DnywREVF.mjs';
|
|
6
6
|
export { renderDOMHead } from 'unhead/client';
|
|
7
7
|
import 'vue';
|
package/dist/legacy.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CreateClientHeadOptions, CreateServerHeadOptions, SSRHeadPayload, HeadPluginInput } from 'unhead/types';
|
|
2
2
|
export { CreateClientHeadOptions } from 'unhead/types';
|
|
3
3
|
export { createHead as createClientHead } from './client.js';
|
|
4
|
-
import { V as VueHeadClient, U as UseHeadInput } from './shared/vue.
|
|
4
|
+
import { V as VueHeadClient, U as UseHeadInput } from './shared/vue.B8YcFbNO.js';
|
|
5
5
|
export { V as VueHeadMixin } from './shared/vue.DnywREVF.js';
|
|
6
6
|
export { renderDOMHead } from 'unhead/client';
|
|
7
7
|
import 'vue';
|
package/dist/legacy.mjs
CHANGED
|
@@ -2,13 +2,13 @@ import { DeprecationsPlugin } from 'unhead/legacy';
|
|
|
2
2
|
import { PromisesPlugin, TemplateParamsPlugin, AliasSortingPlugin } from 'unhead/plugins';
|
|
3
3
|
import { createHead as createHead$1 } from './client.mjs';
|
|
4
4
|
import { createHead as createHead$2 } from './server.mjs';
|
|
5
|
-
export { V as VueHeadMixin } from './shared/vue.
|
|
5
|
+
export { V as VueHeadMixin } from './shared/vue.UWfETPCA.mjs';
|
|
6
6
|
export { renderDOMHead } from 'unhead/client';
|
|
7
7
|
import './shared/vue.Kp0sxz0n.mjs';
|
|
8
8
|
import 'unhead/server';
|
|
9
9
|
import './shared/vue.CkLIG7eN.mjs';
|
|
10
10
|
import 'vue';
|
|
11
|
-
import './shared/vue.
|
|
11
|
+
import './shared/vue.D3XLBQWM.mjs';
|
|
12
12
|
import 'unhead/utils';
|
|
13
13
|
|
|
14
14
|
const legacyPlugins = [DeprecationsPlugin, PromisesPlugin, TemplateParamsPlugin, AliasSortingPlugin];
|
package/dist/scripts.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { ScriptInstance, UseScriptStatus, UseScriptOptions as UseScriptOptions$1
|
|
|
2
2
|
export { AsVoidFunctions, EventHandlerOptions, RecordingEntry, ScriptInstance, UseFunctionType, UseScriptResolvedInput, UseScriptStatus, WarmupStrategy, createSpyProxy } from 'unhead/scripts';
|
|
3
3
|
import { GenericScript, DataKeys, SchemaAugmentations, HeadEntryOptions } from 'unhead/types';
|
|
4
4
|
import { Ref } from 'vue';
|
|
5
|
-
import {
|
|
5
|
+
import { a as ResolvableProperties, V as VueHeadClient } from './shared/vue.B8YcFbNO.mjs';
|
|
6
6
|
|
|
7
7
|
interface VueScriptInstance<T extends Record<symbol | string, any>> extends Omit<ScriptInstance<T>, 'status'> {
|
|
8
8
|
status: Ref<UseScriptStatus>;
|
package/dist/scripts.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ScriptInstance, UseScriptStatus, UseScriptOptions as UseScriptOptions$1
|
|
|
2
2
|
export { AsVoidFunctions, EventHandlerOptions, RecordingEntry, ScriptInstance, UseFunctionType, UseScriptResolvedInput, UseScriptStatus, WarmupStrategy, createSpyProxy } from 'unhead/scripts';
|
|
3
3
|
import { GenericScript, DataKeys, SchemaAugmentations, HeadEntryOptions } from 'unhead/types';
|
|
4
4
|
import { Ref } from 'vue';
|
|
5
|
-
import {
|
|
5
|
+
import { a as ResolvableProperties, V as VueHeadClient } from './shared/vue.B8YcFbNO.js';
|
|
6
6
|
|
|
7
7
|
interface VueScriptInstance<T extends Record<symbol | string, any>> extends Omit<ScriptInstance<T>, 'status'> {
|
|
8
8
|
status: Ref<UseScriptStatus>;
|
package/dist/scripts.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { createSpyProxy } from 'unhead/scripts';
|
|
2
|
-
export { u as useScript } from './shared/vue.
|
|
2
|
+
export { u as useScript } from './shared/vue.v2XTfP3K.mjs';
|
|
3
3
|
import 'vue';
|
|
4
|
-
import './shared/vue.
|
|
4
|
+
import './shared/vue.D3XLBQWM.mjs';
|
|
5
5
|
import 'unhead/plugins';
|
|
6
6
|
import 'unhead/utils';
|
|
7
7
|
import './shared/vue.Kp0sxz0n.mjs';
|
package/dist/server.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { CreateServerHeadOptions, SSRHeadPayload } from 'unhead/types';
|
|
|
2
2
|
export { CreateServerHeadOptions } from 'unhead/types';
|
|
3
3
|
export { V as VueHeadMixin } from './shared/vue.DnywREVF.mjs';
|
|
4
4
|
export { SSRHeadPayload, propsToString, renderSSRHead, transformHtmlTemplate } from 'unhead/server';
|
|
5
|
-
import { V as VueHeadClient, U as UseHeadInput } from './shared/vue.
|
|
5
|
+
import { V as VueHeadClient, U as UseHeadInput } from './shared/vue.B8YcFbNO.mjs';
|
|
6
6
|
import 'vue';
|
|
7
7
|
|
|
8
8
|
declare function createHead(options?: Omit<CreateServerHeadOptions, 'propsResolver'>): VueHeadClient<UseHeadInput, SSRHeadPayload>;
|
package/dist/server.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { CreateServerHeadOptions, SSRHeadPayload } from 'unhead/types';
|
|
|
2
2
|
export { CreateServerHeadOptions } from 'unhead/types';
|
|
3
3
|
export { V as VueHeadMixin } from './shared/vue.DnywREVF.js';
|
|
4
4
|
export { SSRHeadPayload, propsToString, renderSSRHead, transformHtmlTemplate } from 'unhead/server';
|
|
5
|
-
import { V as VueHeadClient, U as UseHeadInput } from './shared/vue.
|
|
5
|
+
import { V as VueHeadClient, U as UseHeadInput } from './shared/vue.B8YcFbNO.js';
|
|
6
6
|
import 'vue';
|
|
7
7
|
|
|
8
8
|
declare function createHead(options?: Omit<CreateServerHeadOptions, 'propsResolver'>): VueHeadClient<UseHeadInput, SSRHeadPayload>;
|
package/dist/server.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import { createHead as createHead$1 } from 'unhead/server';
|
|
|
2
2
|
export { propsToString, renderSSRHead, transformHtmlTemplate } from 'unhead/server';
|
|
3
3
|
import { v as vueInstall } from './shared/vue.Kp0sxz0n.mjs';
|
|
4
4
|
import { V as VueResolver } from './shared/vue.CkLIG7eN.mjs';
|
|
5
|
-
export { V as VueHeadMixin } from './shared/vue.
|
|
5
|
+
export { V as VueHeadMixin } from './shared/vue.UWfETPCA.mjs';
|
|
6
6
|
import 'vue';
|
|
7
|
-
import './shared/vue.
|
|
7
|
+
import './shared/vue.D3XLBQWM.mjs';
|
|
8
8
|
import 'unhead/plugins';
|
|
9
9
|
import 'unhead/utils';
|
|
10
10
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Stringable, SchemaAugmentations, ResolvableTitleTemplate as ResolvableTitleTemplate$1, ResolvableTemplateParams, Base, MaybeEventFnHandlers, Link, LinkHttpEvents, UnheadMeta, Style, DataKeys, Script, ScriptHttpEvents, Noscript, HtmlAttributes, MaybeArray, BodyAttributesWithoutEvents, BodyEvents, Unhead, HeadEntryOptions, MetaFlat } from 'unhead/types';
|
|
2
2
|
import { ComputedRef, Ref, CSSProperties, Plugin } from 'vue';
|
|
3
3
|
|
|
4
4
|
type Falsy = false | null | undefined;
|
|
@@ -141,4 +141,4 @@ type UseSeoMetaInput = ResolvableProperties<MetaFlat> & {
|
|
|
141
141
|
};
|
|
142
142
|
type VueHeadClient<I = UseHeadInput, R = unknown> = Unhead<I, R> & Plugin;
|
|
143
143
|
|
|
144
|
-
export type { BodyAttr as B, DeepResolvableProperties as D, HtmlAttr as H, MaybeFalsy as M,
|
|
144
|
+
export type { BodyAttr as B, DeepResolvableProperties as D, HtmlAttr as H, MaybeFalsy as M, ResolvableValue as R, UseHeadInput as U, VueHeadClient as V, ResolvableProperties as a, ReactiveHead as b, ResolvableArray as c, ResolvableBase as d, ResolvableBodyAttributes as e, ResolvableHtmlAttributes as f, ResolvableLink as g, ResolvableMeta as h, ResolvableNoscript as i, ResolvableScript as j, ResolvableStyle as k, ResolvableTitle as l, ResolvableTitleTemplate as m, ResolvableUnion as n, UseHeadOptions as o, UseSeoMetaInput as p };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Stringable, SchemaAugmentations, ResolvableTitleTemplate as ResolvableTitleTemplate$1, ResolvableTemplateParams, Base, MaybeEventFnHandlers, Link, LinkHttpEvents, UnheadMeta, Style, DataKeys, Script, ScriptHttpEvents, Noscript, HtmlAttributes, MaybeArray, BodyAttributesWithoutEvents, BodyEvents, Unhead, HeadEntryOptions, MetaFlat } from 'unhead/types';
|
|
2
2
|
import { ComputedRef, Ref, CSSProperties, Plugin } from 'vue';
|
|
3
3
|
|
|
4
4
|
type Falsy = false | null | undefined;
|
|
@@ -141,4 +141,4 @@ type UseSeoMetaInput = ResolvableProperties<MetaFlat> & {
|
|
|
141
141
|
};
|
|
142
142
|
type VueHeadClient<I = UseHeadInput, R = unknown> = Unhead<I, R> & Plugin;
|
|
143
143
|
|
|
144
|
-
export type { BodyAttr as B, DeepResolvableProperties as D, HtmlAttr as H, MaybeFalsy as M,
|
|
144
|
+
export type { BodyAttr as B, DeepResolvableProperties as D, HtmlAttr as H, MaybeFalsy as M, ResolvableValue as R, UseHeadInput as U, VueHeadClient as V, ResolvableProperties as a, ReactiveHead as b, ResolvableArray as c, ResolvableBase as d, ResolvableBodyAttributes as e, ResolvableHtmlAttributes as f, ResolvableLink as g, ResolvableMeta as h, ResolvableNoscript as i, ResolvableScript as j, ResolvableStyle as k, ResolvableTitle as l, ResolvableTitleTemplate as m, ResolvableUnion as n, UseHeadOptions as o, UseSeoMetaInput as p };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SafeInputPlugin, FlatMetaPlugin } from 'unhead/plugins';
|
|
2
2
|
import { walkResolver } from 'unhead/utils';
|
|
3
|
-
import { hasInjectionContext, inject,
|
|
3
|
+
import { hasInjectionContext, inject, getCurrentScope, ref, watchEffect, getCurrentInstance, onBeforeUnmount, onDeactivated, onActivated } from 'vue';
|
|
4
4
|
import { h as headSymbol } from './vue.Kp0sxz0n.mjs';
|
|
5
5
|
import { V as VueResolver } from './vue.CkLIG7eN.mjs';
|
|
6
6
|
|
|
@@ -19,13 +19,16 @@ function useHead(input, options = {}) {
|
|
|
19
19
|
return head.ssr ? head.push(input || {}, options) : clientUseHead(head, input, options);
|
|
20
20
|
}
|
|
21
21
|
function clientUseHead(head, input, options = {}) {
|
|
22
|
+
const scope = getCurrentScope();
|
|
23
|
+
if (scope && !scope.active) {
|
|
24
|
+
return { patch() {
|
|
25
|
+
}, dispose() {
|
|
26
|
+
}, _i: -1 };
|
|
27
|
+
}
|
|
22
28
|
const deactivated = ref(false);
|
|
23
|
-
if (options.onRendered) {
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
const _onRendered = options.onRendered;
|
|
27
|
-
options = { ...options, onRendered: (ctx) => scope.run(() => _onRendered(ctx)) };
|
|
28
|
-
}
|
|
29
|
+
if (options.onRendered && scope) {
|
|
30
|
+
const _onRendered = options.onRendered;
|
|
31
|
+
options = { ...options, onRendered: (ctx) => scope.run(() => _onRendered(ctx)) };
|
|
29
32
|
}
|
|
30
33
|
let entry;
|
|
31
34
|
watchEffect(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useScript as useScript$1 } from 'unhead/scripts';
|
|
2
2
|
import { getCurrentInstance, onMounted, isRef, watch, onScopeDispose, ref } from 'vue';
|
|
3
|
-
import { i as injectHead } from './vue.
|
|
3
|
+
import { i as injectHead } from './vue.D3XLBQWM.mjs';
|
|
4
4
|
|
|
5
5
|
function registerVueScopeHandlers(script, scope) {
|
|
6
6
|
if (!scope) {
|
package/dist/stream/client.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CreateStreamableClientHeadOptions } from 'unhead/stream/client';
|
|
2
2
|
export { CreateStreamableClientHeadOptions, UnheadStreamQueue } from 'unhead/stream/client';
|
|
3
3
|
export { V as VueHeadMixin } from '../shared/vue.DnywREVF.mjs';
|
|
4
|
-
import { V as VueHeadClient, U as UseHeadInput } from '../shared/vue.
|
|
4
|
+
import { V as VueHeadClient, U as UseHeadInput } from '../shared/vue.B8YcFbNO.mjs';
|
|
5
5
|
import 'unhead/types';
|
|
6
6
|
import 'vue';
|
|
7
7
|
|
package/dist/stream/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CreateStreamableClientHeadOptions } from 'unhead/stream/client';
|
|
2
2
|
export { CreateStreamableClientHeadOptions, UnheadStreamQueue } from 'unhead/stream/client';
|
|
3
3
|
export { V as VueHeadMixin } from '../shared/vue.DnywREVF.js';
|
|
4
|
-
import { V as VueHeadClient, U as UseHeadInput } from '../shared/vue.
|
|
4
|
+
import { V as VueHeadClient, U as UseHeadInput } from '../shared/vue.B8YcFbNO.js';
|
|
5
5
|
import 'unhead/types';
|
|
6
6
|
import 'vue';
|
|
7
7
|
|
package/dist/stream/client.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createStreamableHead as createStreamableHead$1 } from 'unhead/stream/client';
|
|
2
2
|
import { v as vueInstall } from '../shared/vue.Kp0sxz0n.mjs';
|
|
3
3
|
import { V as VueResolver } from '../shared/vue.CkLIG7eN.mjs';
|
|
4
|
-
export { V as VueHeadMixin } from '../shared/vue.
|
|
4
|
+
export { V as VueHeadMixin } from '../shared/vue.UWfETPCA.mjs';
|
|
5
5
|
import 'vue';
|
|
6
|
-
import '../shared/vue.
|
|
6
|
+
import '../shared/vue.D3XLBQWM.mjs';
|
|
7
7
|
import 'unhead/plugins';
|
|
8
8
|
import 'unhead/utils';
|
|
9
9
|
|
package/dist/stream/server.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WebStreamableHeadContext } from 'unhead/stream/server';
|
|
2
2
|
export { CreateStreamableServerHeadOptions, StreamingTemplateParts, createBootstrapScript, prepareStreamingTemplate, renderSSRHeadShell, renderSSRHeadSuspenseChunk, renderShell, wrapStream } from 'unhead/stream/server';
|
|
3
3
|
import { ResolvableHead, SSRHeadPayload, CreateStreamableServerHeadOptions } from 'unhead/types';
|
|
4
|
-
import { V as VueHeadClient } from '../shared/vue.
|
|
4
|
+
import { V as VueHeadClient } from '../shared/vue.B8YcFbNO.mjs';
|
|
5
5
|
import 'vue';
|
|
6
6
|
|
|
7
7
|
/**
|
package/dist/stream/server.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WebStreamableHeadContext } from 'unhead/stream/server';
|
|
2
2
|
export { CreateStreamableServerHeadOptions, StreamingTemplateParts, createBootstrapScript, prepareStreamingTemplate, renderSSRHeadShell, renderSSRHeadSuspenseChunk, renderShell, wrapStream } from 'unhead/stream/server';
|
|
3
3
|
import { ResolvableHead, SSRHeadPayload, CreateStreamableServerHeadOptions } from 'unhead/types';
|
|
4
|
-
import { V as VueHeadClient } from '../shared/vue.
|
|
4
|
+
import { V as VueHeadClient } from '../shared/vue.B8YcFbNO.js';
|
|
5
5
|
import 'vue';
|
|
6
6
|
|
|
7
7
|
/**
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ResolvableHead, GenericLink, DataKeys, SchemaAugmentations, MetaGeneric, Style as Style$1, GenericScript, TagPriority, TagPosition, ResolvesDuplicates, ProcessesTemplateParams, Noscript as Noscript$1, HtmlAttributes as HtmlAttributes$1, BodyAttributesWithoutEvents, RawInput } from 'unhead/types';
|
|
2
2
|
export { ActiveHeadEntry, AriaAttributes, BodyAttributesWithoutEvents, BodyEvents, DataKeys, GenericLink, GenericScript, GlobalAttributes, HeadEntryOptions, HeadTag, HttpEventAttributes, MetaFlat, MetaFlat as MetaFlatInput, RawInput, RenderSSRHeadOptions, ResolvableHead, SerializableHead, SpeculationRules, Unhead } from 'unhead/types';
|
|
3
|
-
import {
|
|
4
|
-
export { B as BodyAttr, D as DeepResolvableProperties,
|
|
3
|
+
import { R as ResolvableValue, a as ResolvableProperties } from './shared/vue.B8YcFbNO.mjs';
|
|
4
|
+
export { B as BodyAttr, D as DeepResolvableProperties, b as Head, H as HtmlAttr, M as MaybeFalsy, b as ReactiveHead, c as ResolvableArray, d as ResolvableBase, e as ResolvableBodyAttributes, f as ResolvableHtmlAttributes, g as ResolvableLink, h as ResolvableMeta, i as ResolvableNoscript, j as ResolvableScript, k as ResolvableStyle, l as ResolvableTitle, m as ResolvableTitleTemplate, n as ResolvableUnion, U as UseHeadInput, o as UseHeadOptions, p as UseSeoMetaInput, V as VueHeadClient } from './shared/vue.B8YcFbNO.mjs';
|
|
5
5
|
import 'vue';
|
|
6
6
|
|
|
7
7
|
type SafeBodyAttr = ResolvableProperties<Pick<BodyAttributesWithoutEvents, 'id' | 'class' | 'style'> & DataKeys & SchemaAugmentations['bodyAttrs']>;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ResolvableHead, GenericLink, DataKeys, SchemaAugmentations, MetaGeneric, Style as Style$1, GenericScript, TagPriority, TagPosition, ResolvesDuplicates, ProcessesTemplateParams, Noscript as Noscript$1, HtmlAttributes as HtmlAttributes$1, BodyAttributesWithoutEvents, RawInput } from 'unhead/types';
|
|
2
2
|
export { ActiveHeadEntry, AriaAttributes, BodyAttributesWithoutEvents, BodyEvents, DataKeys, GenericLink, GenericScript, GlobalAttributes, HeadEntryOptions, HeadTag, HttpEventAttributes, MetaFlat, MetaFlat as MetaFlatInput, RawInput, RenderSSRHeadOptions, ResolvableHead, SerializableHead, SpeculationRules, Unhead } from 'unhead/types';
|
|
3
|
-
import {
|
|
4
|
-
export { B as BodyAttr, D as DeepResolvableProperties,
|
|
3
|
+
import { R as ResolvableValue, a as ResolvableProperties } from './shared/vue.B8YcFbNO.js';
|
|
4
|
+
export { B as BodyAttr, D as DeepResolvableProperties, b as Head, H as HtmlAttr, M as MaybeFalsy, b as ReactiveHead, c as ResolvableArray, d as ResolvableBase, e as ResolvableBodyAttributes, f as ResolvableHtmlAttributes, g as ResolvableLink, h as ResolvableMeta, i as ResolvableNoscript, j as ResolvableScript, k as ResolvableStyle, l as ResolvableTitle, m as ResolvableTitleTemplate, n as ResolvableUnion, U as UseHeadInput, o as UseHeadOptions, p as UseSeoMetaInput, V as VueHeadClient } from './shared/vue.B8YcFbNO.js';
|
|
5
5
|
import 'vue';
|
|
6
6
|
|
|
7
7
|
type SafeBodyAttr = ResolvableProperties<Pick<BodyAttributesWithoutEvents, 'id' | 'class' | 'style'> & DataKeys & SchemaAugmentations['bodyAttrs']>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.1.
|
|
4
|
+
"version": "3.1.5",
|
|
5
5
|
"description": "Full-stack <head> manager built for Vue.",
|
|
6
6
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -156,13 +156,13 @@
|
|
|
156
156
|
"dependencies": {
|
|
157
157
|
"hookable": "^6.1.1",
|
|
158
158
|
"unplugin": "^3.0.0",
|
|
159
|
-
"unhead": "3.1.
|
|
160
|
-
"
|
|
159
|
+
"@unhead/bundler": "3.1.5",
|
|
160
|
+
"unhead": "3.1.5"
|
|
161
161
|
},
|
|
162
162
|
"devDependencies": {
|
|
163
|
-
"@vue/server-renderer": "^3.5.
|
|
163
|
+
"@vue/server-renderer": "^3.5.38",
|
|
164
164
|
"vite": "^8.0.16",
|
|
165
|
-
"vue": "^3.5.
|
|
165
|
+
"vue": "^3.5.38"
|
|
166
166
|
},
|
|
167
167
|
"scripts": {
|
|
168
168
|
"build": "unbuild",
|