@unhead/vue 3.0.0-beta.10 → 3.0.0-beta.12
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 +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/scripts.d.mts +1 -1
- package/dist/scripts.d.ts +1 -1
- package/dist/server.d.mts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/shared/{vue.9wC_EyGs.d.mts → vue.CcnaWdkk.d.mts} +2 -2
- package/dist/shared/{vue.9wC_EyGs.d.ts → vue.CcnaWdkk.d.ts} +2 -2
- package/dist/stream/client.d.mts +2 -2
- package/dist/stream/client.d.ts +2 -2
- package/dist/stream/server.d.mts +4 -4
- package/dist/stream/server.d.ts +4 -4
- package/dist/stream/server.mjs +1 -1
- package/dist/stream/vite.mjs +6 -3
- package/dist/types.d.mts +2 -2
- package/dist/types.d.ts +2 -2
- package/package.json +6 -6
package/dist/client.d.mts
CHANGED
|
@@ -2,9 +2,9 @@ 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 } from './shared/vue.
|
|
5
|
+
import { V as VueHeadClient, U as UseHeadInput } from './shared/vue.CcnaWdkk.mjs';
|
|
6
6
|
import 'vue';
|
|
7
7
|
|
|
8
|
-
declare function createHead(options?: CreateClientHeadOptions): VueHeadClient
|
|
8
|
+
declare function createHead(options?: CreateClientHeadOptions): VueHeadClient<UseHeadInput, boolean>;
|
|
9
9
|
|
|
10
10
|
export { VueHeadClient, createHead };
|
package/dist/client.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ 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 } from './shared/vue.
|
|
5
|
+
import { V as VueHeadClient, U as UseHeadInput } from './shared/vue.CcnaWdkk.js';
|
|
6
6
|
import 'vue';
|
|
7
7
|
|
|
8
|
-
declare function createHead(options?: CreateClientHeadOptions): VueHeadClient
|
|
8
|
+
declare function createHead(options?: CreateClientHeadOptions): VueHeadClient<UseHeadInput, boolean>;
|
|
9
9
|
|
|
10
10
|
export { VueHeadClient, createHead };
|
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,
|
|
4
|
-
export { B as BodyAttr, D as DeepResolvableProperties, b as Head, H as HtmlAttr, M as MaybeFalsy, b as ReactiveHead, o as ResolvableArray, e as ResolvableBase, l as ResolvableBodyAttributes, k as ResolvableHtmlAttributes, f as ResolvableLink, g as ResolvableMeta, j as ResolvableNoscript, a as ResolvableProperties, i as ResolvableScript, h as ResolvableStyle, c as ResolvableTitle, d as ResolvableTitleTemplate, p as ResolvableUnion, R as ResolvableValue } from './shared/vue.
|
|
3
|
+
import { V as VueHeadClient, U as UseHeadInput, m as UseHeadOptions, n as UseSeoMetaInput } from './shared/vue.CcnaWdkk.mjs';
|
|
4
|
+
export { B as BodyAttr, D as DeepResolvableProperties, b as Head, H as HtmlAttr, M as MaybeFalsy, b as ReactiveHead, o as ResolvableArray, e as ResolvableBase, l as ResolvableBodyAttributes, k as ResolvableHtmlAttributes, f as ResolvableLink, g as ResolvableMeta, j as ResolvableNoscript, a as ResolvableProperties, i as ResolvableScript, h as ResolvableStyle, c as ResolvableTitle, d as ResolvableTitleTemplate, p as ResolvableUnion, R as ResolvableValue } from './shared/vue.CcnaWdkk.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,
|
|
4
|
-
export { B as BodyAttr, D as DeepResolvableProperties, b as Head, H as HtmlAttr, M as MaybeFalsy, b as ReactiveHead, o as ResolvableArray, e as ResolvableBase, l as ResolvableBodyAttributes, k as ResolvableHtmlAttributes, f as ResolvableLink, g as ResolvableMeta, j as ResolvableNoscript, a as ResolvableProperties, i as ResolvableScript, h as ResolvableStyle, c as ResolvableTitle, d as ResolvableTitleTemplate, p as ResolvableUnion, R as ResolvableValue } from './shared/vue.
|
|
3
|
+
import { V as VueHeadClient, U as UseHeadInput, m as UseHeadOptions, n as UseSeoMetaInput } from './shared/vue.CcnaWdkk.js';
|
|
4
|
+
export { B as BodyAttr, D as DeepResolvableProperties, b as Head, H as HtmlAttr, M as MaybeFalsy, b as ReactiveHead, o as ResolvableArray, e as ResolvableBase, l as ResolvableBodyAttributes, k as ResolvableHtmlAttributes, f as ResolvableLink, g as ResolvableMeta, j as ResolvableNoscript, a as ResolvableProperties, i as ResolvableScript, h as ResolvableStyle, c as ResolvableTitle, d as ResolvableTitleTemplate, p as ResolvableUnion, R as ResolvableValue } from './shared/vue.CcnaWdkk.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/scripts.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { UseScriptOptions as UseScriptOptions$1, ScriptInstance, UseScriptStatus
|
|
|
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 { a as ResolvableProperties, V as VueHeadClient } from './shared/vue.
|
|
5
|
+
import { a as ResolvableProperties, V as VueHeadClient } from './shared/vue.CcnaWdkk.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 { UseScriptOptions as UseScriptOptions$1, ScriptInstance, UseScriptStatus
|
|
|
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 { a as ResolvableProperties, V as VueHeadClient } from './shared/vue.
|
|
5
|
+
import { a as ResolvableProperties, V as VueHeadClient } from './shared/vue.CcnaWdkk.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/server.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CreateServerHeadOptions } from 'unhead/types';
|
|
1
|
+
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 } from './shared/vue.
|
|
5
|
+
import { V as VueHeadClient, U as UseHeadInput } from './shared/vue.CcnaWdkk.mjs';
|
|
6
6
|
import 'vue';
|
|
7
7
|
|
|
8
|
-
declare function createHead(options?: Omit<CreateServerHeadOptions, 'propsResolver'>): VueHeadClient
|
|
8
|
+
declare function createHead(options?: Omit<CreateServerHeadOptions, 'propsResolver'>): VueHeadClient<UseHeadInput, SSRHeadPayload>;
|
|
9
9
|
|
|
10
10
|
export { VueHeadClient, createHead };
|
package/dist/server.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CreateServerHeadOptions } from 'unhead/types';
|
|
1
|
+
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 } from './shared/vue.
|
|
5
|
+
import { V as VueHeadClient, U as UseHeadInput } from './shared/vue.CcnaWdkk.js';
|
|
6
6
|
import 'vue';
|
|
7
7
|
|
|
8
|
-
declare function createHead(options?: Omit<CreateServerHeadOptions, 'propsResolver'>): VueHeadClient
|
|
8
|
+
declare function createHead(options?: Omit<CreateServerHeadOptions, 'propsResolver'>): VueHeadClient<UseHeadInput, SSRHeadPayload>;
|
|
9
9
|
|
|
10
10
|
export { VueHeadClient, createHead };
|
|
@@ -141,6 +141,6 @@ type UseSeoMetaInput = ResolvableProperties<MetaFlat> & {
|
|
|
141
141
|
title?: ReactiveHead['title'];
|
|
142
142
|
titleTemplate?: ReactiveHead['titleTemplate'];
|
|
143
143
|
};
|
|
144
|
-
type VueHeadClient<I = UseHeadInput> = Unhead<I> & Plugin;
|
|
144
|
+
type VueHeadClient<I = UseHeadInput, R = unknown> = Unhead<I, R> & Plugin;
|
|
145
145
|
|
|
146
|
-
export type { BodyAttr as B, DeepResolvableProperties as D, HtmlAttr as H, MaybeFalsy as M, ResolvableValue as R,
|
|
146
|
+
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, ResolvableTitle as c, ResolvableTitleTemplate as d, ResolvableBase as e, ResolvableLink as f, ResolvableMeta as g, ResolvableStyle as h, ResolvableScript as i, ResolvableNoscript as j, ResolvableHtmlAttributes as k, ResolvableBodyAttributes as l, UseHeadOptions as m, UseSeoMetaInput as n, ResolvableArray as o, ResolvableUnion as p };
|
|
@@ -141,6 +141,6 @@ type UseSeoMetaInput = ResolvableProperties<MetaFlat> & {
|
|
|
141
141
|
title?: ReactiveHead['title'];
|
|
142
142
|
titleTemplate?: ReactiveHead['titleTemplate'];
|
|
143
143
|
};
|
|
144
|
-
type VueHeadClient<I = UseHeadInput> = Unhead<I> & Plugin;
|
|
144
|
+
type VueHeadClient<I = UseHeadInput, R = unknown> = Unhead<I, R> & Plugin;
|
|
145
145
|
|
|
146
|
-
export type { BodyAttr as B, DeepResolvableProperties as D, HtmlAttr as H, MaybeFalsy as M, ResolvableValue as R,
|
|
146
|
+
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, ResolvableTitle as c, ResolvableTitleTemplate as d, ResolvableBase as e, ResolvableLink as f, ResolvableMeta as g, ResolvableStyle as h, ResolvableScript as i, ResolvableNoscript as j, ResolvableHtmlAttributes as k, ResolvableBodyAttributes as l, UseHeadOptions as m, UseSeoMetaInput as n, ResolvableArray as o, ResolvableUnion as p };
|
package/dist/stream/client.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as vue from 'vue';
|
|
|
2
2
|
import { CreateStreamableClientHeadOptions } from 'unhead/stream/client';
|
|
3
3
|
export { CreateStreamableClientHeadOptions, UnheadStreamQueue } from 'unhead/stream/client';
|
|
4
4
|
export { V as VueHeadMixin } from '../shared/vue.DnywREVF.mjs';
|
|
5
|
-
import { V as VueHeadClient } from '../shared/vue.
|
|
5
|
+
import { V as VueHeadClient, U as UseHeadInput } from '../shared/vue.CcnaWdkk.mjs';
|
|
6
6
|
import 'unhead/types';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -12,6 +12,6 @@ declare const HeadStream: vue.DefineComponent<{}, () => null, {}, {}, {}, vue.Co
|
|
|
12
12
|
/**
|
|
13
13
|
* Creates a client head by wrapping the core instance from the iife script.
|
|
14
14
|
*/
|
|
15
|
-
declare function createStreamableHead(options?: CreateStreamableClientHeadOptions): VueHeadClient | undefined;
|
|
15
|
+
declare function createStreamableHead(options?: CreateStreamableClientHeadOptions): VueHeadClient<UseHeadInput, boolean> | undefined;
|
|
16
16
|
|
|
17
17
|
export { HeadStream, VueHeadClient, createStreamableHead };
|
package/dist/stream/client.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as vue from 'vue';
|
|
|
2
2
|
import { CreateStreamableClientHeadOptions } from 'unhead/stream/client';
|
|
3
3
|
export { CreateStreamableClientHeadOptions, UnheadStreamQueue } from 'unhead/stream/client';
|
|
4
4
|
export { V as VueHeadMixin } from '../shared/vue.DnywREVF.js';
|
|
5
|
-
import { V as VueHeadClient } from '../shared/vue.
|
|
5
|
+
import { V as VueHeadClient, U as UseHeadInput } from '../shared/vue.CcnaWdkk.js';
|
|
6
6
|
import 'unhead/types';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -12,6 +12,6 @@ declare const HeadStream: vue.DefineComponent<{}, () => null, {}, {}, {}, vue.Co
|
|
|
12
12
|
/**
|
|
13
13
|
* Creates a client head by wrapping the core instance from the iife script.
|
|
14
14
|
*/
|
|
15
|
-
declare function createStreamableHead(options?: CreateStreamableClientHeadOptions): VueHeadClient | undefined;
|
|
15
|
+
declare function createStreamableHead(options?: CreateStreamableClientHeadOptions): VueHeadClient<UseHeadInput, boolean> | undefined;
|
|
16
16
|
|
|
17
17
|
export { HeadStream, VueHeadClient, createStreamableHead };
|
package/dist/stream/server.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { WebStreamableHeadContext } from 'unhead/stream/server';
|
|
3
|
-
export { CreateStreamableServerHeadOptions, StreamingTemplateParts, prepareStreamingTemplate, renderSSRHeadShell, renderSSRHeadSuspenseChunk, wrapStream } from 'unhead/stream/server';
|
|
4
|
-
import { ResolvableHead, CreateStreamableServerHeadOptions } from 'unhead/types';
|
|
5
|
-
import { V as VueHeadClient } from '../shared/vue.
|
|
3
|
+
export { CreateStreamableServerHeadOptions, StreamingTemplateParts, createBootstrapScript, prepareStreamingTemplate, renderSSRHeadShell, renderSSRHeadSuspenseChunk, renderShell, wrapStream } from 'unhead/stream/server';
|
|
4
|
+
import { ResolvableHead, SSRHeadPayload, CreateStreamableServerHeadOptions } from 'unhead/types';
|
|
5
|
+
import { V as VueHeadClient } from '../shared/vue.CcnaWdkk.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Streaming script component - outputs inline script with current head state.
|
|
@@ -19,7 +19,7 @@ interface VueStreamableHeadContext extends Omit<WebStreamableHeadContext<Resolva
|
|
|
19
19
|
/**
|
|
20
20
|
* The Vue head instance to use with app.use(head)
|
|
21
21
|
*/
|
|
22
|
-
head: VueHeadClient
|
|
22
|
+
head: VueHeadClient<any, SSRHeadPayload>;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Creates a head instance configured for Vue streaming SSR.
|
package/dist/stream/server.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { WebStreamableHeadContext } from 'unhead/stream/server';
|
|
3
|
-
export { CreateStreamableServerHeadOptions, StreamingTemplateParts, prepareStreamingTemplate, renderSSRHeadShell, renderSSRHeadSuspenseChunk, wrapStream } from 'unhead/stream/server';
|
|
4
|
-
import { ResolvableHead, CreateStreamableServerHeadOptions } from 'unhead/types';
|
|
5
|
-
import { V as VueHeadClient } from '../shared/vue.
|
|
3
|
+
export { CreateStreamableServerHeadOptions, StreamingTemplateParts, createBootstrapScript, prepareStreamingTemplate, renderSSRHeadShell, renderSSRHeadSuspenseChunk, renderShell, wrapStream } from 'unhead/stream/server';
|
|
4
|
+
import { ResolvableHead, SSRHeadPayload, CreateStreamableServerHeadOptions } from 'unhead/types';
|
|
5
|
+
import { V as VueHeadClient } from '../shared/vue.CcnaWdkk.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Streaming script component - outputs inline script with current head state.
|
|
@@ -19,7 +19,7 @@ interface VueStreamableHeadContext extends Omit<WebStreamableHeadContext<Resolva
|
|
|
19
19
|
/**
|
|
20
20
|
* The Vue head instance to use with app.use(head)
|
|
21
21
|
*/
|
|
22
|
-
head: VueHeadClient
|
|
22
|
+
head: VueHeadClient<any, SSRHeadPayload>;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Creates a head instance configured for Vue streaming SSR.
|
package/dist/stream/server.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { renderSSRHeadSuspenseChunk, createStreamableHead as createStreamableHead$1, wrapStream } from 'unhead/stream/server';
|
|
2
|
-
export { prepareStreamingTemplate, renderSSRHeadShell, renderSSRHeadSuspenseChunk, wrapStream } from 'unhead/stream/server';
|
|
2
|
+
export { createBootstrapScript, prepareStreamingTemplate, renderSSRHeadShell, renderSSRHeadSuspenseChunk, renderShell, wrapStream } from 'unhead/stream/server';
|
|
3
3
|
import { defineComponent, h } from 'vue';
|
|
4
4
|
import { i as injectHead, v as vueInstall } from '../shared/vue.DdPIVN-K.mjs';
|
|
5
5
|
import { V as VueResolver } from '../shared/vue.N9zWjxoK.mjs';
|
package/dist/stream/vite.mjs
CHANGED
|
@@ -2,16 +2,19 @@ import MagicString from 'magic-string';
|
|
|
2
2
|
import { parseAndWalk } from 'oxc-walker';
|
|
3
3
|
import { createStreamingPlugin } from 'unhead/stream/vite';
|
|
4
4
|
|
|
5
|
+
const TEMPLATE_RE = /<template[^>]*>/;
|
|
6
|
+
const SCRIPT_RE = /<script[^>]*>/i;
|
|
7
|
+
const FILTER_RE = /\.vue$/;
|
|
5
8
|
function transform(code, id, isSSR, s) {
|
|
6
9
|
if (!code.includes("useHead") && !code.includes("useSeoMeta") && !code.includes("useHeadSafe"))
|
|
7
10
|
return false;
|
|
8
|
-
const templateMatch = code.match(
|
|
11
|
+
const templateMatch = code.match(TEMPLATE_RE);
|
|
9
12
|
if (!templateMatch)
|
|
10
13
|
return false;
|
|
11
14
|
const templateStart = templateMatch.index + templateMatch[0].length;
|
|
12
15
|
s.appendRight(templateStart, "<HeadStream />");
|
|
13
16
|
const importPath = `@unhead/vue/stream/${isSSR ? "server" : "client"}`;
|
|
14
|
-
const scriptMatch = code.match(
|
|
17
|
+
const scriptMatch = code.match(SCRIPT_RE);
|
|
15
18
|
if (!scriptMatch)
|
|
16
19
|
return true;
|
|
17
20
|
const scriptEnd = scriptMatch.index + scriptMatch[0].length;
|
|
@@ -50,7 +53,7 @@ import { HeadStream } from '${importPath}'`);
|
|
|
50
53
|
function unheadVuePlugin(options) {
|
|
51
54
|
return createStreamingPlugin({
|
|
52
55
|
framework: "@unhead/vue",
|
|
53
|
-
filter:
|
|
56
|
+
filter: FILTER_RE,
|
|
54
57
|
mode: options?.mode,
|
|
55
58
|
transform(code, id, opts) {
|
|
56
59
|
const s = new MagicString(code);
|
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 { R as ResolvableValue, a as ResolvableProperties } from './shared/vue.
|
|
4
|
-
export { B as BodyAttr, D as DeepResolvableProperties, b as Head, H as HtmlAttr, M as MaybeFalsy, b as ReactiveHead, o as ResolvableArray, e as ResolvableBase, l as ResolvableBodyAttributes, k as ResolvableHtmlAttributes, f as ResolvableLink, g as ResolvableMeta, j as ResolvableNoscript, i as ResolvableScript, h as ResolvableStyle, c as ResolvableTitle, d as ResolvableTitleTemplate, p as ResolvableUnion,
|
|
3
|
+
import { R as ResolvableValue, a as ResolvableProperties } from './shared/vue.CcnaWdkk.mjs';
|
|
4
|
+
export { B as BodyAttr, D as DeepResolvableProperties, b as Head, H as HtmlAttr, M as MaybeFalsy, b as ReactiveHead, o as ResolvableArray, e as ResolvableBase, l as ResolvableBodyAttributes, k as ResolvableHtmlAttributes, f as ResolvableLink, g as ResolvableMeta, j as ResolvableNoscript, i as ResolvableScript, h as ResolvableStyle, c as ResolvableTitle, d as ResolvableTitleTemplate, p as ResolvableUnion, U as UseHeadInput, m as UseHeadOptions, n as UseSeoMetaInput, V as VueHeadClient } from './shared/vue.CcnaWdkk.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 { R as ResolvableValue, a as ResolvableProperties } from './shared/vue.
|
|
4
|
-
export { B as BodyAttr, D as DeepResolvableProperties, b as Head, H as HtmlAttr, M as MaybeFalsy, b as ReactiveHead, o as ResolvableArray, e as ResolvableBase, l as ResolvableBodyAttributes, k as ResolvableHtmlAttributes, f as ResolvableLink, g as ResolvableMeta, j as ResolvableNoscript, i as ResolvableScript, h as ResolvableStyle, c as ResolvableTitle, d as ResolvableTitleTemplate, p as ResolvableUnion,
|
|
3
|
+
import { R as ResolvableValue, a as ResolvableProperties } from './shared/vue.CcnaWdkk.js';
|
|
4
|
+
export { B as BodyAttr, D as DeepResolvableProperties, b as Head, H as HtmlAttr, M as MaybeFalsy, b as ReactiveHead, o as ResolvableArray, e as ResolvableBase, l as ResolvableBodyAttributes, k as ResolvableHtmlAttributes, f as ResolvableLink, g as ResolvableMeta, j as ResolvableNoscript, i as ResolvableScript, h as ResolvableStyle, c as ResolvableTitle, d as ResolvableTitleTemplate, p as ResolvableUnion, U as UseHeadInput, m as UseHeadOptions, n as UseSeoMetaInput, V as VueHeadClient } from './shared/vue.CcnaWdkk.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.0.0-beta.
|
|
4
|
+
"version": "3.0.0-beta.12",
|
|
5
5
|
"description": "Full-stack <head> manager built for Vue.",
|
|
6
6
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -124,14 +124,14 @@
|
|
|
124
124
|
"dependencies": {
|
|
125
125
|
"hookable": "^6.0.1",
|
|
126
126
|
"magic-string": "^0.30.21",
|
|
127
|
-
"oxc-parser": "^0.
|
|
127
|
+
"oxc-parser": "^0.117.0",
|
|
128
128
|
"oxc-walker": "^0.7.0",
|
|
129
|
-
"unhead": "3.0.0-beta.
|
|
129
|
+
"unhead": "3.0.0-beta.12"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
|
-
"@vue/server-renderer": "^3.5.
|
|
133
|
-
"vite": "^7.
|
|
134
|
-
"vue": "^3.5.
|
|
132
|
+
"@vue/server-renderer": "^3.5.30",
|
|
133
|
+
"vite": "^7.3.1",
|
|
134
|
+
"vue": "^3.5.30"
|
|
135
135
|
},
|
|
136
136
|
"scripts": {
|
|
137
137
|
"build": "unbuild",
|